Commit 0062fda2 authored by Leo Colisson's avatar Leo Colisson Committed by Pierre-Elliott Bécue

[quotas] On met en place l'installation des quotas.

 * C'est fait durant le mkhome, sans utiliser le compte de toto passoir.
parent cd045846
......@@ -55,8 +55,10 @@ club_gid = 120
mailgroup = 8
default_rights = 0755
default_mail_rights = 0700
quota_soft = 16000000
quota_hard = 17000000
quota_soft = 8000000
quota_hard = 10000000
fquota_soft = 0
fquota_hard = 0
# Shell
login_shell='/bin/zsh'
club_login_shell='/usr/bin/rssh'
......
......@@ -144,7 +144,7 @@ class home:
os.symlink(home, symlink)
### Quota
status, output = commands.getstatusoutput('/usr/sbin/edquota -p 4539 %s' % uid )
status, output = commands.getstatusoutput('/usr/sbin/setquota -u %s %s %s %s %s -a' % (uid, config.quota_soft, config.quota_hard, config.fquota_soft, config.fquota_hard) )
if status:
print WARNING
if self.debug:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment