Linux修复usr权限错误

Error:

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set.

Fixed:

reboot and login to recovery,

login to root prompt,

mount -o remount,rw /

mount –all

chown root:root /usr/bin/sudo

chmod 4755 /usr/bin/sudo

ls -l /usr/bin/sudo

chmod 644 /etc/passwd

chmod u+s /bin/su

reboot

发表评论

电子邮件地址不会被公开。

This site uses Akismet to reduce spam. Learn how your comment data is processed.