How to Add a Linux User to a Group

View User Groups:

cat /etc/group

Adding:
useradd  user1   #Add a new user
usermod -a -G groupA user1  #Add user1 to the groupA group.

Leave a Comment

Your email address will not be published.