From: pdchapin@news.amherst.edu (PAUL D. CHAPIN)
Subject: Re: NIS--Still can not login
Date: 1995/09/14 [thread overview]
Message-ID: <439oa6$g7l@amhux3.amherst.edu> (raw)
In-Reply-To: Pine.D-G.3.91.950914092059.15225B-100000@mucc.mahidol.ac.th
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
next prev parent reply other threads:[~1995-09-14 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9509131705.AA04571@perutz.salk.edu>
1995-09-14 4:00 ` NIS--Still can not login Songsri Tangsripairoj - CC
1995-09-14 4:00 ` PAUL D. CHAPIN [this message]
1995-09-01 4:00 Songsri Tangsripairoj - CC
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox