Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sudo doesn't know my password?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ReeferMac
Guru
Guru


Joined: 30 May 2004
Posts: 389

PostPosted: Sat Sep 04, 2004 11:49 pm    Post subject: sudo doesn't know my password? Reply with quote

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
View user's profile Send private message
Throstur
n00b
n00b


Joined: 01 Jul 2002
Posts: 24
Location: Reykjavik, Iceland

PostPosted: Sun Sep 05, 2004 12:16 am    Post subject: Reply with quote

For sudo you write the user's password, not root's password. And the username has to be in /etc/sudoers :)
Back to top
View user's profile Send private message
ReeferMac
Guru
Guru


Joined: 30 May 2004
Posts: 389

PostPosted: Sun Sep 05, 2004 10:57 am    Post subject: Reply with quote

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
Code:

# sudo command


and give the root pass? I have to tell it

Code:

# sudo root command


- Mac
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54808
Location: 56N 3W

PostPosted: Sun Sep 05, 2004 11:10 am    Post subject: Reply with quote

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
View user's profile Send private message
ReeferMac
Guru
Guru


Joined: 30 May 2004
Posts: 389

PostPosted: Sun Sep 05, 2004 11:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum