Make addhomedir call 'nscd -i passwd'
This commit is contained in:
parent
e057560c7d
commit
2025df30a6
|
@ -79,6 +79,7 @@ if not os.path.isdir(cfg['skeleton_dir']):
|
|||
fail("invalid skeleton dir %s" % cfg['skeleton_dir'])
|
||||
|
||||
try:
|
||||
os.execvp("/usr/sbin/nscd", ("/usr/sbin/nscd", "-i", "passwd"))
|
||||
pwent = pwd.getpwnam(username)
|
||||
uid = pwent.pw_uid
|
||||
gid = pwent.pw_gid
|
||||
|
|
Loading…
Reference in New Issue