๐Ÿง Linux File Permission Calculator

Free online Linux file permission calculator. Parse ls -la output (drwxr-xr-x), convert between numeric and symbolic modes, calculate umask, handle SUID/SGID/Sticky Bit. Essential tool for sysadmins and developers. | No sign-up ยท Data never leaves your browser

Zero dependencies ยท Works offline

๐Ÿ”ง Permission Calculator

Enter a permission string to see the parsed result
Enter numeric permission to see conversion
Enter symbolic permission to see conversion
Default umask: 022
Default file permission: 644rw-r--r--
Default directory permission: 755rwxr-xr-x

๐Ÿ“Š Permission Reference Table

NumericSymbolicPermissionCommon Use
777rwxrwxrwxAll permissions for everyoneTemp dirs (not recommended)
755rwxr-xr-xOwner all, others read+execDirectory/script default
700rwx------Owner onlyPrivate directory
644rw-r--r--Owner rw, others readFile default
600rw-------Owner rw onlyPrivate file (SSH keys)
400r--------Owner read onlyRead-only config
4755rwsr-xr-xSUID + 755passwd, privileged commands
1777rwxrwxrwtSticky + 777/tmp directory

How to Use Linux File Permission Calculator

The Linux File Permission Calculator supports 4 modes:

  1. Parse ls Output
    Paste the permission field from ls -la (e.g., drwxr-xr-x or -rw-r--r--) to automatically parse numeric, symbolic, and chmod command.
  2. Numeric Mode
    Enter numeric permissions (e.g., 755, 644) to convert to symbolic and ls format. Supports special bits (SUID/SGID/Sticky).
  3. Symbolic Mode
    Enter symbolic permissions (e.g., u=rwx,g=rx,o=r) to convert to numeric and ls format.
  4. Umask Calculator
    Enter a umask value to calculate default permissions for new files and directories.

โ“ FAQ

What does drwxr-xr-x mean?

drwxr-xr-x represents a directory where the owner has read, write, and execute permissions (rwx), the group has read and execute (r-x), and others have read and execute (r-x). The numeric value is 755, the standard permission for directories.

What is umask and how is default permission calculated?

umask is a mask that controls default permissions for newly created files and directories in Linux. Default permission = base permission - umask. Files have a base of 666, directories 777. For example, with umask=022, new files get 666-022=644 (rw-r--r--) and new directories get 777-022=755 (rwxr-xr-x).

What are SUID, SGID, and Sticky Bit?

SUID (4000) makes a program run with the file owner's permissions, like the passwd command. SGID (2000) makes a program run with the file's group, and on directories new files inherit the directory's group. Sticky Bit (1000) only allows the file owner and root to delete files in a directory, commonly used on /tmp.