Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* password recovery
@ 2005-07-27 12:04 ivica
  2005-07-27 12:43 ` andy thomas
  2005-07-27 13:04 ` Adam Price
  0 siblings, 2 replies; 7+ messages in thread
From: ivica @ 2005-07-27 12:04 UTC (permalink / raw)


Hi all,

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

Thanks




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: password recovery
  2005-07-27 12:04 password recovery ivica
@ 2005-07-27 12:43 ` andy thomas
  2005-07-28 16:23   ` -----
  2005-07-27 13:04 ` Adam Price
  1 sibling, 1 reply; 7+ messages in thread
From: andy thomas @ 2005-07-27 12:43 UTC (permalink / raw)


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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: password recovery
  2005-07-27 12:04 password recovery ivica
  2005-07-27 12:43 ` andy thomas
@ 2005-07-27 13:04 ` Adam Price
  2005-07-27 14:42   ` ivica
  1 sibling, 1 reply; 7+ messages in thread
From: Adam Price @ 2005-07-27 13:04 UTC (permalink / raw)


On Wed, 27 Jul 2005 14:04:53 +0200, ivica wrote:

> Hi all,
> 
> anyone has an idea what would one do if root pass was lost (any version of 
> tru64?)
> Any link...?
> 
If the system doens't have a bios password set then the system can be
hacked by booting to single user mode and setting a new password.
To do this power off the system and then during the boot process use ^c or
^p to interupt the boot before it begins, then at the >>> prompt pass the
's' argument to the kernel.
i.e.>>> boot -fl s
This will bring you to a root shell on a system running in single user
mode. The system filesystems will be mounted read-only or not mounted at
all, so use the command bcheckrc to mount them all read write.
Then you can use the passwd command to set any root password you need.
Adam
PS If you have trouble interupting the boot process (The timing can be
tricky), then you can always remove the power to the boot disk and then
boot. When the system fails to boot you can change the console boot mode to
halt and gain access to the >>> prompt that way (Ask for more detail if you
need it).


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: password recovery
  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
  0 siblings, 2 replies; 7+ messages in thread
From: ivica @ 2005-07-27 14:42 UTC (permalink / raw)



"Adam Price" <adam+usenet@pappnase.co.uk> wrote in message 
news:62sec52sj9wy$.dlg@pappnase.co.uk...
> On Wed, 27 Jul 2005 14:04:53 +0200, ivica wrote:
>
>> Hi all,
>>
>> anyone has an idea what would one do if root pass was lost (any version 
>> of
>> tru64?)
>> Any link...?
>>
> If the system doens't have a bios password set then the system can be
> hacked by booting to single user mode and setting a new password.
> To do this power off the system and then during the boot process use ^c or
> ^p to interupt the boot before it begins, then at the >>> prompt pass the
> 's' argument to the kernel.
> i.e.>>> boot -fl s
> This will bring you to a root shell on a system running in single user
> mode. The system filesystems will be mounted read-only or not mounted at
> all, so use the command bcheckrc to mount them all read write.
> Then you can use the passwd command to set any root password you need.
> Adam
> PS If you have trouble interupting the boot process (The timing can be
> tricky), then you can always remove the power to the boot disk and then
> boot. When the system fails to boot you can change the console boot mode 
> to
> halt and gain access to the >>> prompt that way (Ask for more detail if 
> you
> need it).

Thanks to all. One more thing, is the situation a lot different when C2 
security is applied?
I guess there are some shadow files to edit insted of passwd...

Thanks again




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: password recovery
  2005-07-27 14:42   ` ivica
@ 2005-07-27 17:33     ` Ann Majeske
  2005-07-28  6:11     ` Adam Price
  1 sibling, 0 replies; 7+ messages in thread
From: Ann Majeske @ 2005-07-27 17:33 UTC (permalink / raw)


Follow a similar procedure to boot to single user mode, but
use the edauth tool to remove the :u_pwd=<encrypted password>:
field from the root account.  See "man edauth" and "man prpasswd".





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: password recovery
  2005-07-27 14:42   ` ivica
  2005-07-27 17:33     ` Ann Majeske
@ 2005-07-28  6:11     ` Adam Price
  1 sibling, 0 replies; 7+ messages in thread
From: Adam Price @ 2005-07-28  6:11 UTC (permalink / raw)


On Wed, 27 Jul 2005 16:42:05 +0200, ivica wrote:

> "Adam Price" <adam+usenet@pappnase.co.uk> wrote in message 
> news:62sec52sj9wy$.dlg@pappnase.co.uk...
>> On Wed, 27 Jul 2005 14:04:53 +0200, ivica wrote:
>>
>>> Hi all,
>>>
>>> anyone has an idea what would one do if root pass was lost (any version 
>>> of
>>> tru64?)
>>> Any link...?
>>>
>> If the system doens't have a bios password set then the system can be
>> hacked by booting to single user mode and setting a new password.
>> To do this power off the system and then during the boot process use ^c or
>> ^p to interupt the boot before it begins, then at the >>> prompt pass the
>> 's' argument to the kernel.
>> i.e.>>> boot -fl s
>> This will bring you to a root shell on a system running in single user
>> mode. The system filesystems will be mounted read-only or not mounted at
>> all, so use the command bcheckrc to mount them all read write.
>> Then you can use the passwd command to set any root password you need.
>> Adam
>> PS If you have trouble interupting the boot process (The timing can be
>> tricky), then you can always remove the power to the boot disk and then
>> boot. When the system fails to boot you can change the console boot mode 
>> to
>> halt and gain access to the >>> prompt that way (Ask for more detail if 
>> you
>> need it).
> 
> Thanks to all. One more thing, is the situation a lot different when C2 
> security is applied?
> I guess there are some shadow files to edit insted of passwd...
> 
> Thanks again

Follow the exact same procedure as above. The whole point of using the
passwd command to change the password is that it does all the hard work
with hashed passwords and c2 security databases.
If that doesn't work then as Ann says you can use edauth to hack the
password entry out of roots tcb database entry.

Adam


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: password recovery
  2005-07-27 12:43 ` andy thomas
@ 2005-07-28 16:23   ` -----
  0 siblings, 0 replies; 7+ messages in thread
From: ----- @ 2005-07-28 16:23 UTC (permalink / raw)


andy thomas wrote:

> 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

tru64 may have shadowed passwords
using the passwd command is a better choice

L.

-- 
%DCL-F-RUIDIOT? 




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-07-28 16:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-27 12:04 password recovery ivica
2005-07-27 12:43 ` andy thomas
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

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