I'm running Gentoo Stage 3 and I recently set up sudo so that any user using it can run any command
I've run into a problem, though. If I try to run a gui-based program from a terminal with sudo, I get this error (in this case with kcron):
It seems a bit worse when I try running OpenOffice Wrter with sudo, as X just freezes with no response. I have to ctr+alt+bckspc to get out of itCode:
kcron: cannot connect to X server
How can I fix this? I'd really like to because, atleast with kcron, I have to log into X as root to set up a cron task from within it and I'd rather not waste my time doing this (or potentially mess something up by running X as root).
Thanks in advance! :D