...
Once we are happy with the permissions, change the default ACLs so any files or folders created underneath the parent directories are maintained.
Look at the default ACLs,
Code Block | ||
---|---|---|
| ||
getfacl --default ./www.dailyplanet.com/
# Roderick put listing here after you practice. |
Apply changes to the default ACLs,
Code Block | ||
---|---|---|
| ||
getfacl --access ./www.dailyplanet.com/ | sudo setfacl -d -RM - ./www.dailyplanet.com/ |
...
-d = Change default permissions for newly created files and folder.
-M = Take as input files. Because the dash is used, the file is instead standard input.
R = Apply changes recursively to folders and files.
The default ACLs should now be changed,
Code Block | ||
---|---|---|
| ||
getfacl --default ./www.dailyplanet.com/
# Roderick put listing here after you practice. |
Repeat the same steps for www.lexcorp.com and change the group accordingly,
...