Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jan 2011 16:51:43 -0800
From:      Garrett Cooper <gcooper@FreeBSD.org>
To:        freebsd-hackers@freebsd.org
Subject:   [PATCH] document automatic user group removal via pw userdel
Message-ID:  <AANLkTikCdRtSmGvW6ht7bTvujHCaqiwnX2Nu__gVMM7B@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--0016e6de03be7c56f804994b2322
Content-Type: text/plain; charset=ISO-8859-1

Hi Hackers,
    The following is a really short patch commit request for updating
the manpage documentation for pw(8) to note that if I do the
following:

    pw user add foo
    pw user del foo

    It will remove the group foo, but if I do the following:

    pw user add foo
    pw user add bar -G foo
    pw user del foo

    It will retain the foo user group as the membership is non-zero.
This behavior is intuitive, but undocumented in the manpage as it
stands.
    Credits go to Karl Schumaker @ IronPort for the find.
Thanks,
-Garrett

--0016e6de03be7c56f804994b2322
Content-Type: text/x-patch; charset=US-ASCII; 
	name="pw-document-automatic-group-removal.patch"
Content-Disposition: attachment; 
	filename="pw-document-automatic-group-removal.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_ginstuq30

SW5kZXg6IHVzci5zYmluL3B3L3B3LjgKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gdXNyLnNiaW4vcHcvcHcuOAko
cmV2aXNpb24gMjE2NDk1KQorKysgdXNyLnNiaW4vcHcvcHcuOAkod29ya2luZyBjb3B5KQpAQCAt
NzEzLDYgKzcxMywxMCBAQAogYXJlIGFsc28gcmVtb3ZlZCBpZiB0aGUgdXNlcidzIHVpZCBpcyB1
bmlxdWUgYW5kIG5vdCBhbHNvIHVzZWQgYnkgYW5vdGhlciBhY2NvdW50IG9uIHRoZQogc3lzdGVt
LgogLlBwCitJZiB0aGUgdXNlciBzcGVjaWZpZWQgaGFzIGEgdXNlciBncm91cCBhc3NvY2lhdGVk
IHdpdGggaXQsIGFuZCB0aGUgZ3JvdXAKK21lbWJlcnNoaXAgd2hlbiByZW1vdmVkIGlzIGp1c3Qg
dGhlIHVzZXIsIHRoZSB1c2VyIGdyb3VwIHdpbGwgYmUgYXV0b21hdGljYWxseQorcmVtb3ZlZCBm
cm9tIHRoZSBncm91cCBmaWxlIGFzIHdlbGwuCisuUHAKIFRoZQogLkFyIHVzZXJzaG93CiBjb21t
YW5kIGFsbG93cyB2aWV3aW5nIG9mIGFuIGFjY291bnQgaW4gb25lIG9mIHR3byBmb3JtYXRzLgo=
--0016e6de03be7c56f804994b2322--



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