Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: cmadams@hiwaay.net (Chris Adams)
Subject: Re: TCB auth.db to /etc/passwd?
Date: Mon, 29 Oct 2012 22:54:38 -0500	[thread overview]
Message-ID: <BbidnVffKpHj0hLNnZ2dnUVZ_o-dnZ2d@posted.hiwaay2> (raw)
In-Reply-To: 86d03d90-1696-4045-99e6-2e26f16d53c9@googlegroups.com

Once upon a time, Chuck Whealton  <chuck_whealton@yahoo.com> said:
>Is there anything I'm missing, any utilities out there to help in
>recreating/repairing an /etc/passwd file from the TCB auth.db data, or
>am I just stuck putting this thing back together entry by entry?

I did this once (probably 10+ years ago), but it took some manual work
as well.  IIRC the problem is that auth.db only has the password and
associated information, while /etc/passwd has home directory, full name,
login shell, and primary group ID.

In my case, all affected users were in the same group, the home
directories followed a fixed patter based off of username, they almost
all had the same login shell (or knew how to change it), and I just put
the username in the full name file.  That got me close enough that users
could log in again (and /etc/passwd and auth.db were in sync).  Then we
went back to billing records to reset full names by hand.

"/tcb/bin/edauth -g" will dump the auth database, and from there you can
get usernames and IDs.  After that, it is scripting (and knowing what
most values should be based on the system setup).
-- 
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.


  reply	other threads:[~2012-10-30  3:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-29 22:46 TCB auth.db to /etc/passwd? Chuck Whealton
2012-10-30  3:54 ` Chris Adams [this message]
2012-10-30 17:04 ` Martin
2012-10-30 22:12   ` Chuck Whealton
2012-11-02 16:50 ` ChrisQ
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