[Adduser-devel] Bug#468152: Bug#468152: adduser: Parameter --ingroup does not work

Stephen Gran sgran at debian.org
Wed Feb 27 11:25:16 UTC 2008


This one time, at band camp, Daniel Migowski said:
> 
> Parameter --ingroup simply does not work. To test, invoke adduser like this:
> 
>   adduser peter --ingroup cdrom
> 
> I assume, a "cat /etc/group | grep cdrom" should bring something like this:
> 
>   cdrom:x:24:peter
> 
> and not this:
> 
>   cdrom:x:24:

The --ingroup option affects what the user's 'primary' group is - this
information is stored in the passwd file, not the groups file.  So,
getent passwd peter should return that he is in group 24, or cdrom.

> If I am wrong, then this is a bugreport for uncomprehensible documentation,
> since this says:
> 
>   --ingroup GROUP
>         Add  the new user to GROUP instead of a usergroup or the default
>         group defined by USERS_GID in the adduser.conf file.
> 
> And i wonder, what differs "GROUP" from "a usergroup", btw.

It is sort of an arbitrary way of thinking about it, it's true.  The
split is:
peter has some admin defined group as primary (cdrom)
peter has a primary group same as username (peter - this is a usergroup)
peter has the same primary group as all other users (group users)

Does that help?  Or do you have a better wording for the documentation?

Cheers,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran at debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20080227/085029c7/attachment.pgp 


More information about the Adduser-devel mailing list