Hi,

Am 1. Mai 2025 10:56:16 MESZ schrieb g1 <g...@libero.it>:
>
>The command
>    $ sudo usermod -a -G foo netdev
>tries to add user "netdev" to group "foo", and is bound to fail.
>
>The correct syntax for adding user <user> to (supplementary) group <group> is
>    # usermod -a -G <group> <user>

The text says
"Make desktop user, e.g. foo, belong to group "netdev" by the following:"

So you are right, the example is wrong, the <user>  argument has to be the last 
one, like this:


- $ sudo usermod -a -G foo netdev
+ $ sudo usermod -a -G netdev foo



Holger





-- 
Sent from /e/ OS on Fairphone3

Reply via email to