How to create a user namespace in Ubuntu?

I want to create namespaces with and without the privilege and need to study the implications if the namespace creation is restricted only for the privileged users.

How to create a user namespace in Ubuntu 18.04LTS. Which command I should use?

Asked By: Franc M


unshare -U creates a user name space and unshare -n create a network namespace

Answered By: Franc M
Categories: Answers Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.