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