Bug 131013 - pw(8) does not update NIS group file
Summary: pw(8) does not update NIS group file
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 6.2-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-26 15:20 UTC by Super Flash
Modified: 2016-12-10 15:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Super Flash 2009-01-26 15:20:04 UTC
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.

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.
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
Comment 1 Baptiste Daroussin freebsd_committer 2016-12-10 15:26:19 UTC
Have been fixed since