On Fri, Nov 03, 2023 at 11:27:43PM +0100, boffi wrote:
> $ man addgroup # says
> ...
> 
>    Add an existing user to an existing group
>        If called with two non-option arguments, adduser will add  an  existing
>        user to an existing group.

adduser and addgroup share a man page, and the two-argument form is only
supported for adduser, not for addgroup, see SYNOPSIS in the manual
page.

And the text you quoted explicitly says that it is add_user_ that will
add an existing user to an existing group.

> but when I try to add a user to a group, this is what it happens
> 
> $ sudo addgroup donald ducks
> [sudo] password for boffi: 
> fatal: addgroup with two arguments is an unspecified operation.
> $ 

The message is correct, it is an unspecified operation according to the
SYNOPSIS.

Let me know what we can improve, but I think that everything is fine
here.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

Reply via email to