修改usr权限后sudo命令无法使用问题

  • Post author:
  • Post category:其他


1.将/usr权限改回root:chown -R root:root /usr

sudo后:显示sudo: effective uid is not 0, is sudo installed setuid root?

执行命令 chmod 4755 /usr/bin/sudo

sudo后:

sudo: /usr/libexec/sudoers.so must be only be writable by owner

sudo: fatal error, unable to load plugins

执行:chmod 644 /usr/libexec/sudoers.so

chmod 644 /usr/libexec/sudo_noexec.so

ok!!



版权声明:本文为sinat_38648388原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。