Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!www.nntp.primenet.com!nntp.primenet.com!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: passwd problems Date: 28 Sep 1996 19:11:52 GMT Organization: Private BSD site, Dresden Lines: 21 Message-ID: <52jt9o$8s@uriah.heep.sax.de> References: <52c8gd$m74@alpha.sky.net> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E dlascoe@sky.net (Duane Lascoe) wrote: > Is there any way to rebuild the master.passwd file from the passwd file > and the database files? Of course not, since the legacy passwd file is only a subset of the master.passwd. In particular, all the encrypted passwords are missing (and the expiration information and the unused `userclass' field). You can create a barebones master.passwd file with all accounts locked and no expiry at all with: sed -e 's/^\([^:]*:[^:]*:[^:]*:[^:]*:\)/\1:0:0:/' /etc/passwd \ > new.master.passwd -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)