Properly configure home directory for pyLSA user

This commit is contained in:
Sven Slootweg 2013-05-29 19:57:54 +02:00
parent 81127ba283
commit 3f4a1e15d7

View file

@ -86,7 +86,7 @@ def add_user(uname):
grp.seek(0, 2)
setuplib.create_directory("/home/%s" % uname, True, new_uid, new_gid, "u+rwx g+rx")
passwd.write("%s::%d:%d::/home/cvm:/bin/false\n" % (uname, new_uid, new_gid))
passwd.write("%s::%d:%d::/home/pylsa:/bin/false\n" % (uname, new_uid, new_gid))
grp.write("%s::%d:\n" % (uname, new_gid))
# We're done with /etc/passwd and /etc/group