tuned-adm: check EUID instead of UID
This commit is contained in:
parent
73239e4d5e
commit
2edd5852cb
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue