Visual · instant · no server round-trip

    Unix Permissions Calculator

    Build chmod permissions visually. Click to toggle bits, type a numeric value, or pick a common preset.

    Symbolic notation

    -rwxr-xr-x
    ownergroupothers
    Owner
    7rwx
    Group
    5r-x
    Others
    5r-x
    Terminal Commands
    chmod 755 filename
    chmod u=rwx,g=rx,o=rx filename
    chmod -R 755 directory/
    find . -type f -exec chmod 755 {} \;
    Advertisement

    Common Presets

    Quick answer

    Unix permissions use a 3-digit octal number where each digit represents owner, group, and others. Each digit is the sum of: read (4) + write (2) + execute (1). So 755 = owner:rwx (7), group:r-x (5), others:r-x (5).

    Unix permission bits explained

    ValueBinaryPermissionMeaning
    0000---No permissions
    1001--xExecute only
    2010-w-Write only
    3011-wxWrite + execute
    4100r--Read only
    5101r-xRead + execute
    6110rw-Read + write
    7111rwxFull permissions

    Common chmod values

    chmodSymbolicUse case
    755rwxr-xr-xDirectories, executables
    644rw-r--r--Regular files, web files
    600rw-------SSH private keys
    700rwx------Private directories
    777rwxrwxrwx⚠️ Avoid — full access
    400r--------Read-only, backups
    775rwxrwxr-xGroup collaboration
    440r--r-----Shared read-only files

    chmod command examples

    chmod 755 script.sh      # make executable
    chmod 600 ~/.ssh/id_rsa  # secure SSH key
    chmod -R 755 /var/www/   # recursive on directory
    chmod +x script.sh       # add execute for all
    chmod u+w,g-w file.txt   # symbolic modification
    chmod =644 file.txt      # set exact permissions

    How to check file permissions

    ls -la filename          # show permissions
    stat filename            # detailed file info
    find . -perm 777         # find files with specific perms
    find . -perm /111        # find executable files

    Special permission bits

    SetUID (4000): When set on an executable, the process runs with the owner user's effective UID — classic example: passwd must write shadow files owned by root while invoked by normal users.

    SetGID (2000): For executables, runs with the group's GID; for directories, new files inherit the directory's group (useful for team-shared folders).

    Sticky bit (1000): On directories (e.g. /tmp), only the file owner, directory owner, or root may remove or rename files — not everyone with write access.

    Advertisement

    Related Guides & Tutorials

    // developers also read