Comment 26 for bug 286529

Revision history for this message
Savvas Radevic (medigeek) wrote :

How about this?
from os import remove, mkdir, geteuid, getenv

def isnormal(username):
    #FIXME: Hide active user - bug #286529
    if (getenv('SUDO_USER') and username == getenv('SUDO_USER')) or username == 'root':
        return False