View previous topic :: View next topic |
Author |
Message |
ReeferMac Guru
Joined: 30 May 2004 Posts: 389
|
Posted: Sat Sep 04, 2004 11:49 pm Post subject: sudo doesn't know my password? |
|
|
I type in my password, and it fails.Repeatedly. I su,type in the same characters, and it works. sudo, fails.
WTF? Any idea's?
And before anyone asks, yes, I've carefully checked and triple checkd the characters I'm hitting on the keyboard. No typo's.
- Mac |
|
Back to top |
|
|
Throstur n00b
Joined: 01 Jul 2002 Posts: 24 Location: Reykjavik, Iceland
|
Posted: Sun Sep 05, 2004 12:16 am Post subject: |
|
|
For sudo you write the user's password, not root's password. And the username has to be in /etc/sudoers |
|
Back to top |
|
|
ReeferMac Guru
Joined: 30 May 2004 Posts: 389
|
Posted: Sun Sep 05, 2004 10:57 am Post subject: |
|
|
Huh? sudo doesn't automatically assume you want root? Sorry, I'm used to Solaris, 'sudo' is always root, unless you specify a different user account.
I looked in /etc/sudoers... Root's in there.
So I can't just type in
and give the root pass? I have to tell it
Code: |
# sudo root command
|
- Mac |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54808 Location: 56N 3W
|
Posted: Sun Sep 05, 2004 11:10 am Post subject: |
|
|
ReeferMac,
sudo assumes you want root.
Your currently logged in user, (that issues the sudo command) must be in /etc/sudoers
You use the users password not roots.
What would be the point in handing out the root password to semi-trusted users. They could just su then. sudo allows certain users a derfined subset of system admin commands. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
ReeferMac Guru
Joined: 30 May 2004 Posts: 389
|
Posted: Sun Sep 05, 2004 11:24 am Post subject: |
|
|
Ahhhhh.. Gotcha. Now I understand the concept (like I said, it's different in Solaris where I'm used to 'nix).
Thanks, I see the point, as you're describing. Sounds inherently more secure, than the other way. Now if I can just figure out the syntax of that 'sudoers' file.
Thanks for the pointers.
- Mac |
|
Back to top |
|
|
|