Hello, I recently upgraded KDE in my Suse 9.0 to 3.2 using YOU. After upgrading, 'sux' does not work. It worked fine before. Here is the output of a typical session: chrisb@linux:~> sux - Password: linux:~ # emacs Xlib: connection to ":0.0" refused by server Xlib: Protocol not supported by server emacs: Cannot connect to X server :0. Check the DISPLAY environment variable or use `-d'. Also use the `xhost' program to verify that it is set to permit connections from your machine. linux:~ # The XFree86 log will contain messages like: AUDIT: Tue Mar 23 14:49:34 2004: 1936 X: client 27 rejected from local host Auth name: XDM-AUTHORIZATION-1 ID: -1 I am currently able to work around this problem via 'ssh -X root@localhost' but I would much rather use 'sux'. Does anyone have any ideas? My google group searches did not turn up anything useful. Thanks a lot in advance, Chris Berthiaume __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 23 March 2004 22.51, Christopher Berthiaume wrote:
Hello,
[snip] Had the same problem before. Did ldconfig to reload all new libraries. I did a reboot (to be sure) and it went away. Must be a missed .so dependency floating around - -- /Rikard - ------------------------------------------------------------------------------------ Rikard Johnels email : rikjoh@norweb.se Web : http://www.rikjoh.com Mob : +46 (0)735 05 51 01 - ------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAYLOvWdS2eEYc7lYRAgpXAKCILZyllhBMpPCLlsB5F4f2MpKTigCfUGRy wR7YIHL6L6mu/C2dTMbcr8c= =bPhF -----END PGP SIGNATURE-----
--- Rikard Johnels
On Tuesday 23 March 2004 22.51, Christopher Berthiaume wrote:
Hello,
[snip]
Had the same problem before. Did ldconfig to reload all new libraries. I did a reboot (to be sure) and it went away.
Must be a missed .so dependency floating around
Thanks for the response. I just tried this and, unfortunatly, it didn't work for me. I still get the same problems I described earlier. __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html
On Tuesday 23 March 2004 15:51, Christopher Berthiaume wrote:
I am currently able to work around this problem via 'ssh -X root@localhost' but I would much rather use 'sux'. Does anyone have any ideas?
Try deleting /root/.Xauthority, then do sux. -- Homepage http://scott.exti.net XFce desktop environment http://www.xfce.org Goodies for the XFce desktop http://xfce-goodies.berlios.de GPG public key ID: 811B00AB
--- Scott Jones
On Tuesday 23 March 2004 15:51, Christopher Berthiaume wrote:
I am currently able to work around this problem via 'ssh -X root@localhost' but I would much rather use 'sux'. Does anyone have any ideas?
Try deleting /root/.Xauthority, then do sux.
Bingo. Thanks a lot. __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html
On 23/3/2004 21:51, Christopher Berthiaume wrote:
Hello,
I recently upgraded KDE in my Suse 9.0 to 3.2 using YOU. After upgrading, 'sux' does not work. It worked fine before. <snip> I've also occasionally found that sux doesn't work. If Rikard or Scott's suggestions don't work for you, try this :-
Create (or add to) /root/.bashrc if [ ! "$LOGNAME" = "root" ]; then cp /home/$LOGNAME/.Xauthority /root fi Basically, this means, "If you aren't logged in as root, copy the logged in user's .Xauthority to /root/.Xauthority". Then, you just 'su' rather than 'sux'. Which also has the advantage that you can use it on any distro and is (I think) more secure than using xhost. This is not my work but something I copied long ago from somewhere else. Unfortunately, I can't remember where so I can't credit the originator. -- Vic Ayres
On Tuesday 23 March 2004 23:38, Vic Ayres wrote:
On 23/3/2004 21:51, Christopher Berthiaume wrote:
Hello,
I recently upgraded KDE in my Suse 9.0 to 3.2 using YOU. After upgrading, 'sux' does not work. It worked fine before.
<snip> I've also occasionally found that sux doesn't work. If Rikard or Scott's suggestions don't work for you, try this :-
Create (or add to) /root/.bashrc if [ ! "$LOGNAME" = "root" ]; then cp /home/$LOGNAME/.Xauthority /root fi
Basically, this means, "If you aren't logged in as root, copy the logged in user's .Xauthority to /root/.Xauthority".
Then, you just 'su' rather than 'sux'. Which also has the advantage that you can use it on any distro and is (I think) more secure than using xhost.
but it has the disadvantage that you can only use it for root, you won't be able to run graphical apps as other users. Better to fix 'sux'
On 24/3/2004 0:50, Anders Johansson wrote:
On Tuesday 23 March 2004 23:38, Vic Ayres wrote: <snip>
Basically, this means, "If you aren't logged in as root, copy the logged in user's .Xauthority to /root/.Xauthority".
Then, you just 'su' rather than 'sux'. Which also has the advantage that you can use it on any distro and is (I think) more secure than using xhost.
but it has the disadvantage that you can only use it for root, you won't be able to run graphical apps as other users.
Better to fix 'sux'
True. I hadn't thought of that. -- Vic Ayres
participants (5)
-
Anders Johansson
-
Christopher Berthiaume
-
Rikard Johnels
-
Scott Jones
-
Vic Ayres