ip namespace non-root shell

Posted by user2730940 on Super User See other posts from Super User or by user2730940
Published on 2013-10-24T21:14:37Z Indexed on 2013/10/25 4:00 UTC
Read the original article Hit count: 608

Filed under:
|
|
|

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>

© Super User or respective owner

Related posts about linux

Related posts about shell