1
0
Fork 0

- corrected rights

git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@123 a67ec6bc-e5d5-0310-a910-815c51eb3124
This commit is contained in:
Jan Dittberner 2005-09-29 09:45:48 +00:00
parent 8a0c22bdae
commit ff16921bcd

View file

@ -91,9 +91,9 @@ class Domain:
gid = grp.getgrnam(Settings.popgroup)[2] gid = grp.getgrnam(Settings.popgroup)[2]
homedir = Settings.pophome + popaccount homedir = Settings.pophome + popaccount
os.mkdir(homedir, 0660) os.mkdir(homedir, 0755)
os.system("maildirmake \"%s/Maildir\"" % (homedir)) os.system("maildirmake \"%s/Maildir\"" % (homedir))
os.system("chown %s.%s %s" % ( sysuser, Settings.popgroup, homedir )) os.system("chown -R %s.%s %s" % ( sysuser, Settings.popgroup, homedir ))
cr = self.cnx.cursor() cr = self.cnx.cursor()
cr.execute("""INSERT INTO mailpasswd (id, crypt, clear, uid, gid, home) cr.execute("""INSERT INTO mailpasswd (id, crypt, clear, uid, gid, home)