Permission mystery with NFS
Hello everybody,
I'm setting up a small shared file system between two computers, both running ubuntu desktop.
I want to access data from computer1 on computer2. I set up a nfs server on computer1 and client on computer2. I followed the SettingUpNFSHowTo from ubuntu community and everything seemed to work fine, untill I realized that I could not write anything on the data of computer1 from computer2.
Diagnostics are as follows:
on computer2:
returns this line with my mount point of the remote folders:
Code:
ls -l /
(...)
drwxrwxrwx 5 root root 4096 Jun 5 16:48 mnt
(...)
ls -l /mnt
drwxrwsr-x 18 root labmembers 4096 Jun 20 14:29 DATA
drwxrwxr-x 8 root labmembers 4096 Jun 20 14:28 DATA2
drwxrwxr-x 21 root root 4096 Jun 15 17:21 homes
ls -l /mnt/DATA
drwxrwsr-x 7 user1 labmembers 4096 Apr 20 09:16 AlphaPsyc
Aparently, user1 username and labmembers group are mapped just fine. (directories owned by other users that exist only on the server belong here to nobody. root is mapped correctly.)
I am user1, and part of group labmembers. If I cd into the subdirectory, all the content is rw by me. Now, if I
Code:
touch toto
touch: cannot touch `toto': Permission denied
On the server side, the same operation in the /export/DATA/AlphaPsyc folder I exported works no problem.
My /etc/exports has these lines:
Code:
/export computer2.local(rw,fsid=0,insecure,no_subtree_check,async)
/export/DATA computer2.local(rw,nohide,insecure,no_subtree_check,async)
The drives are mounted rw on both server and client.
idmapd.conf has
Domain = local on both server and client. doing sudo exportfs on the server shows me that all the directories are shared with computer2.correct.domain.name
What am I missing! Any help will be much appreciated...
Thanks!
Max