Issues with sudo and Gnome apps
For a very long time, I've been using the sudo command to avoid logging in as root. I prefer to do this on the local machine rather than logging out and logging into Gnome as root. I also have to do this when using ssh -X to connect remotely, as I ALWAYS disable root access over ssh.
I've been running into a problem on Gnome 2.16 and above on Fedora and Ubuntu where the act of trying to launch a GUI based program with sudo generates the following error: Code:
Xlib: connection to ":0.1" refused by server Code:
Defaults env_reset I should point out that I've done this on one Fedora machine, and I haven't done it on my Ubuntu machine yet, so I don't know if this is going to be a solution there or not. |
I don't know anything about gnome, but it occurs to me that some important environment variable is being lost unless you comment out those lines in /etc/sudoers.
Try this: At the point where you would normally issue the sudo command, do this first: Code:
env | sort > somefile |
All times are GMT -5. The time now is 01:31 PM. |