How do I connect to X display as superuser
I have gone through the following instructions http://portal.suse.com/sdb/en/2001/06/maddin_xhost.html and have had no success in connecting to the display as superuser in SuSE 9.0. sux also does not work. Any suggestions would be welcome. Art
Did you try "sux -" yet? This usually works for me on 8.2. Haven't had a chance to try it out on 9.0 but see no reason why it shouldn't work there. Best regards, Alex. On Fri, 7 Nov 2003, Art Fore wrote:
I have gone through the following instructions
http://portal.suse.com/sdb/en/2001/06/maddin_xhost.html
and have had no success in connecting to the display as superuser in SuSE 9.0. sux also does not work. Any suggestions would be welcome.
Art
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
I tried that, it does not work in 9.0 that I can find. It did work in 8.2. Art On Fri, 2003-11-07 at 10:07, Alex Angerhofer wrote:
Did you try "sux -" yet? This usually works for me on 8.2. Haven't had a chance to try it out on 9.0 but see no reason why it shouldn't work there.
Best regards, Alex.
On Fri, 7 Nov 2003, Art Fore wrote:
I have gone through the following instructions
http://portal.suse.com/sdb/en/2001/06/maddin_xhost.html
and have had no success in connecting to the display as superuser in SuSE 9.0. sux also does not work. Any suggestions would be welcome.
Art
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Fri, Nov 07, 2003 at 10:36:47AM -0800, Kastus wrote:
On Fri, Nov 07, 2003 at 10:23:22AM -0800, Art Fore wrote:
I tried that, it does not work in 9.0 that I can find. It did work in 8.2.
Try deleting /root/.Xauthority and then run sux again
Please see http://lists.suse.com/archive/suse-linux-e/2002-Nov/1878.html -Kastus
Tried that. Get the following after doing sux xauth: creating new authority file /root/.Xauthority sporthorse:/home/afore # nedit Xlib: connection to "Sporthorse.3mts:0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key NEdit: Can't open display In addition, I found that if I login to gnome desktop and I try to run Yast2, it comes up with similar error. Same with file manager in super user mode. Art On Fri, 2003-11-07 at 10:36, Kastus wrote:
On Fri, Nov 07, 2003 at 10:23:22AM -0800, Art Fore wrote:
I tried that, it does not work in 9.0 that I can find. It did work in 8.2.
Try deleting /root/.Xauthority and then run sux again
Regards, -Kastus
before suing try xhost +localhost Then su and it should work. On Friday 07 November 2003 10:49 am, Art Fore wrote:
Tried that. Get the following after doing sux xauth: creating new authority file /root/.Xauthority sporthorse:/home/afore # nedit Xlib: connection to "Sporthorse.3mts:0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key NEdit: Can't open display
In addition, I found that if I login to gnome desktop and I try to run Yast2, it comes up with similar error. Same with file manager in super user mode.
Art
On Fri, 2003-11-07 at 10:36, Kastus wrote:
On Fri, Nov 07, 2003 at 10:23:22AM -0800, Art Fore wrote:
I tried that, it does not work in 9.0 that I can find. It did work in 8.2.
Try deleting /root/.Xauthority and then run sux again
Regards, -Kastus
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Had tried that before and it didn't work. Tried it again, now it works although sux still does not work. Art On Fri, 2003-11-07 at 12:42, Rocco Charamella wrote:
before suing try xhost +localhost Then su and it should work. On Friday 07 November 2003 10:49 am, Art Fore wrote:
Tried that. Get the following after doing sux xauth: creating new authority file /root/.Xauthority sporthorse:/home/afore # nedit Xlib: connection to "Sporthorse.3mts:0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key NEdit: Can't open display
In addition, I found that if I login to gnome desktop and I try to run Yast2, it comes up with similar error. Same with file manager in super user mode.
Art
On Fri, 2003-11-07 at 10:36, Kastus wrote:
On Fri, Nov 07, 2003 at 10:23:22AM -0800, Art Fore wrote:
I tried that, it does not work in 9.0 that I can find. It did work in 8.2.
Try deleting /root/.Xauthority and then run sux again
Regards, -Kastus
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Sent using SuSE Linux and Ximian Evolution.
May be I'm missing the point here. I open a terminal window, type "su" and give it the root password, then that terminal window executes commands as root. Slightly OT, I use xdm to get remote logins Linux<-->Linux and Linux<-->Solaris, etc. On the machine I'm sitting at, "X :2 -query <hostname or IP address> [vt09] &" e.g, on Linux you can configure ---- /etc/sysconfig/displaymanager:DISPLAYMANAGER_REMOTE_ACCESS="yes" /etc/sysconfig/displaymanager:DISPLAYMANAGER_ROOT_LOGIN_REMOTE="yes" If you are not worried about the possible exposure. With this I remotely manage multiple Sun/Fujitsu machines or Solaris domains (X:3 X:4 etc.) - leaving the hyperterminal guys open-mouthed. Regards Sid. Art Fore wrote:
Had tried that before and it didn't work. Tried it again, now it works although sux still does not work.
Art
On Fri, 2003-11-07 at 12:42, Rocco Charamella wrote:
before suing try xhost +localhost Then su and it should work. On Friday 07 November 2003 10:49 am, Art Fore wrote:
Tried that. Get the following after doing sux xauth: creating new authority file /root/.Xauthority sporthorse:/home/afore # nedit Xlib: connection to "Sporthorse.3mts:0.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key NEdit: Can't open display
In addition, I found that if I login to gnome desktop and I try to run Yast2, it comes up with similar error. Same with file manager in super user mode.
Art
On Fri, 2003-11-07 at 10:36, Kastus wrote:
On Fri, Nov 07, 2003 at 10:23:22AM -0800, Art Fore wrote:
I tried that, it does not work in 9.0 that I can find. It did work in 8.2.
Try deleting /root/.Xauthority and then run sux again
Regards, -Kastus
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Sid Boyce .... Linux Only Shop.
On Friday 07 November 2003 18:23, Art Fore wrote:
I tried that, it does not work in 9.0 that I can find. It did work in 8.2.
Art
Under 9.0 and sux works. Launched mozilla and other KDE windowsprograms from the command prompt without problems. LW999
Wished I knew the secret. Still does not work for me. Doing the xhost +localhost as user then su with password I can then use X. Art On Fri, 2003-11-07 at 17:09, LinuxWorld999 wrote:
On Friday 07 November 2003 18:23, Art Fore wrote:
I tried that, it does not work in 9.0 that I can find. It did work in 8.2.
Art
Under 9.0 and sux works. Launched mozilla and other KDE windowsprograms from the command prompt without problems.
LW999 -- Sent using SuSE Linux and Ximian Evolution.
On Friday 07 November 2003 8:31 pm, Art Fore wrote:
Wished I knew the secret. Still does not work for me. Doing the xhost +localhost as user then su with password I can then use X.
Art
9.0 Pro and sux works just fine here. I have gone back to the /tmp directory to delete all the kde-userid directories for my main login id. This allowed all of my 9.0 menu entries to appear again. I advocate just going to single user mode, init 3, and then deleting all of /tmp and then going back to init 5. Did the trick under 8.0-8.2 when sux wouldn't work. Stan
On Friday 07 November 2003 17:56, Art Fore wrote:
I have gone through the following instructions
http://portal.suse.com/sdb/en/2001/06/maddin_xhost.html
and have had no success in connecting to the display as superuser in SuSE 9.0. sux also does not work. Any suggestions would be welcome.
Art
Open a shell session within KDE/GNOME/etc and at the command prompt type in sux. There will be a prompt for the password. After this, the superuser will have access to the dishplay. HTH. LW999
participants (7)
-
Alex Angerhofer
-
Art Fore
-
Kastus
-
LinuxWorld999
-
Rocco Charamella
-
Sid Boyce
-
Stan Glasoe