Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

NFS mount ignored owner and file permission

Featured Replies

I have Unraid 6.5.1  nfs mounted on CentOS 6.5, I can set ownership and file permission on mounted NFS on client, however any user is to able to delete or modified regardless the ownership and permission on the file. I am missing anything Unraid NFS configuration?

What kind of NFS share to you have? (Public/Secure/Private)

and what's the output of

# cat /etc/exports
# exportfs -v

And how are they mounted from the CentOS client?

  • Author

Here is the exports and exportfs -v   NFS share is private 

 

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]$
 

Edited by Ken Huang

Hmm. tried it and you are correct... this is probably a bug with the user shares.

I can't shutdown my array for a while, but if you have disk shares enabled, try creating an NFS share there and doing the same tests there.

Feel free to create a defect report.

  • Author

Same result when create a share on disk shares enabled, no ACL on client.

Thanks for confirming, it's not just me crazy, never seen something like this before and just moved from FreeNAS to Unraid few months ago and a long time NFS user :-)

  • 7 months later...

Any updates on this? I experience the same thing with my unassigned device share and I am heavily dependent on the system accepting the user/group permissions - right now everybody get access to r/w and completely ignoring the file permissions.

 

I know I can specify them myself in the exports file, but it get overwritten every time I do an update with any NFS share in unraid GUI, which is quite annoying. Any simple solution to either keep very specific rules to apply, or making it care about the permissions?

 

It magically worked anyway, dunno what happened.

Edited by olehj
Invalid comment

  • 1 year later...

I see the same behavior. The NFS is ignoring owner and permissions to files and folders.

Any hint if this will be fixed?

Any workarounds maybe?

Using Unraid 6.8.3

 

  • 1 year later...

I'm also seeing this same behavior, Unraid 6.9.2, Centos 8 stream nfs client.

 

The share can be mounted and all the file permissions are correct on both the server and client. I can also create files with the proper permissions based on the user on the client.

 

But the user can then do anything as if permissions were totally open.

 

Anyone solved this?

 

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
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.