ip namespace non-root shell
- by user2730940
I am trying to run ssh command to another ip namespace. I can do it right now, but it runs as root. I want to run it as a normal user. I want to know if there is a way to enter a non-root shell in another network namespace.
I know you can use this to enter a root shell in another namespace:
sudo ip netns exec <namespace> bash
Alternatively, is there a way to run single commands as a non-root user? I know you can run commands as root with this:
sudo ip netns exec <namespace> <command>