How do Unix file permissions work?
On Linux, macOS and other Unix systems every file and directory has three sets of permissions: one for its owner (user), one for its group and one for everyone else (others). Each set can allow read (r), write (w) and execute (x), worth 4, 2 and 1. Adding them gives one octal digit per set, so rwxr-xr-x becomes 7, 5, 5, written as chmod 755. On directories, read lists the names, write creates or deletes entries and execute lets you enter the directory. A fourth leading digit holds the special bits: setuid (4), setgid (2) and sticky (1).
Features
- • Checkbox grid for owner, group and others with live octal value
- • Two-way editing: type 755 or rwxr-xr-x and the boxes follow
- • setuid, setgid and sticky bit support with ls -l style display (s, S, t, T)
- • Ready-to-copy commands in numeric and symbolic form (u=rwx,g=rx,o=rx)
- • Presets for the most common modes with an explanation of each
Works offline
All calculations run in your browser. No file is touched: the tool only builds the command for you to run.