Guys, if you get locked out of the sc> prompt (ALOM) and/or don't know the admin passwd *and* the box is up, you can use the scadm command to add a new user.
You can not set admin's passwd to admin, our de facto standard, via scadm, but once logged into the sc> prompt, you can reset it there.
See below for scadm example/syntax:
bash-2.03#
uname -i
SUNW,Sun-Fire-V440
bash-2.03# /usr/platform/SUNW,Sun-Fire-V440/sbin/scadm useradd cfinn
bash-2.03#
/usr/platform/SUNW,Sun-Fire-V440/sbin/scadm userpassword cfinn
Password:
Re-enter Password:
bash-2.03# /usr/platform/SUNW,Sun-Fire-V440/sbin/scadm userperm cfinn cuar
(The "cuar" will give the newly added user full admin rights.)
The scadm command is also most useful in disabling that annoying "DHCP negotiation failed" message:
bash-2.03#
/usr/platform/SUNW,Sun-Fire-V440/sbin/scadm set if_network false
bash-2.03# /usr/platform/SUNW,Sun-Fire-V440/sbin/scadm set if_connection none
scadm: invalid variable or value
bash-2.03# /usr/platform/SUNW,Sun-Fire-V440/sbin/scadm set netsc_dhcp false
bash-2.03# /usr/platform/SUNW,Sun-Fire-V440/sbin/scadm resetrsc -s
(Note: you can also do a resetsc -y from the sc> prompt.)