Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Cron Job GeneratorcURL Command Builder🌬️ Wind Chill CalculatorRelative Risk Calculator
Home Page > Webmaster Tools

Unix Permission Calculator (chmod)

Interactively calculate Unix/Linux file permissions (chmod) with visual permission matrix, security risk assessment, terminal preview, and ready-to-use commands.

Free to useNo sign-up requiredUpdated Jan 2026
Unix Permission Calculator (chmod)Try it now — free ▼
Read (4)
Write (2)
Execute (1)
Owner
7
Group
5
Others
5
Special Permissions
SetUID (4) Run as file owner
SetGID (2) Run as file group
Sticky Bit (1) Restrict deletion
Enter Octal:

Moderate Exposure

Others can read or execute. Ensure this is intentional.

Octal Notation
755
Symbolic Notation
-rwxr-xr-x
chmod Command
chmod 755 filename
Terminal — ls -l preview
$ ls -l
-rwxr-xr-x 1 user group 4096 Jan 27 12:00 my_file.txt
Quick Presets

Embed Unix Permission Calculator (chmod) Widget

About Unix Permission Calculator (chmod)

About Unix Permission Calculator

This Unix Permission Calculator (chmod calculator) helps you understand and calculate Linux/Unix file permissions. It provides an interactive visual interface to set permissions and instantly see the corresponding octal notation, symbolic notation, and ready-to-use chmod commands.

File permissions in Unix/Linux systems control who can read, write, or execute files and directories. Understanding these permissions is essential for system security, web server configuration, and proper file management.

Understanding Unix Permissions

Permission Types

User Categories

Octal vs Symbolic Notation

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

Common Permission Settings

OctalSymbolicUse Case
644rw-r--r--Standard files (HTML, CSS, images)
755rwxr-xr-xDirectories and executable scripts
600rw-------Private files (SSH keys, passwords)
700rwx------Private directories and scripts
664rw-rw-r--Group-collaborative files
775rwxrwxr-xGroup-collaborative directories
777rwxrwxrwxFull access (NOT recommended)

Special Permissions

SetUID (4xxx)

When set on an executable file, the program runs with the file owner's privileges instead of the user running it. Example: /usr/bin/passwd runs as root to modify /etc/shadow.

SetGID (2xxx)

On executables, runs with the group's privileges. On directories, new files inherit the directory's group instead of the creator's primary group.

Sticky Bit (1xxx)

On directories, prevents users from deleting files they don't own. Essential for shared directories like /tmp.

Security Best Practices

How to Use This Calculator

  1. Select the file type (regular file, directory, or symbolic link)
  2. Click the permission cells to toggle Read, Write, and Execute for each user category
  3. Or enter an octal value directly (like 755) to see the corresponding permissions
  4. Enable special permissions (SetUID, SetGID, Sticky Bit) if needed
  5. Review the security assessment and terminal preview
  6. Copy the chmod command to use in your terminal

Frequently Asked Questions

What is chmod in Unix/Linux?

chmod (change mode) is a Unix/Linux command used to change the access permissions of files and directories. It controls who can read, write, or execute a file. Permissions are set for three categories: owner (user who owns the file), group (users in the file's group), and others (everyone else).

What do the numbers in chmod mean (like 755 or 644)?

In chmod, each digit represents permissions for owner, group, and others respectively. Each digit is the sum of: 4 (read), 2 (write), and 1 (execute). For example, 755 means owner has full access (7=4+2+1), while group and others can read and execute (5=4+1).

What is the difference between symbolic and octal notation?

Octal notation uses numbers (like 755) where each digit represents combined permissions. Symbolic notation uses letters: r (read), w (write), x (execute), and - (no permission). For example, rwxr-xr-x is the symbolic form of 755.

What are SetUID, SetGID, and Sticky Bit?

These are special permissions: SetUID (4) allows a program to run with the owner's privileges. SetGID (2) runs with group privileges or inherits directory group. Sticky Bit (1) on directories prevents deletion of files by non-owners.

Why is chmod 777 considered dangerous?

chmod 777 gives everyone full read, write, and execute permissions. This is dangerous because any user can modify or delete the file, potentially leading to security vulnerabilities, malware injection, or data loss.

Reference this content, page, or tool as:

"Unix Permission Calculator (chmod)" at https://MiniWebtool.com/unix-permission-calculator/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: Jan 27, 2026

Webmaster Tools:

Top & Updated:

Unix Time ConverterCrontab Expression GeneratorcURL to JSON ConverterView all →
Home Page > Webmaster Tools > Unix Permission Calculator (chmod)