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

    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:
    drwxr-xr-x 7 www-data root 4096 Feb  6 04:00 internal
    Sub directories are
    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
    From what I have read this should allow anyone regardless of UID or GID to view the NFS share? Am I missing something?

    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)

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Here are the examples from the nfs exports man page:
           # 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)
    So, for everyone to have rw access to /shares/internal like you want, with appropriate user permissions applied, remove the "" from the line in exports, and remove the trailing / from /shars/internal/. Ie,
    /shares/internal     (rw,async,anonuid=33,anongid=33)
    Try it and let us know if that works.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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