*** allmydata-tahoe-1.8.2-orig/src/allmydata/scripts/runner.py 2011-01-30 18:39:34.000000000 -0600 --- allmydata-tahoe-1.8.2/src/allmydata/scripts/runner.py 2011-05-05 14:38:46.568230462 -0500 *************** *** 1,5 **** --- 1,6 ---- import sys + import os from cStringIO import StringIO from twisted.python import usage *************** *** 89,94 **** --- 90,102 ---- so.stderr = stderr so.stdin = stdin + # This check is not triggered on Windows systems, which is okay for a few reasons (#725) + if hasattr(os, 'geteuid') and os.geteuid() == 0: + print >>stdout, "\n###############################################################" + print >>stdout, "WARNING: You should not be running Tahoe-LAFS as root!" + print >>stdout, "This poses an unnecessary security risk and is NOT recommended." + print >>stdout, "###############################################################\n" + if command in create_dispatch: rc = create_dispatch[command](so, stdout, stderr) elif command in startstop_node.dispatch: