mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
Userland: chroot: Add --userspec
/-u
flag to set uid/gid for chroot
This commit is contained in:
parent
677af891b4
commit
f8c980a06b
2 changed files with 46 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue