?
Solved

setting the system to default

Posted on 2003-11-02
4
Medium Priority
?
232 Views
Last Modified: 2013-12-15
hi,
which command i can use to set the system to factory default settings and how i can recover linux root password. i am new to linux and have limited knowledge about the operating system. so plz tell me in detail.
ushay
0
Comment
Question by:ushay_ali
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Accepted Solution

by:
AgelmarJagad earned 252 total points
ID: 9666584
Ummm, the only way to return the computer to "factory default" is to reinstall the OS.  Also, you cannot recover the root password.  There are ways to change it but it cannot be recovered (beyound doing a brute-force password crack), many of the ways are overviewed here:
http://www.experts-exchange.com/Operating_Systems/Linux/Linux_Administration/Q_20729820.html
0
 
LVL 12

Assisted Solution

by:paullamhkg
paullamhkg earned 248 total points
ID: 9668601
For recover your linux root password as AgelmarJagad said there is many way, but I found the best way is what I suggested in http://www.experts-exchange.com/Operating_Systems/Linux/Linux_Administration/Q_20729820.html  as below

you can download tomsrootboot   http://www.toms.net/rb/

boot computer from floppy

type "fdisk -l" to get current partition information

mount the partition containing the /etc/shadow files
  ex.  "mount /dev/hdc5 /mnt"

vi shadow you will find an entry as below

root:$1$ve.2WRaU$F8FZqVNwcgQftsnWCG5Ig0:12202:0:99999:7:::

change it to

root::12202:0:99999:7:::

save the file, now your root is no password, boot up your linux, login as root without password need, and add the new password for your root

passwd root

For reset to factory default, I don't think there is any factory default in linux distro, unless you brought a preinstall linux from something like IBM or Dell, they do have the preinstall RH linux, but actually it is only linux, as AgelmarJagad said reinstall the linux will do. or if you don't want to reinstall you can try the rescue mode of your linux distro porvided that the linux distro you got have the rescue mode like RH and mandrake.

hope this info can help :)
0

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month12 days, 2 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question