chmod Permission Calculator

Calculate owner, group and other read/write/execute bits, with octal, nine-character symbolic output and a command example. Setuid, setgid and sticky correctly distinguish s/S and t/T. Directory execute permission means directory search/access.

Range 0000–7777 excludes file-type bits and ACLs. Examples use GNU chmod -- and POSIX-shell single quotes; paths allow 1–1024 characters without NUL or line breaks. Existing directory setuid/setgid may be preserved under system rules. Filesystem, mount and access-control rules also affect real permissions.

Options

Owner (u)
Group (g)
Other users (o)
Special permission bits

Result

Octal
644
Symbolic
rw-r--r--
chmod -- 644 'file.txt'

chmod Permission Calculator

Calculate chmod octal and symbolic permissions, including setuid, setgid and sticky bits. Copy a command with a safely quoted path.

Usage guide