From 12fea0f6d54b410e4fad4de6433c0a8daaebeee2 Mon Sep 17 00:00:00 2001 From: Brandon Heller Date: Tue, 13 Nov 2012 21:33:44 -0800 Subject: [PATCH] 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 :-) --- examples/baresshd.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/baresshd.py b/examples/baresshd.py index 3b616d1..a714edb 100755 --- a/examples/baresshd.py +++ b/examples/baresshd.py @@ -3,6 +3,9 @@ "This example doesn't use OpenFlow, but attempts to run sshd in a namespace." from mininet.node import Host +from mininet.util import ensureRoot + +ensureRoot() print "*** Creating nodes" h1 = Host( 'h1' )