
On monte en sshfs user@127.0.0.1:/home/user/Owncloud /home-owncloud/user pour www-data quand on essaye d'accéder au dossier /home-owncloud/user en utilisant une clef ssh commune pour tous les utilistateur uniquement utilisable depuis 127.0.0.1
18 lines
494 B
Python
18 lines
494 B
Python
# -*- coding: utf-8; mode: python -*-
|
|
|
|
header("Définition des points de montage pour autofs.")
|
|
|
|
def mount(mntpoint, script, timeout=None):
|
|
if timeout is not None:
|
|
print mntpoint, script, '-t%s' % timeout
|
|
else:
|
|
print mntpoint, script
|
|
|
|
if has("home") and not has("home-permanent"):
|
|
mount("/home", "/etc/auto.home", 600)
|
|
|
|
if has("ldapcert"):
|
|
mount("/-", "/etc/auto.ldapcert", 600)
|
|
|
|
if has("owncloud"):
|
|
mount("/home-owncloud", "/etc/auto.home-owncloud", 60)
|