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
[-- Attachment #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
[-- Attachment #2 --]
Index: usr.sbin/pw/pw.8
===================================================================
--- usr.sbin/pw/pw.8 (revision 216495)
+++ usr.sbin/pw/pw.8 (working copy)
@@ -713,6 +713,10 @@
are also removed if the user's uid is unique and not also used by another account on the
system.
.Pp
+If the user specified has a user group associated with it, and the group
+membership when removed is just the user, the user group will be automatically
+removed from the group file as well.
+.Pp
The
.Ar usershow
command allows viewing of an account in one of two formats.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikCdRtSmGvW6ht7bTvujHCaqiwnX2Nu__gVMM7B>
