From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,a321cd808baa8fc3 X-Google-Attributes: gidf678f,public From: pdchapin@news.amherst.edu (PAUL D. CHAPIN) Subject: Re: NIS--Still can not login Date: 1995/09/14 Message-ID: <439oa6$g7l@amhux3.amherst.edu>#1/1 X-Deja-AN: 110125195 references: <9509131705.AA04571@perutz.salk.edu> organization: Amherst College, Amherst MA, USA newsgroups: comp.unix.osf.misc If you're using both NIS and enhanced security, the protect password info for NIS users is not in /tcb/files/auth anymore, but combined into one file, /var/yp/src/prpasswd, from which, if you do "make prpasswd" in the /var/yp directory, the relevent database files are created in /var/yp/NIS-DOMAIN-NAME. It's important that you remove all the files in /tcb/files/auth for everybody covered by NIS. You have problems if somebody is in both prpasswd and the /tcb/files/auth files. To remove redundant local files, DEC suggested the following script. #!/usr/bin/ksh -ph ypcat -k prpasswd | cut -d' ' -f1 | while read user ; do let="${user%${user#?}}" file="/tcb/files/auth/$let/$user" [ -f "$file" ] && rm -f "$file" done Assuming that I didn't make a typing error, this script goes through the prpasswd file, checks to see if there is a file in /tcb/files/auth for the same user, and removes it if there is. -- Paul Chapin A) Unix Systems Manager B) User Services Coordinator C) Information Coordinator D) All of the above Amherst College