[owncloud] Petit hack pour que www-data écrive en tant qu'un autre utilisateur
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
This commit is contained in:
parent
bc199ad58d
commit
a8f9d9d8b8
7 changed files with 28 additions and 1 deletions
|
@ -14,3 +14,5 @@ if has("home") and not has("home-permanent"):
|
|||
if has("ldapcert"):
|
||||
mount("/-", "/etc/auto.ldapcert", 600)
|
||||
|
||||
if has("owncloud"):
|
||||
mount("/home-owncloud", "/etc/auto.home-owncloud", 60)
|
||||
|
|
|
@ -32,7 +32,10 @@ header("Configuration du serveur ssh")
|
|||
|
||||
@RSAAuthentication yes
|
||||
@PubkeyAuthentication yes
|
||||
@#AuthorizedKeysFile %h/.ssh/authorized_keys
|
||||
if has("owncloud"):
|
||||
@AuthorizedKeysFile %h/.ssh/authorized_keys %h/.ssh/authorized_keys2 /etc/ssh/authorized_keys
|
||||
else:
|
||||
@#AuthorizedKeysFile %h/.ssh/authorized_keys
|
||||
|
||||
@# Don't read the user's ~/.rhosts and ~/.shosts files
|
||||
@IgnoreRhosts yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue