Hi,
On Thu, Apr 16, 2009 at 10:32:52PM +0200, Toma?? Bod??ar wrote:
> Why is there cd0 even if it's directory name?
> On this line you write only commands which you want to use
> without/with password and not name of directories.
One can indeed include options for the commands:
sudoers(5):
operator ALL = DUMPS, KILL, SHUTDOWN, HALT, REBOOT, PRINTING,\
sudoedit /etc/printcap, /usr/oper/bin/
^^^^^^^^^^^^^^^^^^^^^^
> So 'db ALL=/sbin/mount , /sbin/umount' or 'db
> ALL=NOPASSWD:/sbin/mount , /sbin/umount' is enough.
>
> What's the output of 'ls -l /dev/cd*' and 'ls -l /dev/rcd*' ?
>
>
> 2009/4/16 Juan Jimenez Galdos <[email protected]>:
> > Sorry, I pressed enter.
> >
> > I add to sudoers (cd0 is the directory in /mnt/):
> > db B B ALL=/sbin/mount /cd0,/sbin/umount /cd0
> >
> > But when I try "mount /dev/cd0c /mnt/cd0" and i write the password it says
> > "try again", and i have written the password correctly. I am trying to do
> > the same without password:
> >
> > db B B ALL=NOPASSWD:/sbin/mount /cd0,/sbin/umount /cd0
> >
> > But something is wrong, and it says "password:".
> >
> > Thank you very much.
> >
> >
>
>
>
> --
> http://www.openbsd.org/lyrics.html
>
--
Martin Oppegaard