2022-04-03 00:19:56 +02:00
|
|
|
# unshare
|
|
|
|
|
|
|
|
> Execute a command in new user-defined namespaces.
|
2025-03-28 16:06:49 +02:00
|
|
|
> More information: <https://manned.org/unshare>.
|
2022-04-03 00:19:56 +02:00
|
|
|
|
|
|
|
- Execute a command without sharing access to connected networks:
|
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`unshare {{[-n|--net]}} {{command}} {{command_arguments}}`
|
2022-04-03 00:19:56 +02:00
|
|
|
|
|
|
|
- Execute a command as a child process without sharing mounts, processes, or networks:
|
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`unshare {{[-m|--mount]}} {{[-i|--pid]}} {{[-n|--net]}} {{[-f|--fork]}} {{command}} {{command_arguments}}`
|