Solved

setting the system to default

Posted on 2003-11-02
4
225 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
4 Comments
 
LVL 1

Accepted Solution

by:
AgelmarJagad earned 63 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 62 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now