One of the study questions I'm doing is suggesting that I apply ACL's for the /root directory recursively for a regular user on the system. Obviously, this is bad security practice but it's just for practice inside a VM and I will remove the ACL once I'm done.
I've tried like this:
setfacl -R -m u:username:rwx /root
But when I log in as username I just get every file as rwx permissions, including text files and other non executables.
Is there a neater way that copies permissions into the ACL from regular ugo permissions, or would that involve a bit of bash scripting?