Xref: utzoo comp.unix.questions:26876 comp.unix.admin:514 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!chinacat!sequoia!rpp386!jfh From: jfh@rpp386.cactus.org (John F. Haugh II) Newsgroups: comp.unix.questions,comp.unix.admin Subject: Re: Changing Passwords From A Batch File Message-ID: <18731@rpp386.cactus.org> Date: 14 Nov 90 08:09:43 GMT References: <1990Nov12.035942.14096@sjuphil.uucp> <18730@rpp386.cactus.org> Reply-To: jfh@rpp386.cactus.org (John F. Haugh II) Organization: Lone Star Cafe and BBS Service Lines: 20 X-Clever-Slogan: Recycle or Die. In article <18730@rpp386.cactus.org> jfh@rpp386.cactus.org (John F. Haugh II) writes: >Ideally you would want to read the user name, old password and >new password from a data file. The reason is that ps would >be able to see the passwords as they were changed. I've written a utility which does exactly what I described above. It does not work with SunOS (because of passwd.adjunct), but does work with V7-format /etc/passwd, and SVR3.2 or SVR4-format /etc/shadow files. You pick which one you want at compile time, and it gives that variety to you. The code figures out the difference between SVR3.2 and SVR4 /etc/shadow files (sort of, it may have problems I don't know about just yet ...) Depending on how many requests I get I'll either mail individual copies or post the code to alt.sources. -- John F. Haugh II UUCP: ...!cs.utexas.edu!rpp386!jfh Ma Bell: (512) 832-8832 Domain: jfh@rpp386.cactus.org "SCCS, the source motel! Programs check in and never check out!" -- Ken Thompson