Lost root passwd

If lost root passwd, how to get it?
If can't, need reinstall again?
But If no root passwd, how to change to
OK propmt?
logoutAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

snyderoCommented:
Can you restore /etc/passwd from a previous tape backup, then you will have the password from that time.
0
alexhudghtonCommented:
boot your system (what type) into single user or maintenence mode.
This allows you in to the system as root with no password
reset the password
reboot the system
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jonkeCommented:
Except

a)You cannot restore file systems if you are not root

b)You will not be able to reboot to sungle user as you are not root.

You'll have to boot to single user from cdrom and change the password.
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

jonkeCommented:
To get the machine to the ok prompt without the root password:

1)Make sure system is idle as possible- no nfs mounted filesystems, no users logged on etc etc.

2) Stop-A

3)At the ok type 'sync'

4)Hope no data has been shagged
0
johns_philipCommented:
1.  Stop A
2. sync
3. boot cdrom
4. go to install screen ,right click, select command window
5. mount /dev/dsk/c0t3d0s0 /a
    ( Do this as per your h/w configuration and mount to /a)
6. vi /etc/passwd
    delete the 'x'  mark of root line
    save it

7. reboot
 
0
alexhudghtonCommented:
AFAIK You do not have to boot from CDROM to get to single user - most (commercial) UNIX flavours will allow the boot process to be stopped to go to maintenance mode, boot from tape, run diags etc. It is at this point you can boot to single user - CDs or tapes are not (generally) required if the OS has already been installed. If the system is up then you are going to have to stop it. A method I have used many times is to get all users off the system then reset it - such that it simulates a system crash and takes a crash dump. Switching off the power is not a good idea but may well be the only way.

To everyone else - how do you know what hardware this guy has ?? Have I missed something ?? Its not the same for every type you know :-))
0
jonkeCommented:
logout mentioned an ok prompt. Suggests Sun running Solaris to me.
0
alexhudghtonCommented:
pity he's not telling us what it is though :-) or responding at all !!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.