Any SunOS/Solaris users?

kernow

Superior Being
25 Year Member
Joined
Sep 1, 2001
Posts
38,831
got a machine that I don't know the root pass of and I have no 13w3 (yet) so I can't see anything either.. ideas?

If I sigh new its IP it would be easier. :spock:
 

RabbitTroop

Mayor of Southtown, ,
20 Year Member
Joined
Dec 26, 2000
Posts
13,852
kernow said:
got a machine that I don't know the root pass of and I have no 13w3 (yet) so I can't see anything either.. ideas?

If I sigh new its IP it would be easier. :spock:

Reinstall the OS? Just wipe it clean and set it up. Most likely it is a static IP so forget about getting networking up on it. If you can figure out root, you can run a sys-unconfig to reconfigure the machine... but... that probably isn't likely. What access does your user have... do you even have access? WIPE IT!
 

kernow

Superior Being
25 Year Member
Joined
Sep 1, 2001
Posts
38,831
nruva said:
Reinstall the OS? Just wipe it clean and set it up. Most likely it is a static IP so forget about getting networking up on it. If you can figure out root, you can run a sys-unconfig to reconfigure the machine... but... that probably isn't likely. What access does your user have... do you even have access? WIPE IT!

a) I don't have a cdrom drive on it
b) I dont have solaris CD's
c) I dont have a 13W3 adaptor (yet) (bidding on one on ebay atm)
d) I am going to try serial terminal with a null modem cable
e) I cannot find my null modem cable :(
f) fuck, I'll just buy another box maybe
g) what filesystem is it I wonder, maybe I could plug it into my slack box and mount it
h) sigh.

I would WIPE IT if I could man :)
 

Takumaji

Krautmin
Staff member
Joined
Jul 24, 2001
Posts
20,462
Should be easy to find out the address... just put in on a dumb hub (not a switch), connect another known-good machine to it and either switch the network card of the 2nd machine to promiscous mode and/or use tcpdump, you should see arp requests or some Solaris crap packets flying around.

If the machine has no IP, it will send out boottp/dhcp requests to get an one, in this case you can set it with arp or by setting up a small dhcp server.

If this machine is really worth the fuzz, put a cd drive into it and get an image of the latest Solaris rescue system, burn it to CD and start your system with it, then you can delete the root pw in /etc/shadow.

If all fails, put the hd in a Linux box, mount it, delete root pw, put it back, voila.
 

td741

, NOTE: Please add 16 points to his feedback., --
Joined
Jun 7, 2002
Posts
1,735
kernow said:
a) I don't have a cdrom drive on it

What model is your sun box? Most early ones have SCSI, later models have IDE. It shouldn't be too difficult to hook up a CD.

kernow said:
b) I dont have solaris CD's

Do you have broadband? You can download/burn Solaris from Sun. I installed Solaris 9 from my SparcStation a while back (okay, it's a tad slow but that wasn't unexpected... :P)

Linky...

Hope this helps?!

Err... Maybe this link will be more useful... :P At least there is a download button. ;)
 
Last edited:

kernow

Superior Being
25 Year Member
Joined
Sep 1, 2001
Posts
38,831
well, thanks for the ideas peeps

'worth the fuzz' lol

I'll let you know how my experience goes, uh.. what filesystem support am I looking for here in my kernel etc?

I really should get a null modem cable..


sigh :)
 

kernow

Superior Being
25 Year Member
Joined
Sep 1, 2001
Posts
38,831
Host: scsi0 Channel: 00 Id: 03 Lun: 00
Vendor: SEAGATE Model: ST11200N SUN1.05 Rev: 8258
Type: Direct-Access ANSI SCSI revision: 02


heh. - bump

looks like my box picks it up alright but complains it can't read the paritition table , duh obviously.

anyway.. hmm the filesystem?
 

kernow

Superior Being
25 Year Member
Joined
Sep 1, 2001
Posts
38,831
hmm UFS

re-compiling kernel for UFS support and advanced partitions.. sigh

maybe I can mount it after this
 

kernow

Superior Being
25 Year Member
Joined
Sep 1, 2001
Posts
38,831
Disk /dev/sda (Sun disk label): 14 heads, 72 sectors, 2036 cylinders
Units = cylinders of 1008 * 512 bytes

Device Flag Start End Blocks Id System
/dev/sda1 0 66 33264 0 Empty
/dev/sda2 66 198 66528 0 Empty
/dev/sda3 0 2036 1026144 0 Empty
/dev/sda7 198 1010 409248 0 Empty
/dev/sda8 1010 2036 517104 0 Empty
 

Takumaji

Krautmin
Staff member
Joined
Jul 24, 2001
Posts
20,462
well then, mount one partition after another and look for / ("the one with /etc")... :)

Then edit /etc/shadow and look for the root entry. The gibberish between the two following ":" is the hashed/salt'ed root pw - delete it´ and save.

If there's no /etc/shadow but only /etc/passwd, you have one of those old-ass SunOS without shadow pw system (which I wouldn't touch with a ten-foot pole), in that case the pw is in /etc/passwd.
 

kernow

Superior Being
25 Year Member
Joined
Sep 1, 2001
Posts
38,831
great

its fecking READ-ONLY

sigh, I specified 'experimental write support [x] dangerous' and stuff

anyway, sigh taking it out again, that was a waste of time, I could see /etc on each partition, mount even segfaulted trying to mount /dev/sda2

but meh

the serial cable is built, its time to try out this serial console boot.. geh
 

kernow

Superior Being
25 Year Member
Joined
Sep 1, 2001
Posts
38,831
woot, finally some output

woot

right I have got it to serial boot

and I have a MAC address, so a net install over tftp might be coming :)

SPARCstation LX, No Keyboard
ROM Rev. 2.10, 32 MB memory installed, Serial #7361705.
Ethernet address 8:0:20:19:3b:e0, Host ID: 807054a9.


Boot device: /iommu/sbus/espdma@4,8400000/esp@4,8800000/sd@3,0 File and args:

root on /iommu@0,10000000/sbus@0,10001000/espdma@4,8400000/esp@4,8800000/sd@3,0:
a fstype 4.2
Boot: vmunix
Size: 1515520+460808+215056 bytes
PAC ENABLED
SunOS Release 4.1.3_U1 (GENERIC) #2: Thu Jan 20 15:58:03 PST 1994
Copyright (c) 1983-1993, Sun Microsystems, Inc.
cpu = SUNW,SPARCstation-LX
mod0 = TI,TMS390S10 (mid = 0)
mem = 32404K (0x1fa5000)
avail mem = 28995584
entering uniprocessor mode
Ethernet address = 8:0:20:19:3b:e0
espdma0 at SBus slot 4 0x8400000
esp0 at SBus slot 4 0x8800000 pri 4 (onboard)
sd0 at esp0 target 3 lun 0
sd0: <SUN1.05 cyl 2036 alt 2 hd 14 sec 72>
SUNW,bpp0 at SBus slot 4 0xc800000 pri 3 (sbus level 2)
ledma0 at SBus slot 4 0x8400010
le0 at SBus slot 4 0x8c00000 pri 6 (onboard)
SUNW,DBRIe0 at SBus slot 2 0x10000 pri 9 (sbus level 5)
cgsix0 at SBus slot 3 0x0 pri 9 (sbus level 5)
cgsix0: screen 1280x1024, single buffered, 2M mappable, rev 8
zs0 at SBus slot 4 0x1100000 pri 12 (onboard)
zs1 at SBus slot 4 0x1000000 pri 12 (onboard)
SUNW,fdtwo0 at SBus slot 4 0x1400000 pri 11 (onboard)
MMCODEC: manufacturer id 1, rev 2
root on sd0a fstype 4.2
swap on sd0b fstype spec size 66528K
dump on sd0b fstype spec size 66516K
 

kernow

Superior Being
25 Year Member
Joined
Sep 1, 2001
Posts
38,831
finally, it netboots

thanks everyone for your help

I've been thru hell :(
 
Top