[sysadmin-bin] Check if the SUDO_USER env is there



commit 2d91e4028050f2f5fa45925824fb824413277293
Author: Andrea Veri <av gnome org>
Date:   Fri Oct 3 14:19:20 2014 +0200

    Check if the SUDO_USER env is there

 reset-my-password.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/reset-my-password.py b/reset-my-password.py
index d1fefb2..2db47cb 100755
--- a/reset-my-password.py
+++ b/reset-my-password.py
@@ -15,6 +15,8 @@ from random import choice, randrange
 LDAP_GROUP_BASE='cn=groups,cn=accounts,dc=gnome,dc=org'
 LDAP_USER_BASE='cn=users,cn=accounts,dc=gnome,dc=org'
 
+print os.getenv('USER')
+print os.getenv('SUDO_USER')
 
 file = open('/home/admin/secret/freeipa','r')
 lines = file.readlines()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]