11 lines
204 B
Python
11 lines
204 B
Python
import os
|
||
import sys
|
||
|
||
|
||
def check_root():
|
||
if os.geteuid() != 0:
|
||
print("Запустите скрипт с правами суперпользователя")
|
||
sys.exit(1)
|
||
|
||
|
||
check_root()
|