# What do \`NB\_UID\` and \`NB\_GID\` mean in \`DockerFile\` in \`docker-stacks-foundation\`?

**URL:** https://discourse.jupyter.org/t/what-do-nb-uid-and-nb-gid-mean-in-dockerfile-in-docker-stacks-foundation/22800
**Category:** JupyterHub
**Created:** [December 8, 2023, 4:01am UTC](https://discourse.jupyter.org/t/what-do-nb-uid-and-nb-gid-mean-in-dockerfile-in-docker-stacks-foundation/22800 "2023-12-08T04:01:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![baiguoname](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/baiguoname/32/11699_2.png) [@baiguoname](https://discourse.jupyter.org/u/baiguoname)
#### Post date: [December 8, 2023, 4:01am UTC](https://discourse.jupyter.org/t/what-do-nb-uid-and-nb-gid-mean-in-dockerfile-in-docker-stacks-foundation/22800/1 "2023-12-08T04:01:41Z")

</div>

There are two `ARG` `NB_UID` and `NB_GID` in the DockerFile of [`docker-stacks-foundation`](https://github.com/jupyter/docker-stacks/blob/c1d212784394ada89acb70cc8390d8cefaf1bef2/images/docker-stacks-foundation/Dockerfile)(in line 12) image. Can I change them so that the user `jovyan` can have all the previleges that root user have?

---

<div class="post-metadata">

### Author: ![baiguoname](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/baiguoname/32/11699_2.png) [@baiguoname](https://discourse.jupyter.org/u/baiguoname)
#### Post date: [December 8, 2023, 8:35am UTC](https://discourse.jupyter.org/t/what-do-nb-uid-and-nb-gid-mean-in-dockerfile-in-docker-stacks-foundation/22800/2 "2023-12-08T08:35:03Z")

</div>

If I need to the user `jovyan` to be able to use the command `chroot`, what should I do? I’ve tried `fakechroot`, `setcap` etc… and still cannot achive my goal. So the only way I thought should be to change the capacity of user `jovyan` through the dockerfile. Anyone can help me?  
Actually, I’m trying to give the user `jovyan` the same privileges as the root user, but it seems more complicated.

---

<div class="post-metadata">

### Author: ![mahendrapaipuri](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/mahendrapaipuri/32/6800_2.png) [@mahendrapaipuri](https://discourse.jupyter.org/u/mahendrapaipuri)
#### Post date: [December 8, 2023, 1:23pm UTC](https://discourse.jupyter.org/t/what-do-nb-uid-and-nb-gid-mean-in-dockerfile-in-docker-stacks-foundation/22800/3 "2023-12-08T13:23:33Z")

</div>

You can add `joyvan` user to `sudoers` file to give root privilesges. Include something like `echo "joyvan ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers` in the image.
