Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-05-2002, 12:09 PM   #1
Mr Neroazzurri
LQ Newbie
Registered: Dec 2002
Posts: 2

Rep: Reputation: 0
Recovering Lost Admin. Password

I need to recover the Administrator passwrod on my Linux Red Hat box. I have found a way to do it (I think): when Linux is booting up, press ctrl-x to get into the command promtp mode. You are then presented with a screen like:


From here I enter single user mode and when in in single user mode I type in the command: password, and then enter in a new password.

This then allows me to boot up Linux as "root".

However, my query is, do I have full administrator access logged in this way or not because it seems like a very simple way for anyone to crack a UNIX/LINUX box? Surely it can't be this easy.
If in fact this does not give me full administrator privilieges then do you guys know any other ways to do so?

Any help would be greatly appreciated.

Old 12-05-2002, 12:13 PM   #2
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
As far as I am aware, this does allow you to change root's password easily, and so could be used to gain unwanted root access... however, in order to get into single mode, you must be at the keyboard when the thing boots up, so it would not be possible to do this from a networked machine. You can password protect your lilo/grub setup so that you need another password to boot into anything except for the default setting, for added security.
Old 12-05-2002, 02:29 PM   #3
Registered: Nov 2002
Distribution: Slackware
Posts: 37

Rep: Reputation: 15
hey there Mr Neroazzurri
try this thread
this should take care of all your questions, it did mine.
Old 03-14-2003, 04:58 PM   #4
Registered: Feb 2003
Distribution: xNIX
Posts: 121

Rep: Reputation: 15
grub is more secure bcz it have its own grub loader password other than the roots passowrd first u have to enter the grub password to go into the single user mode
Old 03-14-2003, 05:26 PM   #5
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
lilo has password protection too. just as secure.


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
Recovering Lost Data lawrencegoodman Linux - General 1 04-04-2004 12:57 PM
Help a recovering Windows admin with webmail. bitessy Linux - Software 6 10-01-2003 11:57 PM
Recovering Windows Admin needs help with Postfix bitessy Linux - Networking 1 09-27-2003 05:01 PM
Recovering Windows admin needs help with postfix bitessy Linux - Software 0 09-26-2003 02:21 AM
Recovering Lost Files gonus Linux - Software 1 08-08-2003 02:14 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration