Thanks

On Fri, 2 Mar 2001, Darryl Harvey wrote:

> At 10:09 AM 2/03/2001, you wrote:
> >how do you setup the sudo file
> >so that a particular user
> >can mount drives.
> >
> >i looked in the sudoers file in /etc/sudoers
> >and man but looks criptic in the man.
> >
> >
> >that is.
> >
> >mount -t smb //Windows /mnt/Windows -o username=someuser
> 
> 
>  From the MAN page, I get the example;
> 
>          ALL            CDROM = NOPASSWD: /sbin/umount /CDROM,\
>                         /sbin/mount -o nosuid\,nodev /dev/cd0a /CDROM
> 
>         Any user may mount or unmount a CD-ROM on the machines in the CDROM 
> Host_Alias (orion, perseus, hercules)
>         without entering a password.  This is a bit tedious for users to 
> type, so it is a prime candiate for
>         encapsulating in a shell script.
> 
> 
> So in your sudoers file, you need the entry;
> 
> ALL     ALL = NOPASSWD: /sbin/mount, /sbin/umount
> 
> ** This will allow ANY user to run the mount & umount command without the 
> need for a passwd.
> This is in it's simplest form and is open to lots of nailing down and 
> improving.
> 
> 
> ## NOTE: use visudo to edit the /etc/sudoers file
> 
> Hope this helps
> Darryl
> 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to