Owner: read, write · Group: read, write · Others: read, write
Security warning: 666 lets any user on the system modify these files. On web servers use 755 for folders and 644 for files and fix ownership with chown instead.
Change any permission with the chmod calculator.
| Who | Digit | Letters | Can |
|---|---|---|---|
| Owner (user) | 6 | rw- | read, write |
| Group | 6 | rw- | read, write |
| Others | 6 | rw- | read, write |
Each digit is the sum of read (4), write (2) and execute (1).
Files anyone may edit — usually a security risk.
chmod 666 sets the permissions to rw-rw-rw-: the owner can read, write, the group can read, write and others can read, write.
Files anyone may edit — usually a security risk.
666 is rw-rw-rw- (shown by ls -l as -rw-rw-rw- for a file or drw-rw-rw- for a folder). The symbolic chmod command is chmod u=rw,g=rw,o=rw file.