View previous topic :: View next topic |
Author |
Message |
killgi n00b
Joined: 08 Dec 2007 Posts: 4
|
Posted: Sat Dec 08, 2007 7:10 pm Post subject: root pass problem |
|
|
Hi.
Root password was lost, so I have problems with login to server : Gentoo x86-64 2.6.22+lilo
I tried to login in single user mode to it, by adding "single", "s", "1" to command line of lilo, but it no helped.
So I use this line "init=/bin/bash rw" ok.
Then: mount -o remount,rw /
mount /dev/sda5 /usr
passwd
I enter new pass, retype again, but had such error: Authtefication token manipulation error!
Tried to fix /etc/passwd and /etc/shadow files, but when saves "permission denied" error occuried.
I check chmod to /etc/passwd and /etc/shadow files - they are writeable!
Could you help me plz?
P.S. Sorry, my english no so good. |
|
Back to top |
|
|
Dottout l33t
Joined: 07 Mar 2006 Posts: 882
|
Posted: Sat Dec 08, 2007 7:30 pm Post subject: |
|
|
boot from a livecd, mount your existing installation and chroot to it, then run passwd to set the new password |
|
Back to top |
|
|
killgi n00b
Joined: 08 Dec 2007 Posts: 4
|
Posted: Sun Dec 09, 2007 5:21 am Post subject: |
|
|
ok. I'll try it... |
|
Back to top |
|
|
|
|
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
|
|