$200 PERK Deploy cloud databases, droplets & cron jobs with $200 in free 60-day credits on DigitalOcean.
Home / Linux Chmod Calculator / Chmod 1777
CONTROLLED SHARING Octal Mode: 1777 • Symbolic: drwxrwxrwt

Chmod 1777 Permissions

Chmod 1777: Chmod 1777 combines full world-writable permissions (777) with the Linux Sticky Bit (1000). Represented as drwxrwxrwt, it allows all system accounts to create and modify temporary files in a shared folder, but restricts file deletion and renaming exclusively to the file creator or root.

Octal Code
1777
Symbolic Notation
drwxrwxrwt
Generated Bash Command
chmod 1777 /tmp
Class Read (4) Write (2) Execute (1) Sum
Owner (User) ✓ ✓ ✓ 7
Group ✓ ✓ ✓ 7
Others (Public) ✓ ✓ ✓ 7
ADVERTISEMENT ClientDev Tools

Technical Deep-Dive: Chmod 1777 (drwxrwxrwt)

Bitwise binary arithmetic, POSIX DAC rules, and security guidelines for production servers.

1. Binary Calculation Mechanics

POSIX file systems represent permissions in triplets of binary bits where Read is 4 (2^2), Write is 2 (2^1), and Execute is 1 (2^0). In chmod 1777, each digit computes as:

  • • Owner: 7 (Read Write Exec)
  • • Group: 7 (Read Write Exec)
  • • Others: 7 (Read Write Exec)

2. Practical CLI Execution

Apply this configuration to files or directories with the standard Linux terminal commands:

# Apply to specific target:
chmod 1777 /tmp
# Apply recursively to subdirectories:
chmod -R 1777 /tmp

Frequently Asked Questions

What is the purpose of the Sticky Bit in chmod 1777?

In a standard 777 directory, any user can delete or overwrite any other user's files. The Sticky Bit (leading octal 1) modifies directory write semantics: users can create files, but can only delete or rename files they personally own.

Why does the /tmp directory always have permissions 1777?

Multiple daemons (databases, web servers, user sessions) need a common scratch space to create temporary socket and lock files. Setting /tmp to 1777 guarantees every process can write without fear of malicious unlinking by other unprivileged accounts.

How do you set the sticky bit using symbolic notation?

You can set the sticky bit using: chmod +t /path/to/dir, or remove it with chmod -t /path/to/dir.