Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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:
    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
    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:
    /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

    What am I missing! Any help will be much appreciated...

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Western Kentucky
    Probably because the user IDs don't match up on the other side. Try adding 'all_squash' to /etc/exports
    linux user # 503963

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts