[NTLUG:Discuss] Can someone explain this

David Simmons dave at dgnal.net
Thu Oct 11 23:19:41 CDT 2007



> I have the following line in /etc/fstab on CentOS 4.5:
> 
> /dev/fd0  /media/floppy  auto   users,rw,exec,noauto 0 0

Ok.....you can read 'man fstab' to learn more about the options
 
> Why is it that, if I try to "mount /dev/fd0
/media/floppy" as a regular
> user, I get "only root can
do that" but if I do "mount /media/floppy" it
>
works without complaint?

because you have 'user' as one of your
options.

The first way you're issuing the mount command that
doesn't read/look at fstab, it just does what you tell it (which is why
you need to be root)

The second one requires the lookup in the
/etc/fstab file....which you have denoted so that users can mount....so,
you, as a user, can mount.....

Read through the 'man fstab' for
more info

HTH - Dave


More information about the Discuss mailing list