1
0
Fork 0

tuned-adm: check EUID instead of UID

This commit is contained in:
Jaroslav Škarvada 2012-10-19 17:07:25 +02:00
parent 73239e4d5e
commit 2edd5852cb

View file

@ -50,7 +50,7 @@ class Tuned_adm:
sys.exit(exit_code)
def check_permissions(self):
if not os.getuid() == 0:
if not os.geteuid() == 0:
self.error("Only root can run this script.", 2)
def run(self, args):