examples/baresshd: ensure root permissions
Prevent idiots like me from getting confused by non-obvious 'broken pipe' errors when they forget to put 'sudo' in front :-)
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
"This example doesn't use OpenFlow, but attempts to run sshd in a namespace."
|
"This example doesn't use OpenFlow, but attempts to run sshd in a namespace."
|
||||||
|
|
||||||
from mininet.node import Host
|
from mininet.node import Host
|
||||||
|
from mininet.util import ensureRoot
|
||||||
|
|
||||||
|
ensureRoot()
|
||||||
|
|
||||||
print "*** Creating nodes"
|
print "*** Creating nodes"
|
||||||
h1 = Host( 'h1' )
|
h1 = Host( 'h1' )
|
||||||
|
|||||||
Reference in New Issue
Block a user