diff options
author | Chris Lumens <clumens@redhat.com> | 2008-03-13 15:22:21 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-03-13 15:24:59 -0400 |
commit | 169b3a293dc5cbabff289e3fc719a2ffbadbc95c (patch) | |
tree | 41bebab38cb3811683c50bf5a840e5ad8c9cb7fb /users.py | |
parent | 34a27257e96e99559c4b3c1571368745dc5bcf50 (diff) | |
download | anaconda-169b3a293dc5cbabff289e3fc719a2ffbadbc95c.tar.gz anaconda-169b3a293dc5cbabff289e3fc719a2ffbadbc95c.tar.xz anaconda-169b3a293dc5cbabff289e3fc719a2ffbadbc95c.zip |
Fix creating new users in kickstart.
Diffstat (limited to 'users.py')
-rw-r--r-- | users.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -80,10 +80,6 @@ class Users: def __init__ (self): self.admin = libuser.admin() - def reset(self): - os.unsetenv("LIBUSER_CONF") - self.admin = libuser.admin() - def createUser (self, name=None, password=None, isCrypted=False, groups=[], homedir=None, shell=None, uid=None, algo=None, lock=False, root="/mnt/sysimage"): @@ -92,6 +88,9 @@ class Users: if not childpid: os.chroot(root) + del(os.environ["LIBUSER_CONF"]) + self.admin = libuser.admin() + try: if self.admin.lookupUserByName(name): os._exit(1) |