How to add a user in a group

Add a user in a group
Written by DEL support01
Updated 7 months ago

to add a user to a group you can use the usermod -aG + the group name + the username

Example: sudo usermod -aG devops s5derick

This command will add the user s5derick in the devops group

Did this answer your question?