From: pedwards@NOSPAM.cs.wright.edu.TOAST (Phil Edwards)
Subject: Re: NIS password lock
Date: 1996/12/23 [thread overview]
Message-ID: <59n5b9$rq6@valhalla.cs.wright.edu> (raw)
In-Reply-To: 59m47f$nc3@tom.amherst.edu
[cc'd to poster]
Paul D. Chapin <pdchapin@unix.amherst.edu> wrote:
+ Does anybody know how DEC locks the password file when doing the
+ passwd under NIS. With the adduser script they provide, they appear
+ to be using a /etc/ptmp directory as a lock flag, but I don't see it
+ when I do passwd. I'm trying to script a chfn and chsh that will work
+ with NIS.
This is some funky mojo.
Looking at the management scripts written by our various admins over the
last decade, the YP master machine (apparently) locks the file
/var/yp/src/passwd.ptmp when someone is changing their password, and
/var/yp/src/ptmp when new accounts are being generated. Many of our
account generation/manipulation scripts do test-and-set operations on
those two files.
As far as chfn/chsh (or "yppasswd -f" and "yppasswd -s") go, the
yppasswds on our YP clients are all perl scripts, to make sure a new
password isn't a brain-damaged choice before contacting the YP master.
I believe that -f or -s just pass the info along (although I really
don't remember).
Hope this helps. Or, at the least, hope this doesn't make things worse.
Luck++;
Phil
--
http://www.cs.wright.edu/people/students/pedwards/ The gods do not
Address is deliberately munged. You must edit protect fools. Fools are
the headers before replying -- although it can protected by more capable
be entertining not to, if you're really bored. fools. -Larry Niven
prev parent reply other threads:[~1996-12-23 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-12-23 5:00 NIS password lock Paul D. Chapin
1996-12-23 5:00 ` Phil Edwards [this message]
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