root password query

Abarbarian

Acruncher
Joined
Sep 30, 2005
Messages
11,023
Reaction score
1,221
Hi I am trying to run a command in a terminal but am told I need to be root to run the script.
I type "su" then it asks for a password , so IU type in "sparrow" then it tells me Authentication failure .
I reset the password from "Recovery Mode" but still get the same result .

Any ideas what I am doing wrong .

user.gif
 

Attachments

  • Screenshot-jack@jack-sparrow: ~.png
    Screenshot-jack@jack-sparrow: ~.png
    24.3 KB · Views: 109

Urmas

Subarctic Penguin
Joined
Mar 11, 2008
Messages
2,412
Reaction score
895
Hello, Abarbarian!

You're using Ubuntu, right? Ubuntu doesn't "use" root password by default. So, instead of "su -> rootpasswd -> command", you do "sudo command".

You can (and methinks should... makes life easier and can save your bacon) enable root password in Ubuntu. In Terminal, do:

sudo passwd root

First, enter your user password. Next, enter (and re-enter) ROOT PASSWORD. That's it.
 

Abarbarian

Acruncher
Joined
Sep 30, 2005
Messages
11,023
Reaction score
1,221
Hello Urmas . Thanks for the reply .

The instructions you gave are the same as the ones I followed when I reset in the Recovery Mode. One big difference was your explanation ,

Ubuntu doesn't "use" root password by default. So, instead of "su -> rootpasswd -> command", you do "sudo command".

So when I'm following instructions in othere guides and they say type "su" I type "sudo" . Ah ha all is as clear as mud . Re-set me password just to be sure .

happywave.gif
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top