Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Adduser/passwd problems
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
Snaga
n00b
n00b


Joined: 09 Jun 2003
Posts: 5

PostPosted: Mon Jun 09, 2003 12:27 pm    Post subject: Adduser/passwd problems Reply with quote

On a newly installed machine (haven't done anything brave or funny with it), after doing "adduser" (or useradd) and changing to that user, I can't use passwd. I get an "passwd: Authentication token manipulation error".

I found that a bit odd, as I followed the published x86 installation routine, but ok.... I usermodded -p SOMEPASSWORD. Seems to work, I get no complaints.... Still can't use passwd as that user.

In /etc/shadow I see the password isn't encrypted. I think that is where the (or a) problem is.

Extremely strange in this is that the root password got encrypted just fine when I set it early in the installation. Hmmm, in fact, running passwd as root works fine. No complaints about the authentication, no unencrypted password in /etc/shadow.
Let's see what happens when I moduser -p SOMETHING root. AHHA! I end up with an unencrypted password.

Okay... So probably something goes wrong when useradd/moduser tries to use some crypt utility/library/something to encrypt password. Passwd itself however works fine with decrypting/encrypting. (I wouldn't even have noticed a problem if both didn't do crypto things)

And here I'm lost on what to do. Any hints?
Back to top
View user's profile Send private message
jimlynch11
Guru
Guru


Joined: 21 Feb 2003
Posts: 590
Location: massachusetts

PostPosted: Mon Jun 09, 2003 3:43 pm    Post subject: Reply with quote

check out superadduser, its a great script that will take care of the entire add user process, passwords, homedirectory creation, groups, etc.

Quote:

emerge superadduser




<off topic>
and on the 600th post,
jim rose and became 1337
8)
</off topic>
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20584

PostPosted: Mon Jun 09, 2003 6:22 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Snaga
n00b
n00b


Joined: 09 Jun 2003
Posts: 5

PostPosted: Mon Jun 09, 2003 9:20 pm    Post subject: Reply with quote

Thank you, the superadduser script solved my problems; passwords are now happily encrypted.
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