← chmod calculator

chmod 666 (rw-rw-rw-)

What chmod 666 does, who gets which permissions, and when to use it — with the exact commands.

Read (4)Write (2)Execute (1)
Owner✔ read✔ write
Group✔ read✔ write
Others✔ read✔ write
rw-rw-rw-
chmod 666 yourfile # recursively, for a directory tree: chmod -R 666 yourdir
The owner can read and write; Group members can read and write; Everyone else can read and write. ⚠ Warning: world-writable — any user on the system can modify this.

Notes

When you'd use 666: Everyone can read and write. Almost always a mistake on real files — any user on the system can modify the content.

Unix permissions are octal digits — owner, group, others — where read=4, write=2, execute=1, summed per digit. An optional leading digit holds setuid (4), setgid (2) and the sticky bit (1). On a directory, "execute" means permission to enter it and reach files inside.

Other values: 400 · 444 · 500 · 555 · 600 · 640 · 644 · 664 · 700 · 711 · 750 · 755 · 770 · 775 · 777 · 1777 · 2755 · 4755

Frequently asked questions

What does chmod 666 mean?

chmod 666 sets the permission rw-rw-rw-. The owner can read and write; Group members can read and write; Everyone else can read and write.

What is the symbolic notation for chmod 666?

rw-rw-rw- — three triplets (owner, group, others) of read/write/execute flags.

How do I apply chmod 666 to a whole directory?

Run chmod -R 666 yourdir to apply it recursively. Be careful: files and directories usually should not share the same mode (directories need execute to be entered, regular files usually should not be executable).

Found this useful? 113 free, browser-only tools by Yuvrajsinh Jadav — an engineer who ships production AI systems. No account, nothing sent anywhere.