Why do unshare can't run bash?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I am using Arch Linux, and trying to do some experiments about linux namespace.I use the following command but doesn't get bash to work.
xtricmanâÂÂArchVirtualâºï¸Â~ð¤Âunshare -muinpUC --propagation slave --setgroups deny /usr/bin/bash
Could not get property: Access denied
nobodyâÂÂâºï¸Â~ð¤Âls
bash: fork: Cannot allocate memory
nobodyâÂÂâºï¸Â~ð¤Â
Then No external commands can be run by the shell, could anybody explain the reason to me?
linux namespace unshare
add a comment |Â
up vote
0
down vote
favorite
I am using Arch Linux, and trying to do some experiments about linux namespace.I use the following command but doesn't get bash to work.
xtricmanâÂÂArchVirtualâºï¸Â~ð¤Âunshare -muinpUC --propagation slave --setgroups deny /usr/bin/bash
Could not get property: Access denied
nobodyâÂÂâºï¸Â~ð¤Âls
bash: fork: Cannot allocate memory
nobodyâÂÂâºï¸Â~ð¤Â
Then No external commands can be run by the shell, could anybody explain the reason to me?
linux namespace unshare
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am using Arch Linux, and trying to do some experiments about linux namespace.I use the following command but doesn't get bash to work.
xtricmanâÂÂArchVirtualâºï¸Â~ð¤Âunshare -muinpUC --propagation slave --setgroups deny /usr/bin/bash
Could not get property: Access denied
nobodyâÂÂâºï¸Â~ð¤Âls
bash: fork: Cannot allocate memory
nobodyâÂÂâºï¸Â~ð¤Â
Then No external commands can be run by the shell, could anybody explain the reason to me?
linux namespace unshare
I am using Arch Linux, and trying to do some experiments about linux namespace.I use the following command but doesn't get bash to work.
xtricmanâÂÂArchVirtualâºï¸Â~ð¤Âunshare -muinpUC --propagation slave --setgroups deny /usr/bin/bash
Could not get property: Access denied
nobodyâÂÂâºï¸Â~ð¤Âls
bash: fork: Cannot allocate memory
nobodyâÂÂâºï¸Â~ð¤Â
Then No external commands can be run by the shell, could anybody explain the reason to me?
linux namespace unshare
linux namespace unshare
asked 4 mins ago
ç¥Âç§Âå¾·éÂÂå Â
315112
315112
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f477183%2fwhy-do-unshare-cant-run-bash%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password