On cree les homes et le repertoire de mail

darcs-hash:20050808071341-d1718-9629445b3e281b89cf531168e5b3cbb85b24166a.gz
This commit is contained in:
bernat 2005-08-08 09:13:41 +02:00
parent 884b56d09d
commit 675cfaccfb

View file

@ -72,14 +72,6 @@ class home:
# Le home n'est pas -bà la bonne personne-A
raise OSError('home existant')
### Mail
try:
os.mkdir(home + '/Mail', 0700)
os.chown(home + '/Mail', int(uid) ,config.gid)
except :
# Pas grave
pass
### Quota
status, output = commands.getstatusoutput('/usr/sbin/edquota -p pauget %s' % login )
if status :
@ -88,6 +80,13 @@ class home:
sys.stderr.write(output+'\n')
else :
print OK
### Mail
os.mkdir(home + '/Mail', 0700)
os.chown(home + '/Mail', int(uid) ,config.gid)
os.mkdir('/var/mail/' + login,0770)
os.chown('/var/mail/' + login, int(uid) ,8)
except :
print ERREUR
if self.debug :