Comment 3 for bug 275304

Revision history for this message
ceg (ceg) wrote : Re: wrong ownership of .Xauthority and /tmp/libgksu-xxx

This may help tracking down this bug:

The ownership is set correctly when using the the "su" method (by calling the "gksu" binary directly instead of of through the "gksudo" symlink AND with the -w option).

This fails:

$ gksudo -u firefoxuser firefox
No protocol specifiedNo protocol specified
Error: cannot open display: :0.0

The following works inspite of the warnings, however the password of the target user is allways required and you can not make use of the NOPASSWORD option in the sudoers file with that.

$ gksu -w -u firefoxuser firefox

(firefox:3439): GnomeUI-WARNING **: While connecting to session manager:
None of the authentication protocols specified are supported.

(firefox:3439): GnomeUI-WARNING **: While connecting to session manager:
None of the authentication protocols specified are supported.

(firefox:3439): GnomeUI-WARNING **: While connecting to session manager:
None of the authentication protocols specified are supported.

---

It's quite a security shame that ubuntu ships without fully working "running as different user" mechanisms for so long.