On 2011-03-21, Steve Clarke <mailinglis...@trumpton.org.uk> wrote:
> I have read on the hindernet, that to remove a user from a group,
> you simply run usermod -G, and omit the group that you want the
> user to be removed from.  These posts are often associated with
> HPUX and Solaris.
>
> The same does not work with OpenBSD, and on looking into the code
> (user.c), it is clear that the functionality to remove users from a group is
> simply not there.
>
> This issue has been around for 10 years (see the following links):
>
> http://marc.info/?l=openbsd-misc&m=109088617022480&w=2
> http://marc.info/?l=tru64-unix-managers&m=97203990632722&w=2
>
> I am looking for the ability to remove users from groups, and I am quite
> capable of modifying user.c to provide compatibility, but there may be a
> better way ...
>
> My questions are:
>
> 1. Is there a different application which can be used to remove users
>     from secondary groups? (I'd like to automate, so vi isn't an option)?

I am fairly sure we don't have anything to do that.

> 2. Should the -G switch be used to remove users from groups so the
>    operation is consistent with that of HPUX and Solaris.

That makes sense to me.

> 3. What is the ettiquette for agreeing an additional functionality, and
>     submitting patches, once I've made the user.c modifications?

The best way is to send a diff to tech@ (cvs diff -u, inline in a
plaintext email body).

Reply via email to