Jump to content
  • Unraid 6.5.2 NFS mount ignored owner and file permission


    Ken Huang
    • Minor

    NFS share mounted on CenOS 6.5 and 7.0, file can be deleted or read regardless owner and permission. 

     

     

     

    In the test below, I can remove file and directory own by root.

     

    exports

    # See exports(5) for a description.
    # This file contains a list of all directories exported to other computers.
    # It is used by rpc.nfsd and rpc.mountd.

    "/mnt/user/Backups" -async,no_subtree_check,fsid=104 192.168.15.0/24(sec=sys,rw,no_root_squash,insecure,acl)


    exportfs -v

    /mnt/user/Backups
                    192.168.15.0/24(rw,async,wdelay,hide,no_subtree_check,fsid=104,sec=sys,insecure,no_root_squash,no_all_squash)


    mount fstab

    sun:/mnt/user/Backups/Servers/earth     /net_backup             nfs     defaults        1 2

     

     

    The test directory is own by root but I can remove the directory with regular user.

    [ken@earth net_backup]$ ls -tlr
    total 0
    drwx------ 1 root root 0 May  5 07:27 test
    [ken@earth net_backup]$ rm -rf test
    [ken@earth net_backup]$




    User Feedback

    Recommended Comments



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.

×
×
  • Create New...