2020-11-01 15:27:37 +01:00
|
|
|
# chroot
|
|
|
|
|
2025-05-02 22:44:08 +02:00
|
|
|
> Voer een commando of interactieve shell uit met een speciale hoofdmap.
|
2024-12-12 09:54:34 -08:00
|
|
|
> Meer informatie: <https://www.gnu.org/software/coreutils/manual/html_node/chroot-invocation.html>.
|
2020-11-01 15:27:37 +01:00
|
|
|
|
2025-05-02 22:44:08 +02:00
|
|
|
- Voer het commando uit als nieuwe hoofdmap:
|
2020-11-01 15:27:37 +01:00
|
|
|
|
2025-05-02 22:44:08 +02:00
|
|
|
`sudo chroot {{pad/naar/nieuwe/hoofdmap}} {{commando}}`
|
2020-11-01 15:27:37 +01:00
|
|
|
|
2025-05-02 22:44:08 +02:00
|
|
|
- Gebruik een specifieke gebruiker en groep:
|
2020-11-01 15:27:37 +01:00
|
|
|
|
2025-05-02 22:44:08 +02:00
|
|
|
`sudo chroot --userspec {{gebruikersnaam_of_id:groep_naam_of_id}}`
|