home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!spool.mu.edu!nigel.msen.com!caen!batcomputer!munnari.oz.au!uniwa!bilby.cs.uwa.oz.au!dunnart!janet
- From: janet@cs.uwa.oz.au (Janet Jackson)
- Subject: REALLY ANNOYING BUG in Sun's passwd(1) [Shadowing]
- Message-ID: <janet.716552012@dunnart>
- Keywords: bug,passwd,C2,shadow
- Sender: usenet@bilby.cs.uwa.edu.au
- Nntp-Posting-Host: dunnart
- Organization: Dept. Computer Science, University of Western Australia.
- Date: Tue, 15 Sep 1992 10:13:32 GMT
- Lines: 43
-
- I'm surprised I haven't seen this mentioned before. I will be reporting
- this bug to Sun. Meanwhile, I want to
- - alert people to the problem
- - ask how people work around it.
-
- Answers to the latter by email please, and I'll summarise.
-
- [Our environment: network of 27 Sun4s, Sparc 2's and Sparc 1's; NIS master
- is a Sun 4/470. All running SunOS 4.1.1 except one machine (a Sparc 2)
- running 4.1.2.]
-
- We are running both NIS and Sun's password shadowing (without group shadowing
- or C2 auditing). On the NIS master, the ASCII source files for the passwd
- and passwd.adjunct files are kept in /etc/ypsrc/passwd and
- /etc/ypsrc/security/passwd.adjunct. This seems much more sensible than
- mixing them up with the master's local passwords, and is recommended by Sun.
-
- Before I converted to shadowing, root could change any NIS password
- by doing a "local" password change on the NIS master:
- passwd -F /etc/ypsrc/passwd username
- The -F flag "tricks" passwd into using the NIS source file instead of
- /etc/passwd. After this you do a NIS make and all is perfect.
-
- Now we're running shadowing, the same command assumes the adjunct file is
- in /etc/security/passwd.adjunct, and fails with "Not in passwd.adjunct file."
- There is no way to tell passwd where the adjunct file is. You should
- be able to say something like
- passwd -F /etc/ypsrc/passwd -A /etc/ypsrc/security/passwd.adjunct username
-
- If I had the source code I would add this feature and give it to Sun,
- but Sun don't have the sense to provide their source.
-
- So when a user forgets their password, I have to make a temporary entry
- in the local adjunct file (/etc/security/passwd.adjunct), change the password
- there using the passwd -F command, then copy the entry across to the NIS
- adjunct file. A colleague has just given me a script which will probably help;
- however I'd like to know how other people are coping with this deficiency.
-
- Janet Jackson
- <janet@cs.uwa.edu.au>
- Systems Administrator
- Department of Computer Science
- The University of Western Australia
-