NSENTER(1) NSENTER(1) nsenter - nsenter [] [ []] nsenter ( ). , ,,${SHELL}" (: /bin/sh). : mount namespace , ( mount --make-shared; /proc/self/mountinfo shared). , mount_namespaces(7) CLONE_NEWNS clone(2). UTS namespace . , uts_namespaces(7). IPC namespace POSIX System V, . , ipc_namespaces(7). network namespace IPv4 IPv6 , IP , , /proc/net /sys/class/net , , . , network_namespaces(7). PID namespace - nsenter . nsenter , . --no-fork, . , pid_namespaces(7). user namespace -, - . , user_namespaces(7). cgroup namespace /proc/self/cgroup-, ,,cgroup" ,,cgroup" . , cgroup_namespaces(7). time namespace CLOCK_MONOTONIC- / CLOCK_BOOTTIME- /proc/self/timens_offsets. , time_namespaces(7). . /proc/[pid]/ns/* namespaces(7), . -a, --all /proc/[pid]/ns/* . (., --all --mount=[path]). . ,,setns()"-. setns(2) . -t, --target . - : /proc/pid/ns/mnt /proc/pid/ns/uts UTS /proc/pid/ns/ipc IPC /proc/pid/ns/net /proc/pid/ns/pid PID /proc/pid/ns/user /proc/pid/ns/cgroup - /proc/pid/ns/time /proc/pid/root /proc/pid/cwd -m, --mount[=file] . , . , . -u, --uts[=file] UTS . , UTS . , UTS . -i, --ipc[=file] IPC . , IPC . , IPC . -n, --net[=file] . , . , . -N, --net-socket fd Enter the network namespace of the target process's socket. It requires --target process specified. Supported since Linux 5.6. -p, --pid[=file] PID . , PID . , PID . -U, --user[=file] . , . , . --setuid --setgid. --user-parent . . --user . -C, --cgroup[=file] ,,cgroup"-. , ,,cgroup"- . , ,,cgroup"- . -T, --time[=file] . , . , . -G, --setgid . nsenter , 0. ,,follow" , . -S, --setuid . nsenter , 0. ,,follow" , . --keep-caps --user , . --preserve-credentials . 0. -r, --root[=directory] . , . , . . -w, --wd[=directory] . , . , . , ,," . --wdns. -W, --wdns[=directory] . chroot(2) . --wd --wdns . -e, --env . , . -F, --no-fork . , , nsenter fork exec . -Z, --follow-context --target -. (,,util-linux" .) -c, --join-cgroup . -h, --help . -V, --version Display version and exit. --user-parent 4.9 , ,,ioctl" . Eric Biederman , Karel Zak clone(2), setns(2), namespaces(7) For bug reports, use the issue tracker . nsenter ,,util-linux" . util-linux 2.41 2025-03-29 NSENTER(1)