Page 1 of 1

วิธีการแก้ไขสิทธิของไฟล์บน Linux

Posted: 10 Mar 2015, 22:32
by brid.siriwan
วิธีการแก้ไขสิทธิของไฟล์บน Linux

1. ต้อง cd เข้าไปให้ถึงไฟล์
ตัวอย่าง cd /var/www/planetone/files/translations
2. เช็คไฟล์ ใช้คำสั่ง ls -al แต่ละไฟล์จะต้องมีค่า x ในทุกสิทธิ์
เช่น drwxr-xr-x
ch.png
ch.png (149.18 KiB) Viewed 8249 times
3. หากในไฟล์ไม่มี ให้ใช้คำสั่ง chmod +x <ชื่อไฟล์>
ตัวอย่าง chmod +x AR_THA.trans
ch1.png
ch1.png (136.93 KiB) Viewed 8249 times
4.ตรวจสอบการแก้สิทธิ์ไฟล์ โดยใช้คำสั่ง ls -al
ch2.png
ch2.png (153.1 KiB) Viewed 8249 times