Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jan 2007
Mount problem "only root can do that"
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,
It shows u the error coz only root has the permission to mount, so a nonroot user can't mount...
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.
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!
- 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.