How do I change the GID of a user in Linux?

How do I change the GID of a user in Linux?
Answer
First, assign a new UID to user using the usermod command. Second, assign a new GID to group using the groupmod command. Finally, use the chown and chgrp commands to change old UID and GID respectively. You can automate this with the help of find command.
 

Tìm kiếm

Back
Top