Problem: sudo su: results-valid tive uid is not 0 is sudo installed setuid Root

Source: Internet
Author: User

Some time ago, problems occurred when the newly installed centos was running the sudo command:

Sudo su: results-valid tive uid is not 0 is sudo installed setuid Root

This is a solution I found on a foreign forum.
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: 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 doesn't matter, try the next method, and I should be using the next method at the time.
Method 2: method 2

pkexec chown root:root /usr/bin/sudopkexec chmod 4755 /usr/bin/sudo

And boot normally.

This will get you out of the valid uid error.
Comments
Comments
Related posts:
Backup your Linux System

Problem: sudo su: results-valid tive uid is not 0 is sudo installed setuid Root

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.