NFS + File permissions
I am trying to test a setup, but not very good with linux.
After a few hours of testing and trying, I don't know where to go next.
Trying to setup NFS, and partially there. I think its permissions now?
In my exports I have:
my permissions I have:
Sub directories are
drwxr-xr-x 7 www-data root 4096 Feb 6 04:00 internal
From what I have read this should allow anyone regardless of UID or GID to view the NFS share? Am I missing something?
drwxrwxr-x 2 www-data www-data 4096 Feb 5 23:33 PUBLIC
drwx------ 4 www-data root 4096 Apr 26 2009 RECORDING
drwx------ 2 www-data root 4096 Feb 6 01:57 TESTSHARE
drwx------ 2 root root 16384 Feb 17 2002 lost+found
-rw-r--r-- 1 www-data root 18 Feb 6 04:00 test.txt
EDIT: If I mount this using root from another linux box it works ok, so now it is just how to allow anon access? (trying to connect to VMWare ESXi with it)
Here are the examples from the nfs exports man page:
So, for everyone to have rw access to /shares/internal like you want, with appropriate user permissions applied, remove the "10.0.0.0/255.255.0.0" from the line in exports, and remove the trailing / from /shars/internal/. Ie,
# sample /etc/exports file
/ master(rw) trusty(rw,no_root_squash)
/usr *.local.domain(ro) @trusted(rw)
Try it and let us know if that works.