Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
|
|
09-03-2004, 03:20 PM
|
#1
|
Member
Registered: Aug 2003
Location: Texas
Distribution: Knoppix 5.0.1, Fedora Core 5
Posts: 66
Rep:
|
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.
|
|
|
09-03-2004, 03:37 PM
|
#2
|
Member
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397
Rep:
|
Boot into single user mode (Rescue mode).
|
|
|
09-07-2004, 09:34 AM
|
#3
|
Member
Registered: Aug 2003
Location: Texas
Distribution: Knoppix 5.0.1, Fedora Core 5
Posts: 66
Original Poster
Rep:
|
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?
|
|
|
09-08-2004, 04:30 AM
|
#4
|
Member
Registered: Aug 2004
Location: Europe
Posts: 608
Rep:
|
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
|
|
|
09-09-2004, 04:44 AM
|
#5
|
Member
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573
Rep:
|
you can use toms root boot. my question is... root account shoudlnt' expire... why did it?
|
|
|
09-13-2004, 12:54 PM
|
#6
|
Member
Registered: Aug 2003
Location: Texas
Distribution: Knoppix 5.0.1, Fedora Core 5
Posts: 66
Original Poster
Rep:
|
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.
|
|
|
09-13-2004, 03:00 PM
|
#7
|
Member
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573
Rep:
|
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.
|
|
|
09-14-2004, 09:47 AM
|
#8
|
Member
Registered: Aug 2004
Location: Europe
Posts: 608
Rep:
|
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).
|
|
|
All times are GMT -5. The time now is 07:42 AM.
|
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
|
|