• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 702
  • Last Modified:

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?
0
logout
Asked:
logout
1 Solution
 
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
 
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
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now