my directory hierarchy looks like this
/tmp/
dir/
subdir/
file
so i try command (found on a similar issue linux/setfacl - Set all current/future files/directories in parent directory to 775 with specified owner/group)
setfacl -Rm u::rwX,d:u::rwX tmp/
setfacl -Rdm u::rwX,d:u::rwX tmp/
it works fine, all file and directories are affected, but when i add a new file
/tmp/
dir/
subdir/
file
file2
it doesnt affect file2, i also tried with small x
setfacl -Rm u::rwx,d:u::rwx tmp/
setfacl -Rdm u::rwx,d:u::rwx tmp/
but it doesn't work, can anyone please tell me what i'm doing wrong
file2. Can we see contrastinggetfaclonfileandfile2? – BaseZen Jun 04 '21 at 16:39umaskfigures in to new files even when ACLs are used. Check in with https://askubuntu.com/questions/44542/what-is-umask-and-how-does-it-work – BaseZen Jun 07 '21 at 15:38