Commit ab855278 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue
Browse files

[daath/nfs] Alias nfs créé pour réduire la dépendance au nom, et ln -s /home-adh /home

parent 393d27f9
......@@ -110,9 +110,6 @@ class home:
except ValueError:
home, uid, login = args.split(',')
mail_redirect = None
# Kludge pour daath (nfs) normalement inutile
if home.startswith('/home/') and hostname == "daath":
home = "/home-adh/" + home[6:]
### Home
if not os.path.exists(home):
# Le home n'existe pas
......
......@@ -890,7 +890,7 @@ class firewall_komaz(firewall_base_routeur):
#Classe des decos upload
tc('class add dev %s parent 1:2 classid 1:11 '
'htb rate 40kbps ceil 40kbps prio 1' % dev['out'])
'htb rate 30kbps ceil 30kbps prio 1' % dev['out'])
tc('qdisc add dev %s parent 1:11 '
'handle 11: sfq perturb 10' % dev['out'])
......@@ -984,7 +984,7 @@ class firewall_zamok(firewall_base):
self.add(table, chain, '-p udp --dport domain -j ACCEPT')
# Pour le nfs (le paquet à laisser passer n'a pas d'owner)
self.add(table, chain, '-d daath.adm.crans.org -j ACCEPT')
self.add(table, chain, '-d nfs.adm.crans.org -j ACCEPT')
for user in adm_users:
try: self.add(table, chain, '-m owner --uid-owner %d -j ACCEPT' % pwd.getpwnam(user)[2])
......
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