Results 1 to 2 of 2
Hello all,
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.
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-06-2010 #1Just Joined!
- Join Date
- Feb 2010
- Posts
- 6
NFS + File permissions
Hello all,
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:Code:/shares/internal/ 10.0.0.0/255.255.0.0(rw,async,anonuid=33,anongid=33)
Sub directories areCode: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?Code: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)
- 02-06-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,141
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,Code:# sample /etc/exports file / master(rw) trusty(rw,no_root_squash) /projects proj*.local.domain(rw) /usr *.local.domain(ro) @trusted(rw) /home/joe pc001(rw,all_squash,anonuid=150,anongid=100) /pub (ro,insecure,all_squash)
Try it and let us know if that works.Code:/shares/internal (rw,async,anonuid=33,anongid=33)
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
