HI,

I'm trying to add a user to my /etc/sudoers file that will enable them
to play doom3 with elevated priorities but NOT elevated privileges.  I
want to cut down on the choppiness in the game play for the user so I
want them to start doom3 with the command: 

"sudo nice -n -5 /usr/games/bin/doom3 +set <needed options>"

Two issues:  1) I do NOT want doom3 to run as root.  and 2) I know that
nice can execute ANY program so I want to make sure that the only
command that can follow "nice -n -5" is doom3 and not bash (or anything
else).  The line in my /etc/sudoers file is:

user_name   ALL = NOPASSWD: /bin/nice -n -? /usr/games/bin/doom3 *, \
        !/bin/nice * 

Without the part following the comma I can start doom3 and any other
command (Bad Thing (tm)) but doom3 runs as root.  With it I cannot run
doom3.  I've tried many permutations and it is starting to look like I'm
going to have to write a small C program that runs SUID, increases its
priority, drops its privileges and then starts doom3.  Any thoughts will
be appreciated.

Thanks
-- 
Tres

-- 
[email protected] mailing list

Reply via email to