Results 1 to 5 of 5
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 ...
- 07-20-2005 #1Linux Enthusiast
- Join Date
- Jun 2005
- Location
- Odessa, FL
- Posts
- 586
sudo problems
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!
- 07-20-2005 #2
try
or with sudoCode:su -c program_name
Brilliant Mediocrity - Making Failure Look Good
- 07-20-2005 #3Linux Enthusiast
- Join Date
- Jun 2005
- Location
- Odessa, FL
- Posts
- 586
same idea
Originally Posted by Vergil83
hmm...another problem maybe? i've noticed this with a couple of things...where my normal user could open a program from the terminal (without getting full permissions to do whatever), but root might not even recognize it as a command. even when i do...Code:user@comp ~ $ sudo kcron Password: kcron: cannot connect to X server user@comp ~ $ user@comp ~ $ su -c kcron Password: /bin/bash: kcron: command not found
then run the command...i get the same thing as when i try "su -c kcron"Code:user@comp ~ $ su Password: comp user #
what might be wrong?
- 07-20-2005 #4
very odd......
I don't have kcron, so I can't test that program, but it worked with me and openoffice....
try using
for kde programsCode:kdesu -c program_name
http://docs.kde.org/development/en/kdebase/kdesu/Brilliant Mediocrity - Making Failure Look Good
- 07-21-2005 #5Linux Enthusiast
- Join Date
- Jun 2005
- Location
- Odessa, FL
- Posts
- 586
yay!
Originally Posted by Vergil83 
that was perfect....works great now!
thanks a lot!


Reply With Quote