From eb94abed9bb45e87c3630533bb38ae57ff5ca40c Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Fri, 5 Oct 2007 02:26:53 -0400 Subject: [PATCH] addhomedir: invalidate the group table too We were doing `nscd -i passwd`. Do `nscd -i group` as well, just for good measure. --- bin/addhomedir | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/addhomedir b/bin/addhomedir index 8873328..9367ea1 100755 --- a/bin/addhomedir +++ b/bin/addhomedir @@ -80,6 +80,7 @@ if not os.path.isdir(cfg['skeleton_dir']): try: os.spawnvp(os.P_WAIT, "/usr/sbin/nscd", ("/usr/sbin/nscd", "-i", "passwd")) + os.spawnvp(os.P_WAIT, "/usr/sbin/nscd", ("/usr/sbin/nscd", "-i", "group")) pwent = pwd.getpwnam(username) uid = pwent.pw_uid gid = pwent.pw_gid