addhomedir: invalidate the group table too

We were doing `nscd -i passwd`. Do `nscd -i group`
as well, just for good measure.
This commit is contained in:
Michael Spang 2007-10-05 02:26:53 -04:00
parent 3b21e23249
commit eb94abed9b
1 changed files with 1 additions and 0 deletions

View File

@ -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