Back to Tools

Unix Permissions Calculator

Calculate chmod values and file permissions

Symbolic Notation
-rwxr-xr-x

Permissions

Read (4) Write (2) Execute (1) Value
Owner (u) 7
Group (g) 5
Others (o) 5

Command

chmod 755 filename

Common Permission Sets

How It Works

Unix file permissions are represented by three sets of permissions for owner, group, and others. Each set has three permissions: read (r), write (w), and execute (x).

  • 4 - Read permission - can view file contents or list directory
  • 2 - Write permission - can modify file or add/remove files in directory
  • 1 - Execute permission - can run file as program or access directory

The numeric value is calculated by adding: 4 (read) + 2 (write) + 1 (execute). For example, 7 = 4+2+1 (rwx), 5 = 4+1 (r-x), 6 = 4+2 (rw-).

Olá! Precisas de ajuda?