LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-01-2004, 12:08 AM   #1
MannaPC
LQ Newbie
 
Registered: Sep 2004
Location: Kentucky
Distribution: Red Hat Linux 9.0
Posts: 2

Rep: Reputation: 0
My root password has expired.


Hello.

I am running Linux Red Hat 9.0 on one of my machines. I am new to Linux in a way but I love it! The other day I installed it on a bigger hard drive and played and around and I believe I have messed something up because two days later when I tried to login it told me that the administrator had locked my account because my password has expired when I AM the admin.

Someone told me over at xmbforums.com (awesome forum software) to hit CTRL - ALT - F1 and type in root as the login and then type in some code that would reset my pass to whatever but when I get to the password field I cannot type anything in.

I have tried a lot of different things but none have worked I even re-installed lLinux but I didn't reformat so I still had the same things.

If anyone has a solution please reply.

Thanks,
MannaPC Webmaster

BTW where did you get <= that icon? I can I use it on my site?
 
Old 09-01-2004, 02:08 AM   #2
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
You can go to a console, ctrl alt F1, and login then type passwd. That will let you change the password to something else. There is a config file somewhere that you can change so that it won't expire. I can't recall which one it is though.

If you can not login, because you have expired, you may have to boot in single user mode. If you use grub, it is pretty easy. Reboot, when grub comes up, highlight the Linux boot like you are going to boot Linux and hit e twice. Add single to the end of the line. Note, there is no network or anything here. This is a bare, really bare, boot up. Not much of anything works when you boot this way. You will not have to login though. You go straight to a text prompt, no GUI either.

When you get to that prompt, type in passwd, then enter your new password twice. If you get no errors, type in reboot. You may want to type in init 5. That should be the same as a regular boot.

You may have a boot line called failsafe. You may can boot to that and this work as well. Not real sure, depends on how Redhat set it up to boot.

On the penguin with the ? mark. You need to talk to Jeremy about that. http://www.linuxquestions.org/questi...ssage&userid=1

Jeremy's a OK guy but if he made it, he may want to keep it. Not real sure. Sort of depends on where he got. You may try a www.google.com/image and see if it is public or copyrighted. If it is copyrighted, don't use it. There are people that look for those things ya know. Not worth getting in trouble over.

Hope that helps. If you use lilo, sorry. I don't know how to fix. There likely is a way, I'm just a grub user is all.

Later

 
Old 09-01-2004, 11:47 AM   #3
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
If you do have lilo you can bootup with this command...

linux init=/bin/sh


If your kernel name is listed other than linux replace linux with that like so...

"Red Hat Linux (2.4.20-31.9)" init=/bin/sh




Then change the password like this....


passwd


Hopefully this will fix it, however there is a problem because the root password should not expire.
 
Old 09-01-2004, 12:14 PM   #4
MannaPC
LQ Newbie
 
Registered: Sep 2004
Location: Kentucky
Distribution: Red Hat Linux 9.0
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by dalek
You can go to a console, ctrl alt F1, and login then type passwd. That will let you change the password to something else. There is a config file somewhere that you can change so that it won't expire. I can't recall which one it is though.

If you can not login, because you have expired, you may have to boot in single user mode. If you use grub, it is pretty easy. Reboot, when grub comes up, highlight the Linux boot like you are going to boot Linux and hit e twice. Add single to the end of the line. Note, there is no network or anything here. This is a bare, really bare, boot up. Not much of anything works when you boot this way. You will not have to login though. You go straight to a text prompt, no GUI either.

When you get to that prompt, type in passwd, then enter your new password twice. If you get no errors, type in reboot. You may want to type in init 5. That should be the same as a regular boot.

You may have a boot line called failsafe. You may can boot to that and this work as well. Not real sure, depends on how Redhat set it up to boot.

On the penguin with the ? mark. You need to talk to Jeremy about that. http://www.linuxquestions.org/questi...ssage&userid=1

Jeremy's a OK guy but if he made it, he may want to keep it. Not real sure. Sort of depends on where he got. You may try a www.google.com/image and see if it is public or copyrighted. If it is copyrighted, don't use it. There are people that look for those things ya know. Not worth getting in trouble over.

Hope that helps. If you use lilo, sorry. I don't know how to fix. There likely is a way, I'm just a grub user is all.

Later

Thanks I will go try that!
 
Old 09-01-2004, 02:25 PM   #5
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
Quote:
Originally posted by DavidPhillips

Hopefully this will fix it, however there is a problem because the root password should not expire.
That is what I was thinking too. I was not aware that root password would expire, at least by default. I did see a config file somewhere once that would but didn't understand why you would want it.

Hope one of those helps.

 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rebooted my computer this morning and my password expired....i have Red Hat 9.0 craig02 Linux - Software 3 11-30-2005 05:15 PM
How to get a list of users with their password status (expired, account locked...)? ricky_ds Linux - General 6 02-28-2005 09:53 AM
root account expired TastyWheat Linux - Security 7 09-14-2004 08:47 AM
password expired rbchhan Fedora 2 08-09-2004 10:39 AM
roots password expired. wlfdgcrkz Linux - Software 2 06-19-2003 06:50 AM


All times are GMT -5. The time now is 02:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration