How do I change my UID and GID in Linux?

Vy Bùi

New member
How do I change my UID and GID in Linux?
Answer
The procedure is pretty simple:
  1. Become superuser or get an equivalent role using sudo command/su command.
  2. First, assign a new UID to user using the usermod command.
  3. Second, assign a new GID to group using the groupmod command.
  4. Finally, use the chown and chgrp commands to change old UID and GID respectively.
7 сент. 2019 г.
 

Tìm kiếm

Back
Top