LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 03: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, 03: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, 09: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, 04:30 AM   #4
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
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, 04: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, 12:54 PM   #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, 03: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, 09:47 AM   #8
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
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 06:03 AM
How to get a list of users with their password status (expired, account locked...)? ricky_ds Linux - General 6 02-28-2005 10:53 AM
Re-enable an expired account xcoach Linux - Newbie 0 04-16-2004 11:39 AM
.... Can More Login - Account Expired (help!) Beuzekom Linux - Newbie 11 10-08-2003 11:45 AM
Root account expired, sort of.... rmohn Linux - Security 1 12-10-2002 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:42 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