This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
технология_namespaces [2017/12/05 09:14] val |
технология_namespaces [2024/04/26 10:45] (current) val |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| <code> | <code> | ||
| - | # unshare --mount --ipc --pid --mount-proc=/proc --fork su -l user1 | + | # lsns |
| + | |||
| + | # ls /proc | ||
| + | # ps ax | ||
| + | |||
| + | # man unshare | ||
| + | |||
| + | # unshare --pid --mount-proc=/proc --fork bash | ||
| + | или | ||
| + | # unshare --pid --mount-proc=/proc --fork su -l user1 | ||
| + | |||
| + | $ ls /proc | ||
| + | $ ps ax | ||
| + | |||
| + | <Ctrl D> | ||
| + | |||
| + | # unshare --net --user --fork bash | ||
| + | |||
| + | $ id | ||
| + | |||
| + | $ ps aux | ||
| + | |||
| + | $ ip l | ||
| </code> | </code> | ||