diff --git a/bin/csc-chfn b/bin/csc-chfn index 4b6be80..f723984 100755 --- a/bin/csc-chfn +++ b/bin/csc-chfn @@ -74,6 +74,9 @@ def main(): pwuid, pwnam = whoami() + euid = os.geteuid() + os.setreuid(euid, euid) + gecos_params = {} try: diff --git a/bin/csc-chsh b/bin/csc-chsh index ef0db49..25013a1 100755 --- a/bin/csc-chsh +++ b/bin/csc-chsh @@ -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