1

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?

mpb
  • 1,277
  • 15
  • 18
  • The question title is contradicted by the body, which clearly shows the Bourne Again shell running, chained-to from `unshare`. – JdeBP Oct 23 '18 at 06:55

1 Answers1

0

Perhaps you need run unshare with -f?

See: unshare --pid /bin/bash - fork cannot allocate memory

mpb
  • 1,277
  • 15
  • 18