Hi,
Go to following url www.linux4biz.net and there is howto on it .
Steve Lee wrote:
> 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
--
Regards
RaghuNath L pager:9624395369
WSS-Team,Texas Instruments India.
"Unix is user friendly all right, it is just very choosy about its friends
in perticuler GILL BATES"
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list