I'm having trouble adding a user to a group:
# useradd -aG group user
# useradd -a -G group user
# useradd -G group user --append
It tells me that the
-a option is an invalid or unrecognized.
Can someone help me add the user to a second group (and not make him belong to it as the primary group)?
Using Fedora 36. Thanks.