home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.admin:4753 comp.unix.misc:3417 comp.unix.sysv386:13741
- Newsgroups: comp.unix.admin,comp.unix.misc,comp.unix.sysv386
- Path: sparky!uunet!gatech!ukma!psuvax1!atlantis.psu.edu!barr
- From: barr@pop.psu.edu (David Barr)
- Subject: Re: yp (nis) map changes - how do they happen
- Message-ID: <cg51Hktf99@atlantis.psu.edu>
- Keywords: passwd yp nis
- Sender: news@atlantis.psu.edu (Usenet)
- Organization: Penn State Population Research Institute
- References: <1992Aug27.180340.729@ilinx.wimsey.bc.ca> <lee.715021798@ceg.uiuc.edu>
- Date: Fri, 28 Aug 92 22:28:03 GMT
- Lines: 36
-
- In article <lee.715021798@ceg.uiuc.edu> lee@ceg.uiuc.edu (Chris Lee) writes:
- >brian@ilinx.wimsey.bc.ca (Brian J. Murrell") writes:
- >On the NIS Master, when you types yppasswd, you are prompted for the old
- >NIS password (which you type), and then prompted for the new password
- >(twice to check, of course). This is not a problem. However, on some
- >of the clients, when you type yppasswd, you get "permission denied"
- >in spite of the fact that EVERYTHING seems to be there (yes, ypwhich
- >does return the master server, and the passwd file has the entry
- >+: blahblahblah).
-
- Is yppasswd setuid root? (It needs to be) Or are you mounting the
- filesystem on which yppasswd is with 'nosuid'?
-
- >On some others, you can type garbage at the old NIS
- >password prompt and proceed to the new password prompts, tho if the old
- >one is incorrect, you can't change the password. Anyone with an ounce
- >of common sense would think that if you mistype the old password, the
- >password process would exit...unless this is a security feature (...but
- >on the master, if you mistype the old password, it does exit...).
-
- That's because with yppasswd, it is all done at once with one RPC call
- after you type the new password. In other words, the yppasswd client
- finds out the old password, and confirms the new password. It then
- sends both passwords to the yp master's rpc.yppasswdd, who confirms
- the old password with its copy and updates the password file if they
- match. It then returns wether or not it was successful.
-
- It's probably different on the master because your /etc/password
- file on there is the master password file, and thus can do a
- "local" password style change.
-
- --Dave
- --
- System Administrator, Population Research Institute barr@pop.psu.edu
- One is the loneliest number.
- Two is as lonely as one, just shifted to the left.
-