How do I change a secondary group in Linux?

How do I change a secondary group in Linux?
Answer
The syntax for the usermod command is:
usermod -a -G groupname username. Let’s break down this syntax: The -a flag tells usermod to add a user to a group. The -G flag specifies the name of the secondary group to which you want to add the user.
 

Tìm kiếm

Back
Top