I"m trying to determine if the user is root or not then prompt to become root user;
if os.geteuid() != 0: # If not root user... os.system("gksudo crack.py") # Open root password window else: # Do Nothing if os.geteuid() == 0: # If you are root user... os.system("You are now root!") # Insert code requiring root privileges here else: print("You are still not root. Did you enter the correct password?")
The thing is,
always returns 1000? What value should a root user be and what value should a non root user be?
Edited 5 Years Ago by buster2209: n/a