How to have all files in a directory to all default to the parent permissions.

Posted: September 6, 2017. At: 9:18 AM. This was 2 weeks ago. Post ID: 11289

This command will set all new files in the directory to all default to the permissions set to the parent directory. This is very useful when creating a new directory and you wish to ensure that the files therein have correct permissions.

[email protected]:~$ sudo setfacl -R -d -m o::rwx Documents/
[sudo] password for jason:

A very useful UNIX/Linux command.

If a new subdirectory is created within this directory, the permissions will be transferred to this as well by default.

This version of this command will do the same thing, but will not set this to be the default for new subdirectories.

sudo setfacl -R -m o::rwx Documents/

Another way to print Hello World at the Linux prompt. A strange but simple command.

jason@jason-desktop:~/Documents$ echo "Hello" >| echo "World" > out.txt; cat out.txt | rev
dlroW olleH

No comments have been made. Use this form to start the conversation :)

Leave a Reply