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 :chmod u=rwx, g=rx, o=x test
chmod 777 test -R
ls -l
No comments:
Post a Comment