In general life we often face the problem when system gives error root /usr/bin/sudo must be owned by uid 0, while trying to run command as sudo in ubuntu. It’s a very common problem we can face if by mistake or by any means, we have modified the permission of sudo. Here are the steps to solve this issue:
Follow these steps:
- Restart and boot system in recovery mode. If you are using
dellthen you can try by pressingCTRLwhile booting. - Run the following commands
mount -o remount,rw /mount --allchown root:root /usr/bin/sudochmod 4755 /usr/bin/sudoinit 6or runrestart
After restarting system, You can try commands running with sudo and its works !!