Do you remember my article where I explained how to find your NAS user ID (PUID) and group ID (PGID)? In said article, you needed to use some terminal commands to find these values. Many of you have asked me if there is a method to find these values without having to use the terminal. In today’s article I will explain how to discover what are your NAS user ID (PUID) and group ID (PGID) without the need to use the terminal. And it will only take you 5 seconds :-).
Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the image below.
Once you click on User-defined script, a new window will open. Follow the instructions below:
- General: In the Task field type in “id“. Uncheck the “Enabled” option and select your current NAS user from the drop-down menu.
- Schedule: Select Run on the following date, then select “Do not repeat“.
- Task Settings: Check “Send run details by email“, add your email then copy paste the code below in the Run command area. After that click OK.
Note: Be careful enter only lowercase, not uppercase letters. id not ID.
After you click OK on STEP 3, select your “ID” Task then click the “Run” tab. You will be asked to run ID – click Yes. Follow the instructions in the image below.
If you have correctly followed all the steps described above, you will receive an email with the user id and group id values.
Note: Remember to add your email address at STEP 3.
Note: In the Task field at STEP 3 type in id and remember to use only lower case letter not upper case.
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: You can save and run this task whenever you need it.
This post was updated on Monday / January 18th, 2021 at 9:55 AM