-   Linux - Networking (
-   -   User NFS mounts - "mount: only root can do that" (

arashi256 06-25-2010 01:40 PM

User NFS mounts - "mount: only root can do that"
I am working from RHCE Study Guide 5th Edition by Michael Jang. Lab 1 for Chapter 6 says that I should be able to mount a remote NFS share as an ordinary user under their home directory. However, mount requires root unless it's defined in /etc/fstab with the appropriate options. So would the following never work for a user?


mount -t nfs /home/testuser1/inst
I could define it in /etc/fstab, but then I would have to specify a "general" mount point for the mount, like /mnt/nfs and not specific to a user like the lab suggests above.

Is the book wrong on this? Even the answer for the lab makes no mention of using fstab to mount as non-root user and the above command is correct according to the solution.

Has anyone used the book and done this lab successfully? - it seems pretty misleading.

blue_print 06-25-2010 01:56 PM

Can you please check "/bin/mount" has SUID?

ls -al /bin/mount

arashi256 06-25-2010 02:07 PM


Originally Posted by blue_print (Post 4014985)
Can you please check "/bin/mount" has SUID?

ls -al /bin/mount

Hi, thanks for replying. The output for that command is: -


-rwsr-xr-x 1 root root 58324 Sep  7  2009 /bin/mount

All times are GMT -5. The time now is 07:02 AM.