From corbesero@ptd.net  Mon Jan 26 15:19:45 2009
Return-Path: <corbesero@ptd.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1247E1065692
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Jan 2009 15:19:45 +0000 (UTC)
	(envelope-from corbesero@ptd.net)
Received: from pm10.mailnet.ptd.net (pm10.mailnet.ptd.net [204.186.29.232])
	by mx1.freebsd.org (Postfix) with ESMTP id ABBEB8FC1D
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Jan 2009 15:19:44 +0000 (UTC)
	(envelope-from corbesero@ptd.net)
Received: (qmail 14544 invoked by uid 50005); 26 Jan 2009 14:53:04 -0000
Received: from 70.15.4.195.res-cmts.sm.ptd.net by pm10.mailnet.ptd.net (envelope-from <corbesero@ptd.net>, uid 50002) with qmail-scanner-2.02 
 (clamdscan: 0.94.2/8877.  
 Clear:RC:1(70.15.4.195):. 
 Processed in 0.026122 secs); 26 Jan 2009 14:53:04 -0000
Received: from 70.15.4.195.res-cmts.sm.ptd.net (HELO ptd.net) (authenticated:corbesero@[70.15.4.195])
          (envelope-sender <corbesero@ptd.net>)
          by pm10.mailnet.ptd.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP
          for <FreeBSD-gnats-submit@freebsd.org>; 26 Jan 2009 14:53:04 -0000
Received: from gimli.corbesero.net (localhost [127.0.0.1])
	by corbesero.net (8.14.2/8.14.1) with ESMTP id n0QEr2X3094356
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Jan 2009 09:53:02 -0500 (EST)
	(envelope-from flashr@gimli.corbesero.net)
Received: (from root@localhost)
	by gimli.corbesero.net (8.14.2/8.14.1/Submit) id n0QEr2sD094355;
	Mon, 26 Jan 2009 09:53:02 -0500 (EST)
	(envelope-from flashr)
Message-Id: <200901261453.n0QEr2sD094355@gimli.corbesero.net>
Date: Mon, 26 Jan 2009 09:53:02 -0500 (EST)
From: Super Flash <corbesero@ptd.net>
Reply-To: Super Flash <corbesero@ptd.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: pw does not update NIS group file
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         131013
>Category:       bin
>Synopsis:       pw(8) does not update NIS group file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 26 15:20:04 UTC 2009
>Closed-Date:    
>Last-Modified:  Mon Jan 26 23:30:08 UTC 2009
>Originator:     Stephen Corbesero
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
personal
>Environment:
System: FreeBSD gimli.corbesero.net 6.2-STABLE FreeBSD 6.2-STABLE #0: Tue Oct 2 08:47:21 EDT 2007 flashr@gimli.corbesero.com:/usr/obj/usr/src/sys/GIMLI i386


>Description:

The pw utility has the option (via pw.conf) to specify the location of
nis (master) passswd file so that user additions are mirrored to this
file.  However, no equivalent feature for groups exists.  In my
opinion, when pw makes a group, that entry should get mirrored to the
nis group file.


>How-To-Repeat:

    add "nispasswd /var/yp/master.passwd" to /etc/pw.conf

    add a user via pw or adduser

    see that /etc/master.passwd, /etc/group, and /var/yp/master.passwd
    have all been updated, but not //var/yp/etc/group


>Fix:

a work around is to run a scriotfater pw or adduser to copy the group
entry over. or, atthe risk of some security, use the /etc/group file
as the nis group file.





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