User management

To show all users with userid (uid) and groupid (gid): cat /etc/passwd

To show uid and gid for a particular user: id username

To change the user id and group id for username:

# sudo usermod -u uid username
# sudo groupmod -g gid groupname
5 / 2025