[Linux] Ubuntu 7.10 and su or sudo

Robert Citek linux@flux.org
Sun, 13 Jan 2008 21:57:25 -0600


On Jan 13, 2008 12:52 PM, Steven Benmosh <wordz2u@gmail.com> wrote:
> Unfortunately, I already modified the /etc/group file by hand, but I prefer
> the command way, as it is less prone to human error. For example, did you
> know that in addition to the admin group, there is also an adm group... :)
>
> What is the command line way to remove user from a group? Does not seem to
> find it.

As far as I know, it doesn't exist, other than vi or your favorite
editor.  In fact, there are a number of CRUD[1] functions missing from
the tools that manipulate user and group information.  For example,
there's no command to query the members of a group.  Instead, you have
to use grep, sed, or some scripting language.

[1] http://en.wikipedia.org/wiki/Create%2C_read%2C_update_and_delete

Regards,
- Robert