LinuxQuestions.org
Review your favorite Linux distribution.
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 03-31-2004, 08:34 AM   #16
amanjsingh
Member
 
Registered: Mar 2004
Location: New York, USA
Distribution: Debian, Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 15

yeah linorg, nice to meet ppl like u too.
ans sir bosewicht...i m not trying to do anythng of that kind. i m sorry if it seems like that.
guys but watever be the thing, this place rules...

regards
aman
 
Old 03-31-2004, 10:41 PM   #17
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
If you have lilo, you can tell it to boot like this

linux init=/bin/sh and you'll boot straight into a root shell instead. This can be protected against by adding 'restricted' to each image section in the lilo config, and setting a password in there as well (plain text, so be sure to chmod 600 your lilo.conf). Note that the linux entry there is just the default name - if you've called your image foobar, then it's foobar init=/bin/sh.

You can also whack a debian boot disk in on any linux distro, even with locked lilo suff, and boot from it but don't start the installation. You can then go to a terminal (alt-2) and mount the root filesystem (nomally /dev/hda1 - mount /dev/hda1 /target), then chroot /target, then just run passwd to reset the root password on any distro.
 
  


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
if the root password is forgotten..... AnimaSola Linux - Software 1 05-31-2005 11:12 PM
How to reset forgotten root password comprookie2000 Linux - Newbie 4 10-28-2004 01:33 PM
Forgotten my root password Blondie Linux - Newbie 2 12-08-2003 12:50 PM
Root Password FORGOTTEN kajensen Linux - Newbie 4 08-11-2003 03:06 AM
Mandrake 9 : Forgotten Root Password acadcworks Linux - General 8 12-18-2002 04:41 PM


All times are GMT -5. The time now is 12:06 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration