Results 1 to 4 of 4
I would like to make a few commands bypass the sudo authentication. Specifically:
mount
shutdown,poweroff,halt,reboot, etc.
netcfg
All other commands are reserved for the wheel group, and they need password. ...
- 11-14-2009 #1
Help with /etc/sudoers -- Command Exceptions
I would like to make a few commands bypass the sudo authentication. Specifically:
mount
shutdown,poweroff,halt,reboot, etc.
netcfg
All other commands are reserved for the wheel group, and they need password. I want the above commands to be executable by anyone in the users group, with a password.
Any help would be appreciated. I also would like advice about the the possible security problems with the mount command usable by everyone (just for my information).
- 11-14-2009 #2and whatever other commands you wantCode:
%users ALL = NOPASSWD: /sbin/shutdown, /sbin/reboot, /sbin/mount, /sbin/umount
I believe the file is read in order, so later contradictory rules would take precedence. (ie, probably put it at the end of the file)
- 11-14-2009 #3
Thanks. That works quite nicely.
- 11-14-2009 #4
I think you don't have to specify the /sbin/umount command, because when someone uses the mount commands, it writes into /etc/mtab user=NAME. This way, the user NAME can use the umount command.


Reply With Quote
