前段时间,新装的Centos运行sudo命令时出现的问题:
sudo su: results -effective uid is not 0 is sudo installed setuid root
这是我在国外论坛上找到的解决办法
This another common problem for the new users for Linux. Anonymous change of permission of root or while experimenting we do run commands which results into some unexpected results.
we can observe this output while doing sudo su in linux mainly in ubuntu.
The solution lies in changing the permisions
Method 1:方法一
While booting hold on shift and from the recovery menu drop to the root shell and run the following commands
chown -R root:root /usr/bin/sudo mount -ro remount,rw / mount -ro remount,ro /
basically we are changing the owner and remounting to fix this error.
If this doesn,t work do opt the next method 不管的话,尝试下一个方法,我当时应该是下一个方法管用的
Method 2 :方法2
pkexec chown root:root /usr/bin/sudo pkexec chmod 4755 /usr/bin/sudo
and boot normally.
This will get you out of the effective uid error.
Comments
comments
Related posts:
Backup your Linux system