solaris 8 reset root password from OSX


 
Thread Tools Search this Thread
Operating Systems Solaris solaris 8 reset root password from OSX
# 1  
Old 02-07-2012
solaris 8 reset root password from OSX

Hello, I have two old Solaris machines

$ uname -a
SunOS unknown 5.8 Generic_117350-39 sun4u sparc SUNW,UltraAX-e2

unfortunately, it has been so long ago that i have used these that the root password has left my head...

i can log into one of the machine as a normal user, but am unable to do so on the second machine.

i tried to boot the machine with Solaris 11, in order to get to the filesystem and change the root password, as suggested by other posts, but the boot sequnce by passes the CD-ROM and goes directly to the boot prompt.

so my question:

my current laptop is a MacBook, 10.6.8, I don't have the original CD's just CD no 2 ;( the rest were lost)

also, on my MacBook, i only have USB ports, so i am unable to connect to the terminal via the serial adapter, unless I get a USB Serial Adapter.

recommendations much appreciated.

norman
# 2  
Old 02-07-2012
Do you have a console attached to your second machine? If yes, you can follow the steps:

Boot into single user mode. At OK prompt, type:
Code:
boot -s

Remount the root file system with read+write.
Remove the encrypted password in the /etc/shadow file for root.
Next time you login as root, you won't be prompted for password. You can set the password now.

If you do not have a console attached to the machine, my friend, you are in real problem. Smilie
# 3  
Old 02-08-2012
Hi,
Thanks for the reply.

When you mean 'Do you have a console attached to your second machine?'

i can login as a normal user and can get to the system files but not as root.

Or do I have to connect the 1st machine to the 2nd machine with a serial adapter?

on the second machine, the IP address has been 'hard' wired and is not DHCP and it id 207.XX.XX.XX whereas my internal DHCP server allocates 192.168.0.x IPs for any machines that join.

when i log into the 1st machine, i get the login prompt, i don't get the command prompt where to type boot -s

so, with a serial adapter, connected between the two machines, i log into machine one (this is where i have the normal user) then open a terminal to the second machine and reboot this in single mode.

is this the procedure?
# 4  
Old 02-08-2012
Can you get to the OBP (OpenBoot PROM) prompt when powering up the system?

If not, does Stop-A get you to the OBP prompt?
# 5  
Old 02-08-2012
Stop-A gets me to the OBP prompt, and now i get the following screen:

INIT: SINGLE USER MODE

Type control-d to proceed with normal startup,
(or give root password for system maintenance):

i don't have the root password!

what should be my next steps?

many thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Linux root Password Reset

Hi , I ve a question about the Linux system root password change. Which can be done using grub menu without inputting the old password.:confused: So If anybody can change the root password without any password and then how it is secure. Anybody can manipulate the other user using the... (6 Replies)
Discussion started by: pradyumnajpn10
6 Replies

2. Solaris

How to reset forgotten mysql root password?

Hi All, I just found one thread on this forum on this subject here: Forgot MYSQL password root | Unix Linux Forums | Web Development but unfortunately the issue was not resolved. I have the same problem with the same error message. The background is that I built a Solaris 11 x86 server... (11 Replies)
Discussion started by: hicksd8
11 Replies

3. Red Hat

Fedora reset root password

I need some help with Fedora. I am trying to reset the root password. When I tried to login I was not able to. I kept getting the authentication failure message. I got the password reset success message. passwd: all authentication tokens updated successfully. I then thought maybe the root... (6 Replies)
Discussion started by: cokedude
6 Replies

4. UNIX for Advanced & Expert Users

How to reset the ldap root password?

How to change the ldap root password. I have generated the password by using "slappasswd " command, but In my root machine "/etc/ldap/sldap.d" file is not there. instead of the file sldap.d directory only is there. please help me...? (0 Replies)
Discussion started by: ungalnanban
0 Replies

5. UNIX for Dummies Questions & Answers

Permission denied when changing root password after reset

I have a Solaris 10 machine that I didn't know the root password to so I went into single user mode and removed the password from the shadow file and rebooted and I am able to login with no password now. But my problem is that when I try to change the root password from no password to something... (0 Replies)
Discussion started by: darkone_d1_2000
0 Replies

6. Solaris

Reset lost superuser/root password in x86

I've come across this question during interview as Sys Adm. "How you reset lost root/superuser password on x86 system running solaris (8/9/10) which remotely located. (Not locally in front of you)" As much as I know, you must be physically in front of the server to reset the lost... (4 Replies)
Discussion started by: shahru
4 Replies

7. UNIX for Advanced & Expert Users

Not able to reset mysql root password

Hi, My root password for mysql has some problem as it dosent allow me to login.... all commands to reset it failed. so I removed mysql yum remove mysql and installed it by yum install mysql mysql-devel mysql-server and it installed fine I gave chkconfig --levels 235 mysqld on... (1 Reply)
Discussion started by: viji19812001
1 Replies

8. Cybersecurity

How to reset root password of old Unix System V

Hi all, This is first time I met unix in my life. I purchased old Scanning Elecron Microscope which came with 486/33MHz PC running Unix System V, ver. 3.6. The one simple user name/passw is known so I can boot and login. But can not shutdown! It asks root or su passw. I'm very sensitive not to... (6 Replies)
Discussion started by: 82026
6 Replies
Login or Register to Ask a Question