Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

root password recovery solaris 8 - IA

149 views
Skip to first unread message

john fontejon

unread,
Feb 10, 2001, 6:55:30 PM2/10/01
to
forgot my root password on my intel box, could someone tell me how to
recover the password, or tell me how to get to single user mode to make a
new one?

thanks.

-Gerald


Jochem Steman

unread,
Feb 12, 2001, 8:26:25 AM2/12/01
to

"john fontejon" <font...@email.com> wrote in message
news:Sxkh6.79679$R5.38...@news1.frmt1.sfba.home.com...


Hi

from the ok-prompt:

ok boot -s cdrom

then: mount the /

create/modify now the:
- /etc/shadow
- /etc/password
- /etc/group

Regards,
- Jochem


Steve Menard

unread,
Feb 12, 2001, 10:30:03 PM2/12/01
to
From the OK prompt
ok boot -ws cdrom
mount /dev/dsk/c0t0d0s0 /mnt (or what ever you root slice is)
Set term
TERM=vt100;export TERM
vi /mnt/etc/shadow
delete the encrypted protion of the root entry

Example root:WxzL460hohWsU:10724::::::
remove the WxzL460hohWsU
Make sure you still have all 8 colons.
reboot.
This will leave you with NO root password. Change it as soon as it comes
up.

Steve.


--
Posted via CNET Help.com
http://www.help.com/

Philip Brown

unread,
Feb 14, 2001, 7:11:39 PM2/14/01
to
On Tue, 13 Feb 2001 03:30:03 -0000, opsm...@yahoo.com wrote:
>From the OK prompt
>ok boot -ws cdrom
>mount /dev/dsk/c0t0d0s0 /mnt (or what ever you root slice is)
>Set term
>TERM=vt100;export TERM
>vi /mnt/etc/shadow
>delete the encrypted protion of the root entry
>
>Example root:WxzL460hohWsU:10724::::::

vi??? booo! Too much overhead.. and you have to set that namby pamby
TERM var. :-)
PLUS, have a working /var/tmp

Shorten the above to either:

# mount /dev/dsk/c0t0d0s0 /mnt (or what ever you root slice is)
# sed 's/:WxzL460hohWsU:/::/' /mnt/etc/shadow >s
# mv s /mnt/etc/shadow


or if you prefer
# mount /dev/dsk/c0t0d0s0 /mnt (or what ever you root slice is)
# ed /mnt/etc/shadow
1s/root:[^:]*:/root::/
wq


:-)

--
[Trim the no-bots from my address to reply to me by email!]
[ Do NOT email-CC me on posts. Pick one or the other.]
S.1618 http://thomas.loc.gov/cgi-bin/bdquery/z?d105:SN01618:@@@D
The word of the day is mispergitude

Tony Wang

unread,
Feb 15, 2001, 3:21:58 AM2/15/01
to
I have an Ultra 60 without root password. When I boot it up, it asks the
root passowrd or control-d. I do not get OK prompt. How do I get it to
boot from cdrom or change the password?

Tony
"Philip Brown" <phi...@bolthole.no-bots.com> wrote in message
news:slrn98m7kv....@shell3.ba.best.com...

Logan Shaw

unread,
Feb 15, 2001, 6:16:56 AM2/15/01
to
In article <GkMi6.11431$Nj5.7...@bgtnsc07-news.ops.worldnet.att.net>,

Tony Wang <swan...@worldnet.att.net> wrote:
>I have an Ultra 60 without root password. When I boot it up, it asks the
>root passowrd or control-d. I do not get OK prompt.

You have to hit Stop-A during the boot process (early on is best)
to get the "ok" prompt.

- Logan
--
my your his her our their *its*
I'm you're he's she's we're they're *it's*

Xueqing Xu

unread,
Feb 15, 2001, 2:32:20 PM2/15/01
to

Steve Menard wrote:

> From the OK prompt
> ok boot -ws cdrom

After this, I have no chance to mount anything.

Ctrl-D to normal mode ( or
Enter root password to maintain )

How to ..?? Thanks in advance.

Fan Yang

unread,
Feb 17, 2001, 8:23:19 PM2/17/01
to
I can't mount /dev/dsk/c0t3d0s0 ( /). Do you know why?

"Philip Brown" <phi...@bolthole.no-bots.com> wrote in message
news:slrn98m7kv....@shell3.ba.best.com...

Philip Brown

unread,
Feb 18, 2001, 12:33:59 PM2/18/01
to
On Sat, 17 Feb 2001 19:23:19 -0600, yf...@yahoo.com wrote:
>I can't mount /dev/dsk/c0t3d0s0 ( /). Do you know why?

it helps to post error messages.

Mike Shimony

unread,
Feb 23, 2001, 9:31:22 AM2/23/01
to
I'm tring to get the time in microseconds in a kernel driver.
I know I can get the clock ticks since the last reboot from the LBOLT
parameter. On Solaris 2.6 this is only a 32 bit value, so it seems like it's
going to overflow pretty fast, and become negative (as the man page says).

Is this the best way to get the time in usecs? I'm only interested in the
difference from some point back in time, I dont need the current time.
Thanks.

Mike


Mike Shimony

unread,
Feb 23, 2001, 11:03:45 AM2/23/01
to
I accidentaly posted this as a reply to another message the first time i
sent it.
0 new messages