On Thu, Dec 23, 1999 at 12:21:12PM -0500, Bart Szyszka wrote: > > Have a look at using sudo, to execute any commands you want as root. > > Speaking of sudo, is there a menu/X/KDE driven way of managing the > sudoers file? I'm not having much luck with adding things in there manually > and I'd rather have something slightly more automated anyway.
Just in case you couldn't find the menu-driven software, here's my /etc/sudoers telling users okidz & shutdown to be allowed to execute kill & shutdown commands without password: # Host alias specification Host_Alias LOCAL = okidz # User alias specification User_Alias SHUTUSERS = okidz,shutdown # Cmnd alias specification Cmnd_Alias SHUTDOWN = /sbin/shutdown Cmnd_Alias KILL = /bin/kill # User privilege specification root ALL=(ALL) ALL SHUTUSERS LOCAL = NOPASSWD: SHUTDOWN,KILL Problem is, even if you get sudo working, gdm can't be killed by: kill `cat /var/run/gdm.pid`; because it would be restarted. Replacing (user) shutdown's /bin/bash with a shutdown script in /etc/passwd wouldn't work; it seems that gdm doesn't execute the default login shell. Oki