Unix Permission Calculator

Owner
Read (4)
Write (2)
Execute (1)
Group
Read (4)
Write (2)
Execute (1)
Public
Read (4)
Write (2)
Execute (1)
$chmod 755 file
Octal Value
Numeric representation
755
Symbolic Notation
Letter representation
rwxr-xr-x
Direct answers to common questions on chmod octal calculations, symbolic notation, and Unix file security.

Frequently Asked Questions About Linux Permissions

A chmod (change mode) calculator converts Linux and Unix file permissions between 3-digit octal numbers and symbolic notation. By toggling Read (4), Write (2), and Execute (1) checkboxes for Owner, Group, and Public, or typing an octal value directly, it generates the exact chmod command and symbolic string.
Chmod 777 (rwxrwxrwx) grants full read, write, and execute permissions to everyone on the system (Owner, Group, and Others). It is unsafe for production servers because any local user or compromised process can modify or execute the file. Use 755 for directories and 644 for standard files instead.
Chmod 755 (rwxr-xr-x) gives the file owner full read, write, and execute permissions (7), while group members and others receive read and execute access (5), making it standard for directories and executable scripts. Chmod 644 (rw-r--r--) gives the owner read and write access (6) while restricting group and others to read-only access (4, or r--), which is standard for regular files.
Add the bit weights for each permission granted: Read = 4, Write = 2, Execute = 1, and no permission = 0. Calculate this sum separately for Owner, Group, and Others to form a 3-digit octal mode. For example, in chmod 644, Owner has read and write (4 + 2 = 6, or rw-), Group has read only (4, or r--), and Others has read only (4, or r--).
Octal notation represents permissions as a 3-digit base-8 number (such as 755 or 600) used with the chmod command. Symbolic notation uses a 9-character string of letters and hyphens (such as rwxr-xr-x or rw-------) to display the same Owner, Group, and Others access rights when running ls -l.
If root receives a 'Permission Denied' error, the file may have the immutable flag set (via chattr +i), reside on a read-only mounted filesystem, or be restricted by SELinux, AppArmor, or NFS root_squash policies that standard chmod modes cannot override.
For Nginx and Apache web servers, set directories to chmod 755 (rwxr-xr-x) so the web server process can traverse folders, and set HTML, CSS, PHP, and media files to chmod 644 (rw-r--r--) so they are readable without being writable by public users.
Yes. Because macOS and FreeBSD are POSIX-compliant Unix operating systems, their file modes, octal permission values, symbolic notation, and chmod terminal commands work identically to Linux.
Disclaimer
The Unix Permission Calculator runs entirely in your browser. No configuration inputs or permission commands are stored or transmitted.