Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
getfacl --access ./www.dailyplanet.com/ | setfacl -d -M - ./www.dailyplanet.com/
getfacl --access ./www.lexcorp.com/ | setfacl -d -M- ./www.lexcorp.com/

getfacl --access generates the details of the permissions we applied to the directory and the setfacl with the -d and -M parameters changes the default ACL for new files and directories.

Noteinfo

Notice the extra dash after -M? I have no idea why we need it, it was just in the example at the bottom of the man pages for setfacl. If you know, please share.

 

which takes as a parameter file. If the file is -, the input is taken from stdin.

References

Good introduction from the Ubuntu docs - https://help.ubuntu.com/community/FilePermissionsACLs

...