Userland: chroot: Add --userspec/-u flag to set uid/gid for chroot

This commit is contained in:
Brendan Coles 2020-11-14 11:06:49 +00:00 committed by Andreas Kling
commit f8c980a06b
Notes: sideshowbarker 2024-07-19 02:28:03 +09:00
2 changed files with 46 additions and 3 deletions

View file

@ -24,6 +24,12 @@ Mount options can be given in the same format as for [`mount`(8)](mount.md).
/
```
```sh
# chroot -u 200:200 /var/chroot
$ id
uid=200(nona) gid=200(n/a)
```
## See also
* [`chroot`(2)](../man2/chroot.md)