Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* NIS password lock
@ 1996-12-23  5:00 Paul D. Chapin
  1996-12-23  5:00 ` Phil Edwards
  0 siblings, 1 reply; 2+ messages in thread
From: Paul D. Chapin @ 1996-12-23  5:00 UTC (permalink / raw)



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.

--


Paul Chapin				
Unix Systems Manager			I'm too busy to have time
Amherst College				for anything important.
413-542-2144



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: NIS password lock
  1996-12-23  5:00 NIS password lock Paul D. Chapin
@ 1996-12-23  5:00 ` Phil Edwards
  0 siblings, 0 replies; 2+ messages in thread
From: Phil Edwards @ 1996-12-23  5:00 UTC (permalink / raw)



[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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-12-23  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-12-23  5:00 NIS password lock Paul D. Chapin
1996-12-23  5:00 ` Phil Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox