[NTLUG:Discuss] Can someone explain this

Chris Cox cjcox at acm.org
Fri Oct 12 00:11:39 CDT 2007


Leroy Tennison wrote:
> I have the following line in /etc/fstab on CentOS 4.5:
> 
> /dev/fd0  /media/floppy  auto   users,rw,exec,noauto 0 0
> 
> 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?
> 

The key is in the mount options in fstab.  It's what allows you
to do mount /media/floppy (which gets the rest of the info from
fstab, including the info that allows a normal user to do the mount).

The "users" option is a special option in this case.  Mount understands
the "users" option when it gets it from /etc/fstab.





More information about the Discuss mailing list