Last active
March 27, 2018 23:40
-
-
Save stevenmunro/9c9fcaddfad441f2822e1dd5f4aeab0a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Default> | |
GlobalDownload 5m #total speed download for all clients | |
GlobalUpload 0 #total speed download for all clients (0 for unlimited) | |
Download 0 #limit speed download for each connection | |
Upload 0 #unlimit speed upload for each connection | |
StayAtHome true #limit client to his home | |
VirtualChroot true #fake a chroot to the home account | |
LimitConnection 50 #max connection for the server sftp | |
LimitConnectionByUser 20 #max connection for the account | |
LimitConnectionByIP 20 #max connection by ip for the account | |
Home /home/$USER #overrite home of the user but if you want you can use | |
IdleTimeOut 5m #(in second) deconnect client is idle too long time | |
ResolveIP true #resolve ip to dns | |
HideNoAccess true #Hide file/directory which user has no access | |
DefaultRights 0640 0750 #Set default rights for new file and new directory | |
ShowLinksAsLinks false #show links as their destinations | |
ConnectionMaxLife 1d #limits connection lifetime to 1 day | |
ForceUser www-data | |
ForceGroup www-data | |
Home /DATA/ | |
</Default> | |
<User medieval> | |
ForceUser www-data | |
ForceGroup www-data | |
Home / | |
</User> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment