diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index d741e40..0000000 --- a/.editorconfig +++ /dev/null @@ -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 diff --git a/README.md b/README.md index bf918e8..7d6f401 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,11 @@ File access with [ProFTPD](http://www.proftpd.org/) over sftp and a static user/ ## SERVER_NAME Name displayed to connecting users. +## UMASK +- default: 006 007 + +Umask to use for files. + ## STATIC_USER A static username for authentication. diff --git a/rootfs/etc/confd/templates/proftpd.conf.tmpl b/rootfs/etc/confd/templates/proftpd.conf.tmpl index 61b9806..f59eafb 100644 --- a/rootfs/etc/confd/templates/proftpd.conf.tmpl +++ b/rootfs/etc/confd/templates/proftpd.conf.tmpl @@ -5,7 +5,7 @@ ServerType standalone DefaultServer on Port 22 UseIPv6 off -Umask 006 007 +Umask {{ getenv "UMASK" "006 007" }} MaxInstances 30 User proftpd Group proftpd diff --git a/rootfs/etc/fix-attrs.d/01-data b/rootfs/etc/fix-attrs.d/01-data index 50e0ee7..9ff8fd0 100644 --- a/rootfs/etc/fix-attrs.d/01-data +++ b/rootfs/etc/fix-attrs.d/01-data @@ -1 +1 @@ -/var/lib/ftp/data/ true proftpd:access 0664 0775 +/var/lib/ftp/data/ true proftpd:access 0666 0777