Synology: How to Find UID (userID) and GID (groupID)

Synology How to Find UID (userID) and GID (groupID)

A UID (user identifier) is a number assigned by Synology DSM to each user on the system. This number is used to identify the user to the system and to determine which system resources the user can access. Groups in Synology DSM are defined by GIDs (group IDs). Just like with UIDs, the first 100 GIDs are usually reserved for system use. The GID of 0 corresponds to the root group and the GID of 100 usually represents the users group.

New Article: Find PUID and PGID values without terminal

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

SSH into your Synology NAS using your user and password. When you are logged into the NAS with the user you want the ID for, just type id then press Enter.

Now you’ll get something like this: uid=1026(your_nas_user) gid=100(users) groups=100(users), 101(administrators), 1023(http). Follow the instructions in the image below:

SSH Synology NAS PUID value and PGID value

Note: This information is useful and you may need it, for example, when using certain Docker containers. PUID values and PGID values are sometimes requested as Environment Variables for different Docker containers.
Note: These values often dictate the user/group that the Docker container will be running as. So if the Docker container accesses a specific drive share, with specific permissions, then the PUID and PGID values will specify the user/group that will be used by the Docker container. (Note added by Matthew Petersen).

This post was updated on Friday / October 16th, 2020 at 11:25 PM