From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,61548776808dc8ec X-Google-NewGroupId: yes X-Google-Attributes: gide63b27eb52,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.99.163 with SMTP id er3mr46344wib.2.1351569279534; Mon, 29 Oct 2012 20:54:39 -0700 (PDT) MIME-Version: 1.0 Path: q13ni104058wii.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!91.203.106.13.MISMATCH!border1.hitnews.com!xlned.com!feeder7.xlned.com!news2.euro.net!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.hiwaay2!news.posted.hiwaay2.POSTED!not-for-mail NNTP-Posting-Date: Mon, 29 Oct 2012 22:54:38 -0500 Newsgroups: comp.unix.tru64 Subject: Re: TCB auth.db to /etc/passwd? References: <86d03d90-1696-4045-99e6-2e26f16d53c9@googlegroups.com> X-Newsreader: trn 4.0-test76 (Apr 2, 2001) From: cmadams@hiwaay.net (Chris Adams) Originator: cmadams@hiwaay.net (Chris Adams) Message-ID: Date: Mon, 29 Oct 2012 22:54:38 -0500 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 216.180.54.1 X-Trace: sv3-ijfBbWF4V319CzRN39ifgHPZ6wUhp5OjIKVjj6P3DXWp7OqpqGjEUAghSiIFByms7k6iJMep43A9DEl!J81nPVOXUTSt5hqWR2M2z4EFf4YoPCphoGTRdYBgFkA6pK9AZq408UQD9w7R9BZ9lofIagt3JZv0!6tshAHuVOw== X-Complaints-To: abuse@hiwaay.net X-DMCA-Complaints-To: abuse@hiwaay.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2358 X-Received-Bytes: 2499 Once upon a time, Chuck Whealton 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 Systems and Network Administrator - HiWAAY Internet Services I don't speak for anybody but myself - that's enough trouble.