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

Post Reply
brid.siriwan
Posts: 3942
Joined: 05 Apr 2013, 08:47

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

Post 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 8241 times
3. หากในไฟล์ไม่มี ให้ใช้คำสั่ง chmod +x <ชื่อไฟล์>
ตัวอย่าง chmod +x AR_THA.trans
ch1.png
ch1.png (136.93 KiB) Viewed 8241 times
4.ตรวจสอบการแก้สิทธิ์ไฟล์ โดยใช้คำสั่ง ls -al
ch2.png
ch2.png (153.1 KiB) Viewed 8241 times
Post Reply

Return to “หัวข้อทั่วไป”