sudoers configuration for nice
I'm running a game system that uses a java engine. It is running on a newly installed Hardy Herron server, 64 bit. The normal command works to start the game engine, however, I want to get it to run with a higher priority, so I put "sudo nice -n -2" in front of it.
However, I keep getting asked for my password, and no matter how I enter the line in sudoers, I can't get it to stop.
The line is ...
michelle ALL=NOPASSWD: /usr/bin/nice
I've also tried other versions like...
michelle ALL=(ALL) NOPASSWD: /usr/bin/nice
michelle ALL=(root) NOPASSWD: /usr/bin/nice
... as well as defining my user name as a variable, but I'm just not going anywhere.
Also if I include the nice but omit the sudo and run it as root, it also works, so I'm concluding that my sudoers is going wrong somewhere.
Any help greatly appreciated.
Last edited by msknight; August 23rd, 2008 at 10:11 PM.
Kochanski-This is the first time I've ever been seduced by predeterminism theory.
Kryten-Starbug was built to last sir. This old baby's crashed more times than a ZX81.
Rimmer-Broadcast on all frequencies and all known languages, including Welsh.