LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sudo password (https://www.linuxquestions.org/questions/linux-newbie-8/sudo-password-877604/)

bcoley 04-28-2011 07:53 AM

sudo password
 
how to get sudo password? login not working for password

repo 04-28-2011 07:57 AM

Welcome to LQ

The password is the password of the user.
Code:

sudo command
password user

Quote:

login not working for password
Which login, which password?

Kind regards

bcoley 04-28-2011 08:11 AM

thought sudo password was the login password

Mr. Bill 04-28-2011 08:26 AM

Quote:

Originally Posted by bcoley (Post 4339302)
thought sudo password was the login password

It is. What exactly isn't working about it? Are you getting an error "incorrect password"?

SL00b 04-28-2011 08:31 AM

Sudo doesn't have a password. Sudo will prompt you for a password, which will belong to one of two user accounts, depending on how you've configured it:

- root's password
- your password

Soadyheid 04-28-2011 10:27 AM

Hmmm... Never thought it was so confusing to explain, but...

My :twocents:

When you logged in to the system you used a password to access your account. Use the same password with sudo to allow you to have temporary root privileges. Does that make sense?

Play Bonny! :hattip:

Arcane 04-28-2011 10:46 AM

Ubuntu uses same password for sudo required to normally login to system. For example if you login to Ubuntu with password "1234" you use same pass to run anything as root. Just do "sudo command" then when asked for password enter "1234"(without "") to execute with administrator rights. Alternative you may try just "su"+enter then "(password)"+enter then command without sudo prefix(i prefer this) but i forgot if this method works for ubuntu..

omgs 04-28-2011 11:15 AM

There's no "sudo password", but "sudo privileges" for users and groups. As root, you can view /etc/sudoers (only for viewing) and change with "visudo" command. The sudoers man page explains how to set privileges.

Then, the default setting in ubuntu is that the user that is created at installation time (id 1000), is member of the admin group, and this group is allowed to run ALL commands as any user via sudo, but asking the password (the NOPASSWD: param is not set) every time (if the default 15 minutes grace time has been exceeded from the previous run of sudo).

You can also take a more complex description as any user by running "man sudo".

Hevithan 04-28-2011 12:13 PM

Quote:

Originally Posted by bcoley (Post 4339302)
thought sudo password was the login password

I'm not really understanding what exactly you're getting at... But here's what confused me the most:


If you are not getting any text showing while you try to type the pass ... That's normal ... So don't freak out and push a bunch of buttons, or try to retype over and over (I did). When it's displayed in the terminal it'll look like this:

Code:

you@computer:$ sudo -l
Password:       
root@computer~:#

No stars, no text, no nothing to let you know you are typing in the password field.
As I stated, This is what confused me, because I didn't know (I just though I did it wrong or terminal was broken :p ) ... and if this wasn't the issue you where having, Just forget I said anything. Best of luck!

wpeckham 04-28-2011 03:19 PM

paint a picture, please...
 
BC: can you tell us what exactly you are doing, and what seems not to work?


All times are GMT -5. The time now is 03:43 AM.