Find the answer to your Linux question:
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.
  1. #1
    Just 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:

    Code:
    /shares/internal/    10.0.0.0/255.255.0.0(rw,async,anonuid=33,anongid=33)
    my permissions I have:
    Code:
    drwxr-xr-x 7 www-data root 4096 Feb  6 04:00 internal
    Sub directories are
    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
    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
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    11,159
    Here are the examples from the nfs exports man page:
    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)
    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:
    /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
  •