Hacking root's password

Hacking root's password

Post by WCK » Sat, 12 Feb 2000 04:00:00



I inherited an old sun sparc station with solaris 2.4. The password for root
is not available and the sparc don't have a cdrom nor a tape backup for me
to do an alternate system bootup.

Can anyone please tell me how to break into the root's password or better
still upgrade the OS?
thanks

 
 
 

Hacking root's password

Post by Neil W Ricker » Sun, 13 Feb 2000 04:00:00



>I inherited an old sun sparc station with solaris 2.4. The password for root
>is not available and the sparc don't have a cdrom nor a tape backup for me
>to do an alternate system bootup.
>Can anyone please tell me how to break into the root's password or better
>still upgrade the OS?
>thanks

For changing roots password, you can remove the disk, and install it
in another machine, and edit your '/etc/passwd' there.

To upgrade, you will need to have somebody set up a way of booting
across the network (in which case you could use that to fix the
passwd problem).

 
 
 

Hacking root's password

Post by Robert Angelin » Wed, 16 Feb 2000 04:00:00




> >I inherited an old sun sparc station with solaris 2.4. The password for root
> >is not available and the sparc don't have a cdrom nor a tape backup for me
> >to do an alternate system bootup.

> >Can anyone please tell me how to break into the root's password or better
> >still upgrade the OS?
> >thanks

> For changing roots password, you can remove the disk, and install it
> in another machine, and edit your '/etc/passwd' there.

There's a much easier way to do this...  Boot off the Solaris CD
and somehow get to the shell.  OInce in the shell, mount the
partition which corresponds to where / is on.  Once you
mounted it, edit the /<mountpoint>/etc/passwd
or /<mountpoint>/etc/shadow.

sync;sync;sync;reboot

--
Robert Angelino
Director of Software Development
High Tower Software Inc.
(949) 852-2233

 
 
 

Hacking root's password

Post by Joe Durusa » Thu, 17 Feb 2000 04:00:00


    I believe he said that htere wasn't a CDROM on the thing.  In that case,
the easiest thing to do is boot net at the <ok> prompt.  Of course, this assumes
that you have a boot server set up on the net, and that you have the proper
license to upgrade the system.  If you look at docs.sun.com, they will have info
on doing an upgrade across the net.  If you have only a stand-alone system,
buy a CDROM.  It would be cheap at twice the price.

Speaking only for myself,

Joe Durusau




> > >I inherited an old sun sparc station with solaris 2.4. The password for root
> > >is not available and the sparc don't have a cdrom nor a tape backup for me
> > >to do an alternate system bootup.

> > >Can anyone please tell me how to break into the root's password or better
> > >still upgrade the OS?
> > >thanks

> > For changing roots password, you can remove the disk, and install it
> > in another machine, and edit your '/etc/passwd' there.

> There's a much easier way to do this...  Boot off the Solaris CD
> and somehow get to the shell.  OInce in the shell, mount the
> partition which corresponds to where / is on.  Once you
> mounted it, edit the /<mountpoint>/etc/passwd
> or /<mountpoint>/etc/shadow.

> sync;sync;sync;reboot

> --
> Robert Angelino
> Director of Software Development
> High Tower Software Inc.
> (949) 852-2233

 
 
 

Hacking root's password

Post by Bruce Porte » Thu, 17 Feb 2000 04:00:00



>     I believe he said that htere wasn't a CDROM on the thing.  In that case,
> the easiest thing to do is boot net at the <ok> prompt.  Of course, this assumes
> that you have a boot server set up on the net, and that you have the proper
> license to upgrade the system.  If you look at docs.sun.com, they will have info
> on doing an upgrade across the net.  If you have only a stand-alone system,
> buy a CDROM.  It would be cheap at twice the price.

> Speaking only for myself,

> Joe Durusau




> > > >I inherited an old sun sparc station with solaris 2.4. The password for root
> > > >is not available and the sparc don't have a cdrom nor a tape backup for me
> > > >to do an alternate system bootup.

> > > >Can anyone please tell me how to break into the root's password or better
> > > >still upgrade the OS?
> > > >thanks

> > > For changing roots password, you can remove the disk, and install it
> > > in another machine, and edit your '/etc/passwd' there.

> > There's a much easier way to do this...  Boot off the Solaris CD
> > and somehow get to the shell.  OInce in the shell, mount the

thats boot cdrom -sw
but he hasn't got a cdrom !

Quote:> > partition which corresponds to where / is on.  Once you
> > mounted it, edit the /<mountpoint>/etc/passwd
> > or /<mountpoint>/etc/shadow.

> > sync;sync;sync;reboot

--

Bruce Porter
DTV Server Support

 
 
 

Hacking root's password

Post by Joe Durusa » Mon, 21 Feb 2000 04:00:00


        If by 'I don't have a cdrom' you mean the media, get one!
The things only cost $15 or so.  If you look at the FAQ, it will
suggest a couple of ways to solve the problem.  Beyond what the
FAQ says, you could move the disk to another sparc, or set up
a bootserver and do a boot net, or you could go to a horrible
amount ot trouble poking around in memory.  I certianly don't
recommend the latter.

Speaking only for myself,

Joe Durusau


> ON 2.4 you should be able to just boot -s and it should dump you in
> single user mode with no passwd required and you could then just edit
> out your passwd.


> >I inherited an old sun sparc station with solaris 2.4. The password for root
> >is not available and the sparc don't have a cdrom nor a tape backup for me
> >to do an alternate system bootup.

> >Can anyone please tell me how to break into the root's password or better
> >still upgrade the OS?
> >thanks