Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sudo passwords



>      So I set up sudo to let users run simple commands like mount /dev/fd0 
>      /floppy, but it promps for a password... the root password.  This 
>      seems to defeat some of the functionality.  I'd like whoever to be 
>      able to mount a CDROM with out giving out the root password.
>

That's odd, I didn't think sudo should ask for the root passwd.  Are you
sure you're not su'd while testing this.  I've confgiured sudo at home to
grant my wife access to start and stop ppp without a passwd.  Here's a
snippet of the sudoers file.  Make sure you assign parameters in the
/etc/fstab for nosuid if you're gifting mount to users.


Cmnd_Alias      SHUTDOWN=/sbin/shutdown,/sbin/halt
Cmnd_Alias      ADMIN=/bin/mount,/bin/umount
Cmnd_Alias      PPP=/usr/bin/dctrl

rhonda          ALL=(ALL) NOPASSWD: PPP, NOPASSWD: SHUTDOWN

### End of Snippet

+------------------------
| christoph
| linuxguy at ici.net
| http://home.ici.net/~linuxguy


-
Subcription/unsubscription/info requests: send e-mail with subject of
"subscribe", "unsubscribe", or "info" to discuss-request at blu.org




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org