Ram Laxman Yadav bio photo

Ram Laxman Yadav

Ruby on Rails Developer

Email Twitter LinkedIn Github Stackoverflow

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 !!