คำสั่ง Unix Basic
Linux Command – chown ใช้ในเปลี่ยนเจ้าของ file หรือ directory รวมทั้ง file owner และ group owner
chown <user> <filename>
$ ls -ltr test-rwx------ 1 root root 0 May 7 00:22 test$ chown games test$ ls -ltr test-rwx------ 1 games root 0 May 7 00:22 test
chown <:group> <filename>
$ ls -ltr test-rwx------ 1 games root 0 May 7 00:22 test$ chown :staff test$ ls -ltr test-rwx------ 1 games staff 0 May 7 00:22 test
ไม่มีความเห็น