Pages

Wednesday, October 9, 2013

Setting permission file dengan "chmod"

Setting permission file dengan  "chmod"

Rumus :

chmod [option] [mode] files

Options :

Option Description
-R = Descend directory arguments recursively while setting modes.
-f = Suppress error messages if command fails.


Mode :

Mode Description
Who  : u=user, g=group, o=other, a=all (default)

Opcode: + means add permission
- means remove permission
= means assign permission and remove the permission of unspecified fields

Permission: r=Read, w=write, x=Execute, s=set uid bit, t=sticky bit
u=user, g=group, o=other, l=mandatory locking


Examples :

chmod 751 test
chmod u=rwx, g=rx, o=x test
chmod 777 test -R

Lihat hasilnya :

ls -l



No comments:

Post a Comment