diff --git a/bin/CryptoBoxRootActions b/bin/CryptoBoxRootActions index d72f509..05c80d7 100755 --- a/bin/CryptoBoxRootActions +++ b/bin/CryptoBoxRootActions @@ -399,9 +399,9 @@ def getCallingUserInfo(): @return: tuple of (name, uid, (groups)) """ ## are we called via 'super'? - if ("SUPERCMD" in os.environ) and ("USER" in os.environ): + if ("SUPERCMD" in os.environ) and ("ORIG_USER" in os.environ): ## return the user that was calling super - return getUserInfo(os.environ["USER"]) + return getUserInfo(os.environ["ORIG_USER"]) else: ## return the current user return getUserInfo(os.getuid())