usermod -aG groupname username
net user username /addgroup:groupname
dsmod group "cn=groupname,cn=users,dc=example,dc=com" -addmbr "cn=username,cn=users,dc=example,dc=com"
adduser username groupname
Sprawdź odpowiedź