[quotas] On met en place l'installation des quotas.
* C'est fait durant le mkhome, sans utiliser le compte de toto passoir.
This commit is contained in:
parent
cd04584618
commit
0062fda2a0
2 changed files with 5 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue