Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: andy thomas <andy@ic.ac.uk>
Subject: Re: password recovery
Date: Wed, 27 Jul 2005 13:43:44 +0100	[thread overview]
Message-ID: <Pine.LNX.4.44.0507271332170.22028-100000@anahata.ma.ic.ac.uk> (raw)
In-Reply-To: <dc7t96$m1p$1@ss405.t-com.hr>

On Wed, 27 Jul 2005, ivica wrote:

> Hi all,
>
> anyone has an idea what would one do if root pass was lost (any version of
> tru64?)
> Any link...?

If you can get the system to a SRM prompt (ie, the three angle arrows >>>)
then you can type 'boot -fl s' to boot the system to single user mode.
Then you can edit out the password field for root's entry in /etc/passwd -
this is the second field, after the first colon separator, eg:

         root:IpGjn1Mxmlf8.:0:1:system PRIVILEGED account:/:/bin/sh
              ^^^^^^^^^^^^^^^
              |
         (delete this)

so that root's entry in this file now looks like:

         root::0:1:system PRIVILEGED account:/:/bin/sh

and then reboot with ctrl-D or whatever.

To edit /etc/passwd, you can use ed (which resides in /bin) but if you're
not happy with using this editor, you may have to mount at least /usr/bin
to be able to use vi or emacs - a quick way of doing this is to type
'bcheckrc'. vi may complain about 'unknown terminal type' and present you
with a line editor display (ie, not full screen) - try the command 'env
TERM=vt100 vi /etc/passwd' instead.

Hope this helps - and don't forget to set a new password for root!

Andy





  reply	other threads:[~2005-07-27 12:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-27 12:04 password recovery ivica
2005-07-27 12:43 ` andy thomas [this message]
2005-07-28 16:23   ` -----
2005-07-27 13:04 ` Adam Price
2005-07-27 14:42   ` ivica
2005-07-27 17:33     ` Ann Majeske
2005-07-28  6:11     ` Adam Price
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox