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:
parent
3b21e23249
commit
eb94abed9b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue