[SuSE Linux] root on X...
Hello! How can I run programs (like tkRPM) as root? When I log in as a simple user, and "su" in xterm, it is not working (I give the "cannot connect to :0:0", or similar, I don't remember exactly). It is important for me, because I don't like log in as root. Thanx. -- ____ __ / __ \____ ______/ /__ / / / / __ `/ ___/ //_/ / /_/ / /_/ / / / ,< /_____/\__,_/_/ /_/|_|@mail.szikszi.hu -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Timar Peter wrote:
Hello! How can I run programs (like tkRPM) as root? When I log in as a simple user, and "su" in xterm, it is not working (I give the "cannot connect to :0:0", or similar, I don't remember exactly). It is important for me, because I don't like log in as root. Thanx. -- ____ __ / __ \____ ______/ /__ / / / / __ `/ ___/ //_/ / /_/ / /_/ / / / ,< /_____/\__,_/_/ /_/|_|@mail.szikszi.hu -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Peter, I think you can do it by su -l root which will get you a root login shell with root's environment. info su will get you more on this. -- John Nickerson, Kailua, Hawaii <<A HREF="http://www.pixi.com/~johnnick/homepage.html"><A HREF="http://www.pixi.com/~johnnick/homepage.html</A">http://www.pixi.com/~johnnick/homepage.html</A</A>>> A little inaccracy sometimes saves a ton of explanation. -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
I rhink the error should be fixed with xset - i dont know the right switches maybe xset add 127.0.0.1 something similar worked in my case. If it doesnt work try xset --help or man xset Good Luck Bostjan ___ Boštjan Müller [NEONATUS], NEONATUS@bigfoot.com, <A HREF="http://surf.to/NEONATUS"><A HREF="http://surf.to/NEONATUS</A">http://surf.to/NEONATUS</A</A>> ICQ #:7506644, My PGP key <A HREF="http://www2.mf.uni-lj.si/~tmueller/BM.asc"><A HREF="http://www2.mf.uni-lj.si/~tmueller/BM.asc</A">http://www2.mf.uni-lj.si/~tmueller/BM.asc</A</A>> RSA id: 0x90178DBD, Powered by S.u.S.E. Linux 5.2. "A witty saying proves nothing." -- Voltaire -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Hi, On Tue, 4 May 1999, Timar Peter wrote:
How can I run programs (like tkRPM) as root? When I log in as a simple user, and "su" in xterm, it is not working (I give the "cannot connect to :0:0", or similar, I don't remember exactly). It is important for me, because I don't like log in as root. Thanx.
This is a security feature. Just run "xhost +localhost" before switching to the root login... Bye, LenZ -- ------------------------------------------------------------------ Lenz Grimmer SuSE GmbH <A HREF="mailto:grimmer@suse.de">mailto:grimmer@suse.de</A> Schanzaeckerstr. 10 <A HREF="http://www.suse.de/~grimmer"><A HREF="http://www.suse.de/~grimmer</A">http://www.suse.de/~grimmer</A</A>> 90443 Nuernberg, Germany -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
+----- On Tue, 04 May 1999 08:19:33 +0200, Timar Peter writes: | | Hello! | How can I run programs (like tkRPM) as root? When I log in as a simple | user, and "su" in xterm, it is not working (I give the "cannot connect | to :0:0", or similar, I don't remember exactly). It is important for me, | because I don't like log in as root. Thanx. Root doesn't have the authority to open your display. You can fix that by setting the environment variable to point to your xauthority file (usually ~/.Xauthority) or if root doesn't have the authority to read that file (i.e. it is a remote file) then run "xauth list $DISPLAY" as yourself and "xauth add <output from previous xauth>" as root. You can also use xhost BUT that can leave you wide open if you are connected to a network and is bad practice for responsible systems administrators, perhaps even comparable to having . in root's PATH. /Michael -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (5)
-
dark@pluto.szikszi.hu
-
grimmer@suse.de
-
johnnick@pixi.com
-
Michael.Salmon@uab.ericsson.se
-
neonatus@gimp.thz.net