From 77b65574da0d35cc21815445867ce3a375dd6dc6 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Mon, 24 Aug 2020 18:11:16 +0200 Subject: [PATCH] add umask config --- .editorconfig | 9 --------- README.md | 5 +++++ rootfs/etc/confd/templates/proftpd.conf.tmpl | 2 +- rootfs/etc/fix-attrs.d/01-data | 2 +- 4 files changed, 7 insertions(+), 11 deletions(-) delete mode 100644 .editorconfig 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