ajout infos pour <Limit>
This commit is contained in:
parent
b601604efa
commit
8172740034
|
@ -131,6 +131,42 @@ Pour modifier le mot de passe d'un compte existant :
|
||||||
# ftpasswd --file /etc/proftpd/vpasswd --name=FTP_user --change-password --passwd
|
# ftpasswd --file /etc/proftpd/vpasswd --name=FTP_user --change-password --passwd
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
### Directive Limit
|
||||||
|
|
||||||
|
Voir <http://www.proftpd.org/docs/howto/Limit.html>
|
||||||
|
|
||||||
|
La directive `Limit` permet d'autoriser ou empêcher l'exécution de commande FTP bas niveau.
|
||||||
|
C'est puissant et dangereux, car on pourrait croire que l'on empêche la lecture d'un fichier, mais il faut avoir en tête qu'il existe plusieurs commandes FTP pour faire cela. Il existe des groupes de commandes : LOGIN, DIRS, READ, WRITE et enfin ALL (tout sauf LOGIN).
|
||||||
|
|
||||||
|
Voici un exemple d'utilisation pour empêcher toutes opérations sauf dans un répertoire :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
<Directory *>
|
||||||
|
<Limit ALL>
|
||||||
|
DenyAll
|
||||||
|
</Limit>
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
<Directory foo>
|
||||||
|
<Limit ALL>
|
||||||
|
AllowAll
|
||||||
|
</Limit>
|
||||||
|
</Directory>
|
||||||
|
~~~
|
||||||
|
|
||||||
|
ou encore autoriser **uniquement** le dépôt de fichiers dans un répertoire :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
<Directory foo>
|
||||||
|
<Limit ALL>
|
||||||
|
DenyAll
|
||||||
|
</Limit>
|
||||||
|
<Limit CDUP CWD XCWD XCUP PWD STOR STOU>
|
||||||
|
AllowAll
|
||||||
|
</Limit>
|
||||||
|
</Directory>
|
||||||
|
~~~
|
||||||
|
|
||||||
|
|
||||||
## Divers
|
## Divers
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue