1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:17:35 +00:00

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
parent 677af891b4
commit f8c980a06b
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)