/ˈjuːnɪks pərˈmɪʃənz/

noun — “the classic three-tier access system that decides if you can look, edit, or execute in the land of pipes and terminals.”

Unix Permissions are a set of access rules used in Unix-like operating systems to control interactions with files and directories. Each file has three categories of users: owner, group, and others, with three basic types of permissions: read (r), write (w), and execute (x). These permissions are represented symbolically (e.g., -rw-r--r--) or numerically in octal notation (e.g., 0644), providing both human-readable and machine-friendly ways to manage access.

Unix permissions work closely with File Permissions and User Accounts, defining exactly who can interact with each resource. They are fundamental to system security, preventing unauthorized reading, modification, or execution of files. Special attributes such as the setuid, setgid, and sticky bit provide advanced control, for example allowing a program to run with the privileges of its owner or restricting deletion of shared files in a directory.

In practical use, administrators manipulate Unix permissions via the chmod, chown, and chgrp commands. The octal notation is often faster for bulk operations (e.g., chmod 755 script.sh), while symbolic notation is more intuitive for fine-tuning (e.g., chmod u+rwx,g+rx,o+rx script.sh). These permissions also integrate with Access Control Lists for even more granular control.

Unix permissions are critical in real-world scenarios such as multi-user servers, web hosting, and shared computing environments. Proper permission management ensures that users can collaborate safely, scripts run securely, and sensitive files remain protected from accidental or malicious access. They also tie into I/O Streams because the ability to read or write a file directly affects data flow in programs.

Some illustrative examples:

// Symbolic representation
-rwxr-xr-x 1 alice devs 1024 Feb 28 script.sh
# Owner: read/write/execute, Group: read/execute, Others: read/execute

// Octal representation
chmod 755 script.sh  # equivalent to -rwxr-xr-x
chmod 644 file.txt   # owner read/write, group/others read-only

// Changing ownership and groups
chown bob file.txt
chgrp devteam file.txt

Unix Permissions are like the secret handshake at a Unix party: only the right combination of letters and numbers lets you in to peek, touch, or run the fun bits.

See File Permissions, Access Control Lists, User Accounts, I/O Streams, Standardization.