RootUtils

Chmod Calculator

Client-Side Secure

Free online Chmod Calculator. Generate Linux file permission codes (777, 755) visually. Understand permissions with this simple tool.

User Type
Read (4)
Write (2)
Execute (1)
Owner
Group
Public

Advanced Special Bits

SetUID (4)
Run as Owner
SetGID (2)
Inherit Group
Sticky (1)
Restrict Delete
Permission Code
Type directly to update (e.g. 777)
----------
$chmod 000 file.txt

Is this tool broken?

Let us know if you found a bug or have a feature request.

Online Chmod Calculator & Generator

Calculate Linux file permissions instantly. Use our visual toggle switches to set Read, Write, and Execute rights for Owner, Group, and Public.

The tool automatically generates the corresponding Octal Code(e.g., 755) and Symbolic Notation (e.g., -rwxr-xr-x) for use with the chmod command in Unix-like systems.

Standard Permissions

  • 755
    Web Folders: Readable/Executable by everyone, writable only by owner. Standard for /var/www.
  • 644
    Web Files: Readable by everyone, writable only by owner. Standard for `.html`, `.css`, `.php` files.
  • 777
    Full Access: Dangerous. Everyone can read, write, and execute. Avoid in production.

Special Bits Guide

  • SetUID (4)
    Runs the executable with the permissions of the file owner (e.g. root) instead of the user running it. Used for commands like passwd.
  • Sticky (1)
    Restricts file deletion in shared directories. Only the file owner can delete their own files. Standard for /tmp.

Octal Value Reference

Read (r) 4
Write (w) 2
Execute (x) 1
None (-) 0

Common Questions

What does -R mean?

The -R flag stands for Recursive. It applies the permission changes to the target directory and all files and subdirectories inside it.

How to reset permissions?

If you messed up permissions, a safe default for most web servers is:
Directories: find . -type d -exec chmod 755 {} \;
Files: find . -type f -exec chmod 644 {} \;