--- modules/create_user.py | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/modules/create_user.py b/modules/create_user.py index d1b9365..d80ad01 100644 --- a/modules/create_user.py +++ b/modules/create_user.py @@ -25,6 +25,7 @@ import pwd import unicodedata import re import shutil +import subprocess from firstboot.config import * from firstboot.constants import * @@ -234,6 +235,9 @@ class moduleClass(Module): os.path.walk("/home/%s" % username, self._chown, (uidNumber, gidNumber)) + # selinux context + subprocess.call(['restorecon', '-R', '/home/%s' % username]) + # copy skel files for fname in os.listdir("/etc/skel"): dst = "/home/%s/%s" % (username, fname) -- 1.7.5.4 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list