From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,db7cb39715ac10d0 X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!193.60.199.26.MISMATCH!feed4.jnfs.ja.net!feed3.jnfs.ja.net!jnfs.ja.net!news.cc.ic.ac.uk!jura.cc.ic.ac.uk!anahata.ma.ic.ac.uk!andy From: andy thomas Newsgroups: comp.unix.tru64 Subject: Re: password recovery Date: Wed, 27 Jul 2005 13:43:44 +0100 Organization: Imperial College, London, UK Message-ID: References: Reply-To: andy.thomas@ic.ac.uk NNTP-Posting-Host: anahata.ma.ic.ac.uk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: jura.cc.ic.ac.uk 1122468225 17727 155.198.192.57 (27 Jul 2005 12:43:45 GMT) X-Complaints-To: news@jura.cc.ic.ac.uk NNTP-Posting-Date: Wed, 27 Jul 2005 12:43:45 +0000 (UTC) X-X-Sender: andy@anahata.ma.ic.ac.uk In-Reply-To: Xref: g2news1.google.com comp.unix.tru64:223 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