• Register
0 votes

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

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

1 vote
1 answer 291 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 1.6K 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
0 votes
1 answer 1.3K views
Problem : I am trying to learn the Android and Ionic. If I run the ionic build android command in the root of the ionic project, I am facing below error: FAILURE: Build failed with an exception. Where: Script '/home/javad/Desktop/javadApp/platforms/android/CordovaLib/cordova. ... Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
asked Feb 18 mphil 2.3k points
0 votes
2 answers 187 views
Problem : Facing following Selenium Webdriver error the path to the driver executable must be set by the webdriver.chrome.driver system property
asked Nov 15, 2019 peterlaw 6.9k points
0 votes
1 answer 190 views
Problem : I am currently trying to use sudo npm install to install all of my dependencies for the application written in the nodejs. My OS is Ubuntu 13.04 But, I keep getting below warning: The authenticity of host 'github.com (' can't be established. RSA ... , I am unable to enter anything, not even a "yes". My terminal just got stuck,I have to press the ctrl+c to terminate.
asked Jan 24 jwilliam 3.9k points