NFS share access - Permission denied
Posted
by
rgngl
on Super User
See other posts from Super User
or by rgngl
Published on 2012-11-18T12:07:07Z
Indexed on
2012/11/18
23:08 UTC
Read the original article
Hit count: 269
file-permissions
|nfs
I'm trying to share a directory on my NAS device(WD Mybook WE) with NFS to another machine on my local network. The directory on the NAS device looks like this:
drwxr-x--- 15 git git 4096 Nov 17 01:05 git/
And id's of the user git
on the NAS device is like this:
[root@myhost DataVolume]# id git
uid=505(git) gid=505(git)
I played with many different parameters in the /etc/exports
file and this is what I got there currently:
/DataVolume/git 192.168.0.20(async,rw,no_root_squash,no_subtree_check)
On the client side I have the user git
and group git
with the same id's to match the ones on the server.
user@myclient:~$ id git
uid=505(git) gid=505(git) groups=505(git)
I mount the directory with:
sudo mount myhost:/DataVolume/git -t nfs git/
and the mounted directory looks like:
drwxr-x--- 15 git git 4096 Nov 17 01:05 git
After these steps I can't seem to cd to that directory with any user, including git and root. I am getting a Permission denied
error.
Thanks in advance for any help.
© Super User or respective owner