chmod 766 — what rwxrw-rw- means

766 rwxrw-rw-

The owner has full access; the group and others can read and write but not execute.

⚠️ Risky permission. This grants write access beyond the owner — only use it when you truly need it, and prefer tighter, group-based permissions where you can.

Permission breakdown

When to use 766

Uncommon and usually a smell. World-writable access (the trailing 6) means any user can change the file. If you reached for this to fix an upload error, prefer tightening ownership instead.

Set it with chmod

Apply this permission to a file:

chmod 766 filename

Or apply it recursively to a directory and everything inside it:

chmod -R 766 directory/

Other common permissions

Or build any permission with the interactive chmod calculator.