/ Published in: Python
Expand |
Embed | Plain Text
import os if os.geteuid() != 0: print "This program must be run as root. Aborting." sys.exit(1)
You need to login to post a comment.
galaxstar on 01/07/11
1 person have marked this snippet as a favorite
import os if os.geteuid() != 0: print "This program must be run as root. Aborting." sys.exit(1)
You need to login to post a comment.