Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


LinkBack Search this Thread
Old 06-25-2010, 12:40 PM   #1
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 384

Rep: Reputation: 61
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.
Old 06-25-2010, 12:56 PM   #2
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 49
Can you please check "/bin/mount" has SUID?

ls -al /bin/mount
Old 06-25-2010, 01:07 PM   #3
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 384

Original Poster
Rep: Reputation: 61
Originally Posted by blue_print View Post
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"mount.nfs: an incorrect mount option was specified" (soft) catkin Linux - Networking 2 09-19-2009 05:30 AM
How do I enforce in Red hat linux that only root user be a member of the "root" group sultf Linux - Security 4 01-08-2009 04:42 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
Postgresql error FATAL: user "root" does not exist" cgetty Ubuntu 4 06-21-2005 02:11 PM
Unmounting "broken" NFS/SMB mounts safely darkfame Linux - Networking 1 12-11-2003 06:13 PM

All times are GMT -5. The time now is 04:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration