Results 1 to 5 of 5
well i have an NFS server setup on a pc "server1" running Fedora Core 4 and i need to mount this from a non-root user. But when i try this ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-23-2007 #1
- Join Date
- Jan 2007
Mount problem "only root can do that"
well i have an NFS server setup on a pc "server1" running Fedora Core 4 and i need to mount this from a non-root user. But when i try this i get this freaking error "mount: only root can do this". i do have the entry in fstab file and i tried following solution [none of these work]
entry in fstab is
server1:/home/user/common /home/user/common nfs rw,hard,intr 0 0
adding +x permission to /bin/mount for every everyone
mounting without fstab entry and with fstab entry
adding users in entry in fstab
but none of this worked for me. thats all i could find after googling and visiting many a forums. Any help in this regard will be much appreciated,
- 01-23-2007 #2
It shows u the error coz only root has the permission to mount, so a nonroot user can't mount...
- 01-23-2007 #3
man mount says this about 2 user* option you can use:
user Allow an ordinary user to mount the file system. The name of the mounting user is written to mtab so that he can unmount the file system again. This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent options, as in the option line user,exec,dev,suid). users Allow every user to mount and unmount the file system. This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent options, as in the option line users,exec,dev,suid).Regards Scienitca (registered user #335819 - http://counter.li.org )
A master is nothing more than a student who knows something of which he can teach to other students.
- 01-23-2007 #4
Ditto what scientica said. Since you mention that you already tried that, can you post the entire contents of /etc/fstab with the user option added? It may just be a syntax thing.Stand up and be counted as a Linux user!
- 01-23-2007 #5
- Join Date
- Jan 2007
yup i got it figured out
'user' worked for me thought 'users' didn't
thanks a lot everyone
but now i've got another [though different] problem
when i try to mount NFS from that non-root user, i get an access denied error
I've exported /home/user/common to a subnet 172.16.0.0/255.255.0.0 with read/write permissions (rw)
That subnet is also there in hosts.allow file. I've also tried stopping iptables service just to make sure it isn't creating the problem.
Can anyone help [seems like i'm having a badluck charm. when i solve one problem, i'm stuck into another]
Note: When i exported a folder in root [/root/common] with same permissions and tried to access it through root user from the client machine, i had absolutely no problem. But this isn't working though i've even used the same username for client and server machine.