add umask config

This commit is contained in:
Sebastian Hugentobler 2020-08-24 18:11:16 +02:00
parent 2df3d1d3d8
commit 77b65574da
4 changed files with 7 additions and 11 deletions

View File

@ -1,9 +0,0 @@
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

View File

@ -8,6 +8,11 @@ File access with [ProFTPD](http://www.proftpd.org/) over sftp and a static user/
## SERVER_NAME ## SERVER_NAME
Name displayed to connecting users. Name displayed to connecting users.
## UMASK
- default: 006 007
Umask to use for files.
## STATIC_USER ## STATIC_USER
A static username for authentication. A static username for authentication.

View File

@ -5,7 +5,7 @@ ServerType standalone
DefaultServer on DefaultServer on
Port 22 Port 22
UseIPv6 off UseIPv6 off
Umask 006 007 Umask {{ getenv "UMASK" "006 007" }}
MaxInstances 30 MaxInstances 30
User proftpd User proftpd
Group proftpd Group proftpd

View File

@ -1 +1 @@
/var/lib/ftp/data/ true proftpd:access 0664 0775 /var/lib/ftp/data/ true proftpd:access 0666 0777