Your support on Ko-Fi is much appreciated: https://ko-fi.com/csg_yt
Buy CSG Merchandise: http://tee.pub/lic/csg
More information on Sophos Home Antivirus: http://bit.ly/SophosHP
More information about Hostinger VPS: http://bit.ly/H-VPS
This video is based on RHEL 8. Video to cover the section ‘Diagnose and correct file permission problems’ for the RHCSA (Red Hat Certified System Administrator).
More information on the required learning: http://bit.ly/rhcsa8
Notes from the video:
ACL (Access Control Lists) are the more granular option for file and directory permissions. It allows multiple groups or users to have varying access.
To check if ACLs are enabled on a file system (will return permissions if enabled):
# getfacl file
To update the current ACL permissions for a user:
# setfacl -m u:user:rwx file
Where user is the username in question, rwx is the permissions (read, write & execute or any combination of the three) and file is the file or directory to update.
To update the current ACL permissions for a group:
# setfacl -m g:group:r file
Where group is the group to update, r is giving read permissions and file is the file or directory to update.
Along side ACLs general read-write permissions are also important when troubleshooting. To review the current permissions use:
# ls -l
This will give a long list with all the permissions for the user, group and other. You can change the owner and or group of the file using:
# chown user:group file
To change the permissions of the file or directory use:
# chmod xxx file
Where xxx would be the permission value e.g. 750 (rwx,rx,-)