码迷,mamicode.com
首页 > 其他好文 > 详细

问题:sudo su: results -effective uid is not 0 is sudo installed setuid root

时间:2014-11-01 17:39:35      阅读:275      评论:0      收藏:0      [点我收藏+]

标签:style   blog   io   color   os   ar   for   sp   strong   

前段时间,新装的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

问题:sudo su: results -effective uid is not 0 is sudo installed setuid root

标签:style   blog   io   color   os   ar   for   sp   strong   

原文地址:http://www.cnblogs.com/kunpengv5/p/4067366.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!