From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8e7cd104a9463953 X-Google-Attributes: gidfee84,public From: pedwards@NOSPAM.cs.wright.edu.TOAST (Phil Edwards) Subject: Re: NIS password lock Date: 1996/12/23 Message-ID: <59n5b9$rq6@valhalla.cs.wright.edu>#1/1 X-Deja-AN: 205665513 references: <59m47f$nc3@tom.amherst.edu> organization: $home newsgroups: comp.unix.osf.osf1 x-when-replying: correct the address as necessary x-processed-meat-product: misc.test@news.demon.co.uk [cc'd to poster] Paul D. Chapin 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