Make sure the script is run as root

/ Published in: Python
Save to your folder(s)

Copy this code and paste it in your HTML
  1. import os
  2. if os.geteuid() != 0:
  3. print "This program must be run as root. Aborting."
  4. sys.exit(1)

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.