Linux setfacl default group permission on file & dir

let target_dir's new file/dir test_group permission base on read & write

$ sudo setfacl -R -d -m g:test_group:rw /target_dir


add NFS mount acl option on boot


$ sudo vim /etc/fstab


UUID=xxxxx  /target_dir   ext4   defaults,acl     1 1



if you get error msg that setfacl: /target_dir: Operation not supported,
the target_dir maybe mount by NFS,so change your mount settings.

$ sudo mount -o remount,acl /target_dir

留言