Chmod 666 Explained

Chmod 666 gives read and write access to everyone but no execute permission. Understand when this is used and the security implications.

Permission

666

rw-rw-rw-

chmod 666 filename

Permission Breakdown

RoleRead (4)Write (2)Execute (1)OctalMeaning
Ownerrw-6read, write
Grouprw-6read, write
Othersrw-6read, write

Visual Permission Grid

Read
Write
Execute
Owner
r
w
-
Group
r
w
-
Others
r
w
-

Detailed Explanation

The permission 666 grants read and write access to the owner, group, and all other users, but no execute permission for anyone.

Octal breakdown:

  • 6 (Owner): read (4) + write (2) = read and write
  • 6 (Group): read (4) + write (2) = read and write
  • 6 (Others): read (4) + write (2) = read and write

In symbolic notation this is rw-rw-rw-. Everyone can read and modify the file, but nobody can execute it directly. For directories, this permission is unusual and would prevent traversal (since the execute bit is needed to enter a directory).

Like 777, this permission is generally too permissive for production use. Any user on the system can read and modify the file. It is sometimes used as a default umask base for regular files (before umask subtraction). In practice, if you need shared read-write access, consider using group permissions (e.g., 664) and adding users to the appropriate group instead.

Use Case

Sometimes used for temporary shared data files during development, or as the base permission before umask is applied (umask 022 turns 666 into 644).

Try It — Interactive Calculator

Customize this permission →