Call setreuid(euid, euid) in csc-chfn and csc-chsh on setup
[public/pyceo-broken.git] / bin / csc-chsh
index ef0db49..25013a1 100755 (executable)
@@ -55,6 +55,9 @@ def main():
 
     pwuid, pwnam = whoami()
 
+    euid = os.geteuid()
+    os.setreuid(euid, euid)
+
     try:
         options, arguments = getopt.gnu_getopt(sys.argv[1:], 's:')
         new_shell = None