LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sos (https://www.linuxquestions.org/questions/linux-newbie-8/sos-47029/)

dahmad 02-25-2003 04:00 AM

Sos
 
Please HELP!
I've blocked my user acount and the root account what do I do????
:confused: :confused: :cry:

acid_kewpie 02-25-2003 04:08 AM

blocked? you mean you forgot the password?

at the lilo menu press ctrl+x (i think) and type "linux single". thas will then log you in as root automatically, and then you can set your password with "passwd"

dahmad 02-25-2003 04:21 AM

Nope didn't forget the password, but was playing with a login module for smartcards, and it seems i had one too many incorrect passwords in there due to the card, not me, and now both root and I'm locked out. :cry: , Anyways I put in the installation disk to do the linux rescue, but I don't know what to do when it gets to the prompt, what do I do?
:cry:

dahmad 02-25-2003 05:03 AM

I got to the prompt and it said that it mounted my old Linux installation on /mnt/sysimage , so I get to the command prompt and my system is there,(I'm logged in as root), I type passwd and reset my root password and exit, but at the login menu same thing happens

xYko 02-25-2003 05:44 AM

Since your old linux installation is on /mnt/sysimage, your password files are there too. Edit /mnt/sysimage/etc/shadow and remove the password field.

Never edit that file under normal circumstances though.

dahmad 02-25-2003 07:23 PM

I can't find a password entry in the shadow file???
And basically I read on another forum to delete everything between the first two colons at the root entry of the shadow file, but that hasn't worked either and I'm still getting the authentication failed right after I type root as login, it doesn't even ask for password??
Please help if you can, anyone.

dahmad 02-25-2003 10:30 PM

Thankyou all,
Its fixed what i did was got into the single user mode at boot up by ctrl-x and then removed the pam_musclecard.so from login at /etc/pam.d/login and /etc/pam.d/su and then passwd to reset the password for roor and then for user and it worked, thanks again
:(


All times are GMT -5. The time now is 11:31 AM.