Convert Unix file permissions between octal notation and rwx symbolic notation.
What is supported
This converter supports the standard read, write and execute bits for owner, group and others. Special setuid, setgid and sticky bits are not included.
How to convert file permissions
- Enter three octal digits, such as
644, and select Convert Octal. - To convert in the other direction, enter nine symbolic characters, such as
rw-r--r--, and select Convert Symbolic. - Read the owner, group and others permissions separately. Reset restores the starting fields and clears the previous result.
Read an octal permission value
Each position represents a different class of user: owner first, group second and others third. Within one position, read is worth 4, write is worth 2 and execute is worth 1. Add the enabled permissions: 6 means read plus write, while 5 means read plus execute.
For example, 644 becomes rw-r--r--: the owner can read and write, while the group and others can read. 755 becomes rwxr-xr-x. The all-zero value 000 becomes ---------. These examples explain notation; the appropriate permissions depend on the file, application and users involved.
Files and directories behave differently
For a regular file, execute permission allows execution when other requirements are met. For a directory, execute means the ability to search or traverse it. Access can also depend on parent directories, ownership, access control lists and other system rules, so a numeric value alone does not describe every access decision.
Common questions
Can I paste the complete output from ls?
Enter only the nine permission characters. Omit the initial file-type character, such as the d in a directory listing, and any additional markers or columns.
Does this support 4755 or a sticky bit?
No. This converter handles only the ordinary read, write and execute bits. It rejects four-digit modes and symbolic special-bit letters such as s or t instead of silently dropping them.
Does converting change my files?
No command is executed by this form. It displays an equivalent notation. For a checkbox interface, open the CHMOD Generator; browse other utilities in Developer Tools.
Reference: GNU Coreutils numeric modes.