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