Some examples:
|
if os.geteuid() == 0: |
|
log( |
|
"It is not recommended to run bancho.py as root, especially in production..", |
|
Ansi.LYELLOW, |
|
) |
|
|
|
if app.settings.DEVELOPER_MODE: |
|
log( |
|
"The risk is even greater with features " |
|
"such as config.advanced enabled.", |
|
Ansi.LRED, |
|
) |
|
if os.geteuid() == 0: |
|
log( |
|
"Running the server with root privileges is not recommended.", |
|
Ansi.LRED, |
|
) |
|
with open("/proc/cpuinfo") as f: |