Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-28-2011, 08:53 AM   #1
LQ Newbie
Registered: May 2009
Posts: 2

Rep: Reputation: 0
sudo password

how to get sudo password? login not working for password
Old 04-28-2011, 08:57 AM   #2
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Welcome to LQ

The password is the password of the user.
sudo command
password user
login not working for password
Which login, which password?

Kind regards
Old 04-28-2011, 09:11 AM   #3
LQ Newbie
Registered: May 2009
Posts: 2

Original Poster
Rep: Reputation: 0
thought sudo password was the login password
Old 04-28-2011, 09:26 AM   #4
Mr. Bill
Registered: Mar 2011
Location: Maryland, USA
Distribution: Xubuntu 14.04 - 64
Posts: 185

Rep: Reputation: 14
Originally Posted by bcoley View Post
thought sudo password was the login password
It is. What exactly isn't working about it? Are you getting an error "incorrect password"?
Old 04-28-2011, 09:31 AM   #5
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
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
Old 04-28-2011, 11:27 AM   #6
Senior Member
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,620

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Hmmm... Never thought it was so confusing to explain, but...


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!
Old 04-28-2011, 11:46 AM   #7
Registered: May 2006
Location: Latvia, Europe
Distribution: random
Posts: 310

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
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..
Old 04-28-2011, 12:15 PM   #8
Registered: Dec 2010
Posts: 64

Rep: Reputation: 6
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".
Old 04-28-2011, 01:13 PM   #9
Registered: Apr 2011
Location: Washington State
Distribution: Zorin5-(Ubuntu 11.04) // Backtrack 5-(Ubuntu 10.04) // Dreamlinux 3.5-(Debian)
Posts: 275
Blog Entries: 5

Rep: Reputation: 40
Originally Posted by bcoley View Post
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:

you@computer:$ sudo -l
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 ) ... and if this wasn't the issue you where having, Just forget I said anything. Best of luck!
Old 04-28-2011, 04:19 PM   #10
Senior Member
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDo, tinycore, Q4OS,Manjaro
Posts: 4,628

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
paint a picture, please...

BC: can you tell us what exactly you are doing, and what seems not to work?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
No password for sudo? orange400 Linux - Software 9 03-18-2012 11:08 AM
sudo password jbander Linux - General 4 02-17-2011 02:19 PM
my sudo password is not the root password newbiesforever Linux - General 7 01-02-2010 10:59 PM
Sudo password kapilbajpai88 Linux - Newbie 9 11-06-2009 04:15 AM
sudo password...? yubimusubi Linux - General 15 09-04-2009 01:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration