Return to Snippet

Revision: 38776
at January 7, 2011 12:07 by galaxstar


Initial Code
import os
if os.geteuid() != 0:
    print "This program must be run as root. Aborting."
    sys.exit(1)

Initial URL

                                

Initial Description

                                

Initial Title
Make sure the script is run as root

Initial Tags
linux

Initial Language
Python