“Sandbox” error starting Shift on Linux

Shift, which runs on the Electron framework, uses Linux userspace sandboxing; however, some Linux OS's doesn't allow unprivileged users to create namespaces. Then the Electron application will fail to run and tell the user to run it with the --no-sandbox flag.

To solve the issue, run the following command to enable user namespaces.

For Debian and Ubuntu:

`echo 'kernel.unprivileged_userns_clone=1' > /etc/sysctl.d/00-local-userns.conf`
`service procps restart`

For CentOS or RHEL:

`echo 10000 > /proc/sys/user/max_user_namespaces`

  • 207
  • 22-Apr-2020