summaryrefslogtreecommitdiffstats
path: root/users.py
diff options
context:
space:
mode:
authorRadek Vykydal <rvykydal@redhat.com>2009-03-10 14:47:19 +0100
committerRadek Vykydal <rvykydal@redhat.com>2009-03-13 11:02:16 +0100
commit21d78083b41826d6e2e50e16838295ffd7525d3d (patch)
tree8787ae38d4747026ade72ddaf454eed71c151f04 /users.py
parentd08a9fd45b12f67d2fa96175d262d38da479bffd (diff)
downloadanaconda-21d78083b41826d6e2e50e16838295ffd7525d3d.tar.gz
anaconda-21d78083b41826d6e2e50e16838295ffd7525d3d.tar.xz
anaconda-21d78083b41826d6e2e50e16838295ffd7525d3d.zip
Add created user to default group created for the user.
Documentation for ks option user says (--groups option) that user is added to default group, but we've been only setting the default group as user's primary group.
Diffstat (limited to 'users.py')
-rw-r--r--users.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/users.py b/users.py
index 3f5d73538..4d2e1a5dd 100644
--- a/users.py
+++ b/users.py
@@ -129,6 +129,7 @@ class Users:
self.admin.lockUser(userEnt)
# Add the user to all the groups they should be part of.
+ grpLst.append(self.admin.lookupGroupByName(name))
for grp in grpLst:
grp.add(libuser.MEMBERNAME, name)
self.admin.modifyGroup(grp)