LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-25-2003, 04:00 AM   #1
dahmad
LQ Newbie
 
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15

Rep: Reputation: 0
Angry Sos


Please HELP!
I've blocked my user acount and the root account what do I do????
 
Old 02-25-2003, 04:08 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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"
 
Old 02-25-2003, 04:21 AM   #3
dahmad
LQ Newbie
 
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15

Original Poster
Rep: Reputation: 0
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?
 
Old 02-25-2003, 05:03 AM   #4
dahmad
LQ Newbie
 
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 02-25-2003, 05:44 AM   #5
xYko
Member
 
Registered: Feb 2003
Location: Helsingborg, Sweden
Distribution: Slackware
Posts: 52

Rep: Reputation: 16
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.
 
Old 02-25-2003, 07:23 PM   #6
dahmad
LQ Newbie
 
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
Old 02-25-2003, 10:30 PM   #7
dahmad
LQ Newbie
 
Registered: Dec 2002
Distribution: Red Hat Linux 7.2
Posts: 15

Original Poster
Rep: Reputation: 0
Thumbs up

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sos!help! phoenix-2004 Linux - Newbie 5 12-24-2004 10:49 AM
DNS need help ? pls help me ! SOS SOS AngelOfTheDamn Linux - Networking 2 02-23-2004 12:13 PM
Sos milot Linux - Laptop and Netbook 0 10-16-2003 10:54 AM
SOS help needed wass29 Slackware 1 03-11-2003 12:35 PM
sos i need help xnet_online Linux - Distributions 4 10-23-2002 01:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration