Pulsars

Chmod Calculator — Visual Unix Permission Editor

755
rwxr-xr-x
Quick presets
GroupReadWriteExecuteOctal notation
Owner7
Group5
Others5
Command
chmod 755 filename
Permission breakdown
Owner:Read, Write, Executerwx
Group:Read, Executer-x
Others:Read, Executer-x

Unix file permissions control who can read, write, and execute files and directories. Permissions are represented in two notations: octal (e.g., 755) and symbolic (e.g., rwxr-xr-x). Each file has three permission groups — owner, group, and others — with three bits each (read=4, write=2, execute=1). The chmod command modifies these permissions and is fundamental to Linux/macOS system administration and web server security.

How do Unix file permissions work?

Every file and directory on a Unix-like system (Linux, macOS) has three sets of permissions assigned to three categories of users: the owner (the user who created the file), the group (users sharing a group with the owner), and others (everyone else).

Each category can be granted three types of access:

These permissions are stored as a bitmask. Each permission type has a numeric weight: read = 4, write = 2, execute = 1. Add the values together for each group to get the octal digit. For example, read + execute = 4 + 1 = 5.

A full permission set is expressed as three octal digits, one per group. chmod 755 means the owner gets 7 (4+2+1 = rwx), the group gets 5 (4+0+1 = r-x), and others get 5 (r-x).

What is the difference between octal and symbolic notation?

The chmod command accepts two notations:

Octal notation uses three digits (e.g., chmod 755 file). Each digit encodes one group's permissions as a sum of 4 (read), 2 (write), and 1 (execute). This is compact and unambiguous — it sets all permissions in one shot.

Symbolic notation uses letters and operators (e.g., chmod u+x file). The letters u, g, o refer to user/owner, group, and others. The operators +, -, = add, remove, or set permissions.

Most developers prefer octal for setting permissions from scratch and symbolic for quick adjustments.

What are the most common chmod permission patterns?

Octal Symbolic Typical use
755 rwxr-xr-x Directories, shell scripts, executables
644 rw-r--r-- Regular files (HTML, CSS, config)
600 rw------- Private files (SSH keys, .env)
400 r-------- Read-only sensitive files
777 rwxrwxrwx Avoid in production — full access to everyone

A common mistake is setting 777 on web-accessible directories. This lets any process on the server modify your files. Use 755 for directories and 644 for files as your default, and only relax permissions when you have a specific reason.

If you also work with scheduled tasks, try our cron expression generator to build crontab schedules visually.

Frequently Asked Questions

What does chmod 777 mean?

+

chmod 777 grants read, write, and execute permissions to the owner, group, and all other users. This is the most permissive setting and is generally considered dangerous for production use, as it allows anyone on the system to read, modify, or execute the file.

What is the difference between chmod 755 and 644?

+

chmod 755 gives the owner full permissions (read, write, execute) while the group and others can only read and execute. chmod 644 gives the owner read and write permissions, while the group and others can only read. 755 is standard for directories and executable scripts, while 644 is standard for regular files.

How do I make a file executable in Linux?

+

To make a file executable, use chmod +x filename or chmod 755 filename. The +x flag adds execute permission for all users. If you want only the owner to execute it, use chmod 700 filename instead.

What does rwxr-xr-x mean?

+

rwxr-xr-x is the symbolic notation for chmod 755. It breaks down into three groups of three characters: rwx (owner can read, write, execute), r-x (group can read and execute), r-x (others can read and execute). A dash means the permission is not granted.

Is chmod 777 dangerous?

+

Yes, chmod 777 is a security risk in most scenarios. It allows any user on the system to read, write, and execute the file. On a web server, this could let attackers modify your scripts. Use the minimum permissions needed: 755 for directories and executables, 644 for regular files.

Related Tools