LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-28-2011, 08:53 AM   #1
bcoley
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
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
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
 
Old 04-28-2011, 09:11 AM   #3
bcoley
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
Member
 
Registered: Mar 2011
Location: Maryland, USA
Distribution: Xubuntu 14.04 - 64
Posts: 185

Rep: Reputation: 14
Quote:
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
SL00b
Member
 
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
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.0 at present.
Posts: 1,170

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

My

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
Arcane
Member
 
Registered: May 2006
Location: Latvia, Europe
Distribution: random
Posts: 303

Rep: Reputation: 233Reputation: 233Reputation: 233
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
omgs
Member
 
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
Hevithan
Member
 
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
Quote:
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:

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 ) ... 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
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,657

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

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


Reply


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


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

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