Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-25-2003, 05:00 AM
|
#1
|
LQ Newbie
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15
Rep:
|
Sos
Please HELP!
I've blocked my user acount and the root account what do I do????
|
|
|
02-25-2003, 05:08 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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"
|
|
|
02-25-2003, 05:21 AM
|
#3
|
LQ Newbie
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15
Original Poster
Rep:
|
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. , 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?
|
|
|
02-25-2003, 06:03 AM
|
#4
|
LQ Newbie
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15
Original Poster
Rep:
|
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
|
|
|
02-25-2003, 06:44 AM
|
#5
|
Member
Registered: Feb 2003
Location: Helsingborg, Sweden
Distribution: Slackware
Posts: 52
Rep:
|
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.
|
|
|
02-25-2003, 08:23 PM
|
#6
|
LQ Newbie
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
02-25-2003, 11:30 PM
|
#7
|
LQ Newbie
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15
Original Poster
Rep:
|
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 04:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|