Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Dec 2008 21:18:13 -0500 (EST)
From:      Dan Mahoney <danm@prime.gushi.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/129541: Passwd cannot be forced to "yp" mode in some circumstances.
Message-ID:  <200812100218.mBA2IDt9044935@prime.gushi.org>
Resent-Message-ID: <200812100240.mBA2e1o1060054@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         129541
>Category:       bin
>Synopsis:       Passwd cannot be forced to "yp" mode in some circumstances.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 10 02:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Dan Mahoney
>Release:        FreeBSD 6.4-STABLE i386
>Organization:
Gushi Systems
>Environment:
System: FreeBSD prime.gushi.org 6.4-STABLE FreeBSD 6.4-STABLE #0: Thu Dec 4 13:23:40 EST 2008 danm@prime.gushi.org:/usr/obj/usr/src/sys/PRIME6 i386

>Description:

"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

>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

>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.



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812100218.mBA2IDt9044935>