* TCB auth.db to /etc/passwd?
@ 2012-10-29 22:46 Chuck Whealton
2012-10-30 3:54 ` Chris Adams
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Chuck Whealton @ 2012-10-29 22:46 UTC (permalink / raw)
Guys,
I doubt I'm going to have much luck with this one, however, I figured I'd give it a shot.
We have a client with a Digital UNIX 4.0D (build 878) system that is using the Trusted Computing Base. The /etc/passwd file was corrupted MONTHS ago now, and while there probably hasn't been a ridiculous amount of activity on the system in that time, there's been enough that it'll be a serious pain to put the /etc/passwd file back together manually.
My question is this: I know there are utilities to create the auth.db files from the text based files, using convauth, but it doesn't appear it goes both ways. From what I can tell, I can't use that utility to recreate the /etc/passwd file from the auth.db files, which are intact. The authchk utility seems to only check integrity, it doesn't appear to actually make repairs.
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?
Thanks for any help...
Charles Whealton
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: TCB auth.db to /etc/passwd?
2012-10-29 22:46 TCB auth.db to /etc/passwd? Chuck Whealton
@ 2012-10-30 3:54 ` Chris Adams
2012-10-30 17:04 ` Martin
2012-11-02 16:50 ` ChrisQ
2 siblings, 0 replies; 5+ messages in thread
From: Chris Adams @ 2012-10-30 3:54 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: TCB auth.db to /etc/passwd?
2012-10-29 22:46 TCB auth.db to /etc/passwd? Chuck Whealton
2012-10-30 3:54 ` Chris Adams
@ 2012-10-30 17:04 ` Martin
2012-10-30 22:12 ` Chuck Whealton
2012-11-02 16:50 ` ChrisQ
2 siblings, 1 reply; 5+ messages in thread
From: Martin @ 2012-10-30 17:04 UTC (permalink / raw)
Check out the man page for "convuser -b".
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: TCB auth.db to /etc/passwd?
2012-10-30 17:04 ` Martin
@ 2012-10-30 22:12 ` Chuck Whealton
0 siblings, 0 replies; 5+ messages in thread
From: Chuck Whealton @ 2012-10-30 22:12 UTC (permalink / raw)
On Tuesday, October 30, 2012 1:04:29 PM UTC-4, Martin wrote:
> Check out the man page for "convuser -b".
Chris and Martin,
Thanks for both of your replies. I'll check into both possibilities.
Charles Whealton
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: TCB auth.db to /etc/passwd?
2012-10-29 22:46 TCB auth.db to /etc/passwd? Chuck Whealton
2012-10-30 3:54 ` Chris Adams
2012-10-30 17:04 ` Martin
@ 2012-11-02 16:50 ` ChrisQ
2 siblings, 0 replies; 5+ messages in thread
From: ChrisQ @ 2012-11-02 16:50 UTC (permalink / raw)
On 10/29/12 22:46, Chuck Whealton wrote:
> Guys,
>
> I doubt I'm going to have much luck with this one, however, I figured I'd give it a shot.
>
> We have a client with a Digital UNIX 4.0D (build 878) system that is using the Trusted Computing Base. The /etc/passwd file was corrupted MONTHS ago now, and while there probably hasn't been a ridiculous amount of activity on the system in that time, there's been enough that it'll be a serious pain to put the /etc/passwd file back together manually.
>
> My question is this: I know there are utilities to create the auth.db files from the text based files, using convauth, but it doesn't appear it goes both ways. From what I can tell, I can't use that utility to recreate the /etc/passwd file from the auth.db files, which are intact. The authchk utility seems to only check integrity, it doesn't appear to actually make repairs.
>
> 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?
>
> Thanks for any help...
>
> Charles Whealton
Silly question, but doesn't the client have backup tapes ?. If so, you
should be
able to restore a single file, or the whole /etc tree.
I always make copies of passwd to passwd.old before any change...
Regards,
Chris
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-11-08 5:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-29 22:46 TCB auth.db to /etc/passwd? Chuck Whealton
2012-10-30 3:54 ` Chris Adams
2012-10-30 17:04 ` Martin
2012-10-30 22:12 ` Chuck Whealton
2012-11-02 16:50 ` ChrisQ
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox