How add UID and GID in Linux?

Linh Chi

New member
How add 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.
 

Tìm kiếm

Back
Top