mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
Userland: chroot: Add --userspec
/-u
flag to set uid/gid for chroot
This commit is contained in:
parent
677af891b4
commit
f8c980a06b
Notes:
sideshowbarker
2024-07-19 02:28:03 +09:00
Author: https://github.com/bcoles
Commit: f8c980a06b
Pull-request: https://github.com/SerenityOS/serenity/pull/4080
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