0

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.

0

1 Answer 1

2

The useradd command is for adding a new user account. The usermod command is for modifying an existing user account - for example by adding it to a group

usermod -aG group user
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .