Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[resolved] problem setting user password
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Wed Nov 07, 2012 12:31 am    Post subject: [resolved] problem setting user password Reply with quote

Hi all,

I have to reinstall gentoo on my laptop due to a hard drive failure. I'm currently chrooted and toward the end of the installation. After adding the user I set the password and this is the result:
Code:
chroot to ->(gentoo) # passwd bill
New password:
Retype new password:
passwd: Authentication token manipulation error
passwd: password unchanged
chroot to ->(gentoo) #

I've never encountered this before :?:

I did some googling, but couldn't find any answers. Hopefully, someone here can provide a clue :)

Thanks
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)


Last edited by BillWho on Wed Nov 07, 2012 4:19 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Nov 07, 2012 2:16 am    Post subject: Reply with quote

Adding dumb comment--The handbook waits to add ordinary user after the reboot
Code:
ls -al /etc/shadow*

Check if you have got /etc/shadow file or not? If it does not exist then look for /etc/shadow-. If /etc/shadow- file does exist then copy it as /etc/shadow using the following command:
Code:
cp /etc/shadow- /etc/shadow

Quote:
The pwconv command creates shadow from passwd and an optionally existing shadow

IF you have no /etc/shadow files at all you can make a blank one and set the new username/password. You may have trouble with the "system" users; don't know.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Wed Nov 07, 2012 4:18 am    Post subject: Reply with quote

DONAHUE,

I just discovered that I made a BIG MISTAKE :oops:

I must have unpacked the tarballs as user because the permissions and owners were all wrong - too many to fix manually so I'll just start over.

Thanks :D
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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