Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk5 min

What Do chmod 600, 644, and 755 Mean? A Guide to Unix Permissions

Unix permission modes encode read, write, and execute/search access for owner, group, and others. Here’s how to read 600, 644, and 755 and choose carefully.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

600, 644, and 755 are octal permission modes that specify which operations a file’s owner, group, and other users may perform. The digits are not security labels or universal defaults: choose a mode based on whether the target is a file or directory and who needs access.

How to read a three-digit permission mode

The three digits correspond, in order, to the file’s owner, users in its group, and others—everyone who is neither the owner nor in that group. Each digit adds together the permissions assigned to that class:

As an Amazon Associate I earn from qualifying purchases.

  • 4 = read
  • 2 = write
  • 1 = execute for a regular file, or search/traversal for a directory

So 7 means read, write, and execute/search (4 + 2 + 1); 6 means read and write; 5 means read and execute/search; 4 means read alone; and 0 means no permission. GNU’s file-permissions documentation describes this three-class, three-permission model.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What 600, 644, and 755 allow

Mode Owner Group Others Typical interpretation
600 Read, write None None Private regular file for its owner
644 Read, write Read Read Owner can edit; group and others can read
755 Read, write, execute/search Read, execute/search Read, execute/search Executable file or traversable directory, when intended

The table describes the ordinary permission bits, not a recommendation for every object. In particular, 755 grants execute permission to group and others on a regular file. Use that only when they should be able to run it. For an ordinary data file, execute is usually unnecessary.

What is the difference between chmod 644 and 755?

Both modes let the owner read and write, and let group and others read. The difference is the final permission in each digit: 644 gives no one execute/search permission, while 755 also gives the owner, group, and others execute/search permission. For a regular file, that means the latter can be run by all three classes. For a directory, it means all three classes can search or traverse it, subject to access on parent directories and other controls.

Why directories use execute permission differently

On a regular file, read lets a user read its contents, write lets them change those contents, and execute lets them run it as a program. On a directory, read allows listing names, write allows creating or removing entries, and execute means searching the directory—accessing an entry by name or traversing it. It does not mean running the directory as a program.

As a result, someone who should access files inside a directory generally needs search permission on that directory and its parent path, even if the person must not execute any program there. A directory intended to be listable but not writable may need read and search, for example; the appropriate mode depends on who needs to list, traverse, or change its contents.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
The Unix Programming Environment (Prentice-Hall Software Series)
  • The Unix Programming Environment (Prentice-Hall Software Series)
  • Product Type: ABIS_BOOK
  • Pearson

Why Unix permissions use numbers

Read, write, and execute/search are represented as three bits with values 4, 2, and 1. Adding those values produces one compact octal digit for each user class. Three digits then express owner, group, and other permissions together: 600 is 6-0-0, while 644 is 6-4-4. This is a concise way to set the ordinary permission bits.

Symbolic modes can express the same permissions more visibly. For example, u=rw,go=r means the owner gets read and write, while group and others get read. GNU’s mode-structure documentation explains numeric and symbolic forms.

How to choose a mode using least privilege

Start with the object and the work users must do, then grant only those permissions. Ask whether each class needs to read, change, run, list, or traverse—not merely whether a familiar number is commonly used.

  • For an owner-only regular file that must remain editable by its owner, 600 allows owner read/write and denies group and others access through these ordinary bits.
  • For a regular file that the owner edits and others only read, 644 allows that access without granting execute.
  • For an executable file that group and others are meant to run, or a directory they must traverse, 755 grants execute/search to all three classes. Confirm that this broader access is intended.

These are examples, not universal defaults. A file’s mode is only one layer of access control: group membership, permissions on parent directories, access-control lists (ACLs), privileged users, filesystem attributes, and application-level controls can affect what users can actually do.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why a new file may not start as 644 or 755

When a process creates a file or directory, it requests a mode and the process’s umask restricts the permissions granted. A default ACL may further restrict the result. The umask varies between systems and environments, so there is no single universal creation default. GNU Coreutils explains this interaction in The Umask and Protection.

Check the mode actually assigned on your system rather than assuming a newly created file will be 644 or a directory will be 755. Creation mode, umask, and any default ACL all matter.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Using chmod without changing more than intended

A numeric mode sets the ordinary permission bits to the specified values. For example, chmod 600 filename gives the owner read/write and removes group and other access through those bits. chmod 644 filename gives the owner read/write and group and others read. GNU’s chmod documentation uses chmod 644 foo as an example of a world-readable file with owner write access.

  1. Identify the exact file or directory and confirm which users need access.
  2. Choose the least-permissive mode that permits the required operations for each class.
  3. Apply it to the intended target, such as chmod 600 filename.
  4. Inspect the resulting permissions on your system, especially when ACLs or platform-specific behavior may apply.

Only the owner or a suitably privileged process can change a file’s mode. On typical systems, applying chmod to a command-line symlink changes the target rather than permissions on the link itself; symlink permission behavior is system-specific and often ignored.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Be especially cautious with recursive changes. GNU documents symlink traversal options and warns that recursive traversal following symlinks can pose a security risk if an attacker can introduce a symlink during traversal. Avoid recursive chmod unless you have checked the target tree and understand how your implementation handles symlinks.

When a leading digit changes the meaning

The three-digit examples above cover ordinary owner/group/other permissions. A fourth, leading octal digit can specify special bits: set-user-ID (4), set-group-ID (2), and the sticky or restricted-deletion bit (1). These can change program or directory behavior and should not be added casually. On directories, setgid commonly makes new entries inherit the directory’s group; sticky behavior on a shared writable directory limits who may remove or rename entries.

Behavior can vary between platforms and command implementations. GNU documents a difference between chmod 755 dir and chmod =755 dir in how set-ID bits are handled. Consult the documentation for the system in use before relying on portability-sensitive details; GNU’s mode-structure reference describes its mode syntax.

Quick Recap

SaleBestseller No. 2
The Unix Programming Environment (Prentice-Hall Software Series)
The Unix Programming Environment (Prentice-Hall Software Series)
The Unix Programming Environment (Prentice-Hall Software Series); Product Type: ABIS_BOOK; Pearson
$70.65
SaleBestseller No. 3
SaleBestseller No. 4

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.