LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 09-03-2004, 02:20 PM   #1
TastyWheat
Member
 
Registered: Aug 2003
Location: Texas
Distribution: Knoppix 5.0.1, Fedora Core 5
Posts: 66

Rep: Reputation: 15
root account expired


Do I really need to say more? I can't login or 'su' as root so I can't re-activate my root account.
 
Old 09-03-2004, 02:37 PM   #2
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
Boot into single user mode (Rescue mode).
 
Old 09-07-2004, 08:34 AM   #3
TastyWheat
Member
 
Registered: Aug 2003
Location: Texas
Distribution: Knoppix 5.0.1, Fedora Core 5
Posts: 66

Original Poster
Rep: Reputation: 15
Am I correct in thinking this would require the installation CD? If so I'm probably screwed. I'm using an old version of Mandrake and I have no idea which version it is. Can I boot into rescue mode with a new Mandrake CD?
 
Old 09-08-2004, 03:30 AM   #4
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 602

Rep: Reputation: 49
You can boot into rescue mode without any CDs. Pass rescue mode options to your boot-loader when booting. These vary from distro to distro, this one is a sure shot:
init=/bin/sh
 
Old 09-09-2004, 03:44 AM   #5
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
you can use toms root boot. my question is... root account shoudlnt' expire... why did it?
 
Old 09-13-2004, 11:54 AM   #6
TastyWheat
Member
 
Registered: Aug 2003
Location: Texas
Distribution: Knoppix 5.0.1, Fedora Core 5
Posts: 66

Original Poster
Rep: Reputation: 15
When the computer boots up it goes into LILO. It doesn't give me any kind of option to include boot parameters. It lists "linux, linux-nofb, linux-secure, failsafe".

I have no idea why the account expired. Could be the fact that I manually changed the password file. The root password worked after I changed it. Once I logged out as root though I could only log back in as a normal user.
 
Old 09-13-2004, 02:00 PM   #7
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
Ok, you have two options, either boot with a bootable CD (knoppix?) or a bootdisk (toms root boot), mount the partition in which / is stored, the chroot to the mountpoint and change root's password like that (passwd root). Or you can try to press TAB, ESC or something when Lilo's gui appears.
 
Old 09-14-2004, 08:47 AM   #8
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 602

Rep: Reputation: 49
In LILO, when you are presented with the options (either in text-menu or graphical), press Esc and you'll get a command prompt. Type name of your usual kernel (e.g. linux-nofb), space and 'init=/bin/bash' and Enter.
Your kernel will boot as usually but you will get a root shell immediately (no services startup, no login prompts).
 
  


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
user account expired ??? rahimzai Red Hat 3 10-10-2005 05:03 AM
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
Re-enable an expired account xcoach Linux - Newbie 0 04-16-2004 10:39 AM
.... Can More Login - Account Expired (help!) Beuzekom Linux - Newbie 11 10-08-2003 10:45 AM
Root account expired, sort of.... rmohn Linux - Security 1 12-10-2002 10:32 AM


All times are GMT -5. The time now is 05:10 PM.

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