| Line 8: |
Line 8: |
| | <br /> | | <br /> |
| | Examples<br /> | | Examples<br /> |
| | + | <br /> |
| | + | <nowiki> |
| | + | x------------------------x-----------x |
| | + | |chmod u=rwx,g=rwx,o=rx | chmod 775 | |
| | + | |chmod u=rwx,g=rx,o= | chmod 760 | |
| | + | |chmod u=rw,g=r,o=r | chmod 644 | |
| | + | |chmod u=rw,g=r,o= | chmod 640 | |
| | + | |chmod u=rw,go= | chmod 600 | |
| | + | |chmod u=rwx,go= | chmod 700 | |
| | + | x------------------------x-----------x |
| | + | |
| | + | </nowiki> |
| | <br /> | | <br /> |
| | chmod 400 file - Read by owner<br /> | | chmod 400 file - Read by owner<br /> |
| Line 23: |
Line 35: |
| | To combine these, just add the numbers together:<br /> | | To combine these, just add the numbers together:<br /> |
| | chmod 444 file - Allow read permission to owner and group and world<br /> | | chmod 444 file - Allow read permission to owner and group and world<br /> |
| − | chmod 777 file - Allow everyone to read, write, and execute file | + | chmod 777 file - Allow everyone to read, write, and execute file<br /> |