File System Permissions
Explore how file system permissions work in Bash to protect files and directories. Learn about user access rights, bitmask representations, and how Unix controls read, write, and execute permissions to secure your system and enable shared use.
We'll cover the following...
Permissions
The mkdir, rm, cp, and mv utilities check the file system permissions before acting. These permissions define whether we can operate on the target object. Let’s consider this file system mechanism in detail.
Permissions restrict the users’ actions on the file system. The OS tracks these actions and checks their allowance. Each user can access only their files and directories because of this feature. Users can share files with each other, but they should allow it explicitly. This sharing doesn’t work by default. It also restricts access to the OS components.
Permissions allow several people to share one computer. This workflow was widespread in the 1960s until the advent of PCs. Hardware resources were expensive ...