From e73536283bb92678baaa9259c7a5381e37a7c5da Mon Sep 17 00:00:00 2001 From: mrexojo Date: Tue, 25 Aug 2020 10:26:59 +0200 Subject: [PATCH] Update main.yml Set mask permission root folder --- tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index da49af1..a6ec275 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -73,6 +73,14 @@ with_items: "{{ _sftp_users }}" # A working chrooted SFTP setup requires root:sftgroup ownership of a user's home directory. +- name: SFTP-Server | Root SFTP permissions + file: + path: "{{ sftp_home_partition }}" + state: directory + mode: 0750 + group: "{{ sftp_group_name }}" + owner: root + - name: SFTP-Server | Correct ownership and permission of home directories file: path: "{{ item.home }}"