1 .\" Process this file with
2 .\" groff -man -Tascii lscpu.1
4 .TH UNSHARE 1 "OCTOBER 2008" Linux "User Manuals"
6 unshare \- run program with some namespaces unshared from parent
13 Unshares specified namespaces from parent process and then executes specified
14 program. Unshareable namespaces are:
17 mounting and unmounting filesystems will not affect rest of the system
18 (\fBCLONE_NEWNS\fP flag),
21 setting hostname, domainname will not affect rest of the system
22 (\fBCLONE_NEWUTS\fP flag),
25 process will have indpendent namespace for System V message queues, semaphore
26 sets and shared memory segments (\fBCLONE_NEWIPC\fP flag),
28 .BR "network namespace"
29 process will have independent IPv4 and IPv6 stacks, IP routing tables, firewall
30 rules, the \fI/proc/net\fP and \fI/sys/class/net\fP directory trees, sockets
31 etc. (\fBCLONE_NEWNET\fP flag).
33 See the clone(2) for exact semantics of the flags.
39 .BR \-m , " \-\-mount"
40 Unshare the mount namespace,
43 Unshare the UTC namespace,
46 Unshare the IPC namespace,
49 Unshare the network namespace.
55 Mikhail Gusarov <dottedmag@dottedmag.net>
57 The unshare command is part of the util-linux-ng package and is available from
58 ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.