Code: Select all
sudo chmod 777 -R /
แก้ไขยังไงsudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
Moderators: mindphp, ผู้ดูแลกระดาน
Code: Select all
sudo chmod 777 -R /
แก้ไขยังไงsudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
Code: Select all
sudo su
chown -R root:root /etc
find /etc -type f -exec chmod 644 {} +
find /etc -type d -exec chmod 755 {} +
chmod 755 /etc/init.d/* /etc/rc.local /etc/network/* /etc/cron.*/*
chmod 400 /etc/ssh/ssh*key
ยังเป็นเหมือนเดิมค่ะmindphp wrote: ↑02/12/2020 4:11 pm ลองตามนี้ เฉพาะ folder ที่จำเป็นอ้างอิงCode: Select all
sudo su chown -R root:root /etc find /etc -type f -exec chmod 644 {} + find /etc -type d -exec chmod 755 {} + chmod 755 /etc/init.d/* /etc/rc.local /etc/network/* /etc/cron.*/* chmod 400 /etc/ssh/ssh*key
https://askubuntu.com/questions/308939/ ... 031#309031
Code: Select all
$ chmod 644 /usr/lib/sudo/sudoers.so
$ chown -R root /usr/lib/sudo
$ reboot
Users browsing this forum: No registered users and 7 guests