From: Jon Eidson <eidson () unix4 ! is ! tcu ! edu>
To: tru64-unix-managers
Subject: Summary: Help: C2 disabled root (fwd)
Date: Wed, 23 Apr 1997 15:51:48 +0000 [thread overview]
Message-ID: <96078611110619.tru64-unix-managers.marc@archive.invalid> (raw)
I've tried to considate all the responses I've received for the
archives so that others can benefit from this experience.
-----------------------------------------------------------------------
My origional posting:
-----------------------------------------------------------------------
> From eidson@unix4.is.tcu.edu
> Date: Mon, 21 Apr 1997 10:46:19 -0500 (CDT)
> Subject: Help: C2 disabled root
>
>
> Hi all ....
>
> Well ... my first experience with C2 under DU 4.0a is not going well.
> I have somehow gotten my root login "Account is disabled -- see
> Account Administrator". I've been abled to boot from CD and mount
> the root partition, but dont know what to change. I thought is was
> the "*" in the /etc/passwd file but that didnt clear things.
>
> I'd appreciate any help/suggestions.
-----------------------------------------------------------------------
Most folks suggested:
-----------------------------------------------------------------------
I include the following since it probably would solve a lot of the
common lockups:
> You may change 'u_lock' to 'u_lock@' in /tcb/files/auth/r/root
>
> And look at prpasswd(4) for explanations about the contents of this file.
>
> As I have understood from prpasswd(4) and for my experience
>
> when the file contains u_lock, the account is disbled
> when the file contains u_lock@, the account is not disabled.
>
> Someone else noted:
>
> If it is locked due to too many unsuccessful logins, remove the
> number from u_numunsuclog.
> Perhaps you can see also u_retired.
> Note that the last parameter must be 'chkent'
The best way to edit this file is to make sure all your disks are
mounted (mount -a) and then run the following:
/usr/tcb/bin/edauth root
I was able to successfully boot to single user mode and get around.
It did not appear to be a u_lock problem at all. The "passwd" command
would not even work. I WAS able to delele the password out by
removing the "u_pwd" entry ... then "passwd" allowed me to set my
password but then I was STILL locked out! I could not even run the
"passwd" command second time.
-----------------------------------------------------------------------
Solution I used:
-----------------------------------------------------------------------
Jeff Payne offered me the following:
> It would appear that your databases have got out of step with each other.
> Check to see if you have .db files in /etc/auth/system/ttys.db,
> /tcb/files/auth.db and /var/tcb/files/auth.db. If so then you could
> try the following - assuming that you have been able to login from the
> console. You could boot into single user mode and do it from there if
> you are unable to login from the console.
> (boot -fl s)
>
> 1. cd /etc/auth/system
> mv ttys.db ttys.db.sav
> mv ttys ttys.sav
> cp .proto..ttys ttys
> /tcb/bin/convauth -d t -O (capital letter O)
>
> 2. cd /var/tcb/files/
> mv auth.db auth.db.sav
> cd /tcb/files/
> mv auth.db auth.db.sav
> /tcb/bin/convauth -d p -g
>
> 3. Change your password via 'passwd'
While I had to tweek some of his options, the above basically worked
for me. A gotya is that all my other users could no longer login
until after I issued the "convuser -c" command. While everyone has
lost their password ... this is not a big deal since there are only
a few folks on this system.
-----------------------------------------------------------------------
Other Alternatives:
-----------------------------------------------------------------------
In hind sight it sounds like things were all the files were out-of-sync
and use of the convuser would probably have worked. The following solution
from Stephen LaBelle would have probably worked better and would have kept
my other authorization:
> Instead of booting up with the CD, why don't you just boot into single
> user mode. You get a root login.
>
> >>> boot -fl s
>
> The real info for root to login in with is in the directory:
>
> /tcb/files/auth/r/root
>
> Try the following after booting into single-user mode:
>
> % rm /tcb/files/auth/r/root
>
> % /tcb/bin/convuser -a root
>
> % passwd root
>
> Reboot, you should have root access.
-----------------------------------------------------------------------
Thanks to all:
-----------------------------------------------------------------------
Big thanks go to:
Nopchai Tangtritham <nung@alpha.tu.ac.th>
MC.Vialatte@custsv.univ-bpclermont.fr
richard n. frank <root@cermet.llnl.gov>
Chris Pressley <chrisp@tidalwave.net>
Helgi Viggosson <helgi@mail.digital.is>
Loosh <mlucius@dwc.edu>
Kent R Arnott <karnott@falcon.tamucc.edu>
Subir Grewal <subir@crl.com>
Juergen Bock <bock@dbf.ddb.de>
Martin.Blomdahl@network.combitech.se
Rodrigo Filipe <rfilipe@soporcel.pt>
AHMADI Laifa <Laifa.Ahmadi@litp.ibp.fr>
Jeff Payne <payne@solg2.bnsc.rl.ac.uk>
Matti Saarinen <mjs@cc.tut.fi>
Stephen LaBelle <labelles@mscd.edu>
Juergen Bock <bock@dbf.ddb.de>
Scott Johnson <scott@dsuper.net>
Dejan Muhamedagic <muja@galeb.etf.bg.ac.yu>
Is this a great group our what???
-----------------------------------------------------------------------
Jon Eidson (J.Eidson@tcu.edu) Information Services
Senior Systems Programmer Texas Christian University
(817) 921-7695 ext 6835 Fort Worth, Texas 76129
-----------------------------------------------------------------------
reply other threads:[~1997-04-23 15:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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