วิธีแก้ ติดปัญหา you are not owner so cannot change permissions

แชร์ความรู้ Linux Ubuntu Web Server บทความ การ config server Linux FreeBSD Apache
การติดตั้ง XAMPP Mysql PHP ใครต้องการแชร์ความรู้เรื่องต่างๆ เหล่านี้ให้ ท่านหรืออื่น โพสที่หมวดนี้ได้

Moderator: mindphp, ผู้ดูแลกระดาน

makup
PHP Super Member
PHP Super Member
โพสต์: 398
ลงทะเบียนเมื่อ: 05/10/2020 10:02 am

วิธีแก้ ติดปัญหา you are not owner so cannot change permissions

โพสต์ที่ยังไม่ได้อ่าน โดย makup »

ในบทความนี้ จะมาแนะนำเกี่ยวกับวิธีการแก้ปัญหา ติดปัญหา you are not owner so cannot change permissions , เราจะมาแก้โดยการใช้คำสั่ง Linux , ในการแก้ถอนสิทธิ์ Permission ออก , เพื่อให้เราทำการสร้าง File หรือ แก้ไข File ได้
j8u3T.png
j8u3T.png (30.03 KiB) Viewed 1554 times
วิธีแก้ ติดปัญหา you are not owner so cannot change permissions

Step 1 - จากนั้นเราก็ทำการใช้คำสั่ง cd , ย้ายไปตำแหน่ง Directory เพื่อที่จะทำการเปลี่ยน Owner(เจ้าของ) Files

โค้ด: เลือกทั้งหมด

cd /path/to/directory
ยกตัวอย่างเช่น :

โค้ด: เลือกทั้งหมด

cd /opt/lampp/htdocs

โค้ด: เลือกทั้งหมด

cd /opt/lampp/htdocs
Step 2 - จากนั้นเราก็ทำการใช้คำสั่ง sudo chown -R <User> /path/to/directory , เพื่อทำการปลดล๊อค Permission ให้กลับมาเป็น Owner ของเรา

ยกตัวอย่างเช่น :

โค้ด: เลือกทั้งหมด

sudo chown -R com012 /opt/lampp/htdocs    
ผลลัพธ์ที่ได้
54.JPG
54.JPG (36.2 KiB) Viewed 1554 times

แหล่งอ้างอิงข้อมูล
https://askubuntu.com/questions/150028/you-are-not-the-owner-message-when-trying-to-access-folder

แหล่งอ้างอิงรูปภาพ
https://askubuntu.com/questions/512514/change-ownership-of-external-drive
https://websiteforstudents.com/setting-files-and-folder-permissions-on-ubuntu-desktop/
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 91