Bug 129541

Summary: [nis] passwd(1) cannot be forced to "yp" mode in some circumstances.
Product: Base System Reporter: Dan Mahoney <danm>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me    
Priority: Normal    
Version: 6.4-STABLE   
Hardware: Any   
OS: Any   

Description Dan Mahoney 2008-12-10 02:40:01 UTC
"passwd" cannot be forced to NIS unless the machine is configured to use NIS for its own password file.

prime# passwd -y -d gushi-systems -h prime.gushi.org sdk
Changing local password for sdk
New Password:

(n

Fix: 

None known.  This is an edge case, but it's feasibly possible that a server
could want to serve NIS without itself participating in it (via map files 
separate from its own).  Since ypcat and the like all still work, passwd
should (at least when forced) pick up similar hueristics.
How-To-Repeat: 
Configure a server as an NIS master server, populate the maps, but do not
add the +:::::::: to /etc/passwd :

prime# ypcat master.passwd.byname|grep sdk
sdk:$1$1WZHl5y0$EjTF/5oH/4tiPJ2.ofGPn1:1084:1084::0:0:Xial Lunashine,,,8138326399:/home/sdk:/usr/local/bin/bash
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:33 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped