Public bug reported: I'm not sure if this is a bug in gksu, a bug in Ubuntu 6.06, or just to do with documentation.
In Breezy (5.10) I used to run several apps as another user on the same machine via 'gksu -u <other-username> <cmd>' (after giving the other user's password to gnome-keyring when prompted). Now I've upgraded to 6.06 Dapper this fails. No prompt for password, just the errors:- Xlib: connection to ":0.0" refused by server Xlib: No protocol specified unable to display ":0.0" It works if I just do 'gksu <cmd>' to run the cmd as root, but not with '-u <username>' to run the cmd as a different user. Similarly, if I go via Gnome > Apps > System Tools > Run as different user, I can run commands as root, but not as any other user. The solution I am using is to run 'xhost +local:' either manually from the X session, or via Gnome > System > Prefs > Sessions > Startup Progs. I'm not sure if this is the proper way to allow 'gksu -u' or if there is a better way. I did try creating /etc/X0.hosts (with a zero) and adding the line: 'local:', then restarting X. This seems to do part of the job: if I then do 'xhost' it shows 'LOCAL:' as needed, BUT if I do 'gksu -u <otheruser> <cmd>', or 'sudo -u <otheruser> xhost', I just get the Xlib errors. I've also tried lots of other possibilities in X0.hosts eg: 'localhost', '<username>', '+local:', etc, etc. I did make /etc/X0.hosts executable (755). The password requirements have also changed: whereas I used to be prompted by gnome-keyring for the pwd of the other user, now I just get prompted (sudo - style) for my own pwd. Haz ** Affects: Ubuntu Importance: Untriaged Status: Unconfirmed -- gksu -u and 'Run as different user' (not root) problems https://launchpad.net/bugs/59507 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs