Re: SUMMARY: Problems with passwd map in NIS (or YP)

From: Pat Monardo (pjm@cshl.org)
Date: Thu May 21 1992 - 21:17:03 CDT


In article <581@ariadna.FibHaifa.com> ricky@FibHaifa.com writes:
>
>Hi,
>
>Here is the Summary I Promissed:
>
>First Question:
>>
>> Users want to change their own passwd via yppasswd ( or passwd -y)
>> but maps are not made.. (make in /usr/etc/rpc.yppasswdd fails)
>> started on /etc/rc.local.

actually the thing i do has ALWAYS worked very well.
the key is to NOT put local user accounts in /etc/passwd.
what i do is put them in /etc/quest (my domain).
i change the Makefile in /var/yp to use /etc/quest rather
then /etc/passwd (for passwd map of course). i dont need accounts
from /etc/passwd because those are local "system access" accounts and
they override NIS. i then put this in rc.local:

#
# allow user yp password changes
#
if [ -f /usr/etc/rpc.yppasswdd ]; then
        /usr/etc/rpc.yppasswdd /etc/quest -m passwd &&
        echo -n ' yppasswdd'
fi

and this allows users to use the "passwd" command to change passwords
because it will never find the username in /etc/passwd (it aint kept
there, remember) and it will know that it needs to change NIS passwd,
which it does, and propagates as well.

Hope this helps,

-- 
-- Pat Monardo
-- pjm@cshl.org



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:42 CDT