| chmod [u/g/o]<+/-> < r/w/x > filename | ใช้กำหนดสิทธิให้กับไฟล์ที่กำหนด |
|---|---|
| chown new-owner file-name | ใช้ในการเปลี่ยน เจ้าของไฟล์ |
| chgrp new-group file-name | ใช้ในการเปลี่ยน กลุ่มของไฟล์ |
subject:chmod [u/g/o]<+/-><r/w/x> filename
content:ใช้กำหนดสิทธิให้กับไฟล์ที่กำหนด เช่น chmod g+w test.txt chmod o-r test.txt chmod +w test.txt ความหมายของ [u/g/o] u -> user หมายถึง สิทธิของ user ( หรือคือ owner นั่นเอง ) g -> group หมายถึง สิทธิของ group o -> other หมายถึง สิทธิของ อื่นๆ ที่ไม่ใช่ user และ group ความหมายของ <r/w/x> r -> read w -> write x -> execute
subject:chown new-owner file-name
content:ใช้ในการเปลี่ยน เจ้าของไฟล์
subject:chgrp new-group file-name
content:ใช้ในการเปลี่ยน กลุ่มของไฟล์