Linux: Files and Permissions
2h 58mIntermediate2022-06-29
Authors

Grant McWilliams
Consultant, Speaker, Writer, Professor, Developer
Course details
When it comes to managing Linux servers securely, permissions and access control are crucial. In this course, computer science instructor and Linux enthusiast Grant McWilliams explains how to manage files and directories, create links, and set permissions in Enterprise Linux 8. Grant covers how to maintain access control to files through the standard Linux permission system and access control lists. He also shows how to grant or revoke access to files and directories for users and groups as well as how to set up special bits for privilege escalation, global writable directories, and permission inheritance.
Skills covered
LinuxNetwork AdministrationNetwork and System AdministrationOpen SourceDeep Dive (X:Y)
Concepts
Introduction
- Manage files and permissions in Linux
- What you should know
- Get help with commands
- Using the exercise files
- Reconfigure or migrate CentOS
Linux Files
- What is a file
- Getting information about files
- About extended attributes
- Getting extended attributes
- About file globs
- Using character classes
- Using globs to match files
- Matching with brace expansion
- The Magic of extended globs
- Matching files with extended globs
- Advanced extended globs
Manage Linux Files
- Understanding filesystem paths
- Creating files and dirs
- Copying files and dirs
- Moving and renaming files and dirs
- Deleting files and dirs
- Creating links to files and dirs
- Making file manipulation safe
- Challenge - Linux files
- Solution - Linux files
Linux Permissions
- Standard Linux permissions overview
- File and directory modes
- File ownership
- Permissions using numeric notation
- Permissions using symbolic notation
- Initial permissions using umask
- Special file bits - SUID and SGID
- Special directory bits - SGID and Sticky
- Challenge - Permissions
- Solution - Permissions
Access Control Lists
- ACL overview
- Read ACLs
- Setting ACLs
- Manage Default ACLs
- Delete ACLs
- ACL tricks
- Challenge - ACLs
- Solution - ACLs
Conclusion
- Next steps