• Register
0 votes
120 views

Problem :

I am new to Chown. I am still learning it. I tried to set the EACCESS for the npm and then I ran the Chown command in the terminal to change the owner permission but currently i am totally stuck in following

"Sudo : /usr/bin/sudo must be owned by uid 0 and have the setuid bit set"

I am using ubuntu14.04 LTS. How to fix this error?

8 4 2
2,300 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I can help you in fixing your error.

You need to restart your pc first, and after that keep pressing the ESC key while your Ubuntu is booting.

This procedure will bring up your boot menu for you.

Now you need to select the Advanced Options.

After that carefully select your OS version in (recovery mode), and after that just press Enter Key.

It should bring up another screen for you. Now just select “Drop to root shell prompt” and after that press the Enter key.

Now you will the command line loaded at the bottom of the screen.

Now the most important part begins here you need to run very carefully each of the below commands.

mount -o remount,rw /
mount --all
chown root:root /usr/bin/sudo
chmod 4755 /usr/bin/sudo
shutdown -r now

 Now your error must be fixed.

5 2 1
4,980 points

Related questions

0 votes
1 answer 14 views
14 views
Problem: whenever I try to use sudo, I get this error - sudo: effective uid is not 0, is sudo installed setuid root? Any help would be appreciated. :)
asked Mar 22 ummesalma 29.2k points
0 votes
1 answer 14 views
14 views
Problem: I used Google to try to find a solution on the web of the above question, But I got no useful hints. Can I get Pointer information about my problem with this?
asked Mar 24 shamimkhan 15.1k points
0 votes
1 answer 6 views
6 views
Problem: I would like to be able to compile the sources in NetBeans. So, I started a project and showed netbeans where to find the sources, but when I compile the project it gives the error: Sudo no tty present and no askpass program specified Is there any solution?
asked Mar 22 ummesalma 29.2k points
0 votes
1 answer 5 views
5 views
Problem: I would like to be able to compile the sources in NetBeans. So, I started a project and showed netbeans where to find the sources, but when I compile the project it gives the error: sudo: no tty present and no askpass program specified Is there any other solution?
asked Mar 22 ummesalma 29.2k points
1 vote
1 answer 464 views
464 views
Problem : I am facing following sudo path error the command could not be located because '/bin' is not included in the path environment variable.
asked Nov 11, 2019 peterlaw 6.9k points
0 votes
1 answer 4 views
4 views
Problem: Can anyone help me with this complication? >Sudo' is not recognized as an internal or external command,
asked 3 days ago Ashok Dileep 5.3k points
0 votes
1 answer 39 views
39 views
Problem: In my application directory (on Windows). I got this error: Sudo is not recognized as an internal or external command What could be the problem?
asked Mar 22 ummesalma 29.2k points
0 votes
1 answer 2.5K views
2.5K views
Problem : I am stuck with the following strange looking error 'sudo' is not recognized as an internal or external command, operable program or batch file.
asked Nov 16, 2019 peterlaw 6.9k points
1 vote
1 answer 47 views
47 views
Problem : Error : xdg_runtime_dir not set in the environment
asked Feb 28 Sabbir Hossain 14.6k points
0 votes
1 answer 4 views
4 views
Problem: When I try apt-get update, I get this error:E: The method driver /usr/lib/apt/methods/https could not be found.Any ideas? Usually all this is installed but I am using rabbitmq docker image.
asked May 3 sumaiya simi 43.9k points