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