How to solve error 'root /usr/bin/sudo must be owned by uid 0' in ubuntu

Posted by : on

Category : Linux

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 dell then you can try by pressing CTRL while booting.
  • Run the following commands
  • mount -o remount,rw /
  • mount --all
  • chown root:root /usr/bin/sudo
  • chmod 4755 /usr/bin/sudo
  • init 6 or run restart

After restarting system, You can try commands running with sudo and its works !!



About Ram Laxman Yadav
Ram Laxman Yadav

Senior Software Engineering Professional | Tech Enthusiast | Mentor | Payments | Hospitality | E-Commerce, based in NCR, India

Email : info@ramlaxman.co.in

Website : https://ramlaxman.co.in