0

I am fairly new to Ubuntu. I am currently using Ubuntu 14.04 version. I am stuck into a problem that my primary user account is not functioning after i ran a command chown -R username:usergroup /* on a secondary user.

I have two users in my machine. Both are administrator functionality. One name is abc and other is root. abc is the primary user and i had run the command by the other user. Thereafter i am having this problem.

  1. I can't able to login with the second user.
  2. Guest account is working fine but the other account is not.
  3. Sudo command is not working.
  4. Primary user UI is very slow and keep blinking every time.
  5. Shut down option not working.

Getting error message as "sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set" after running the sudo command

bfrguci
  • 674
Shrikant D
  • 103
  • 3

1 Answers1

0

chown changed the ownership, and -R did it recursively on /*.

You have changed the owner and group of all files in your root file system. Since there is not a way to get this operation reverted as is discussed here: What if I accidentally run command "chmod -R" on system directories (/, /etc, ...), you may have to backup your files and reinstall. That's why sudo warns you that you should use root privilege with care.

Well, you can definitely fix the ownership of sudo by using a Live CD/USB, but I would expect there be many other problems from other applications. Not all files in the root file system are root:root.

bfrguci
  • 674