Skip to content

Commit

Permalink
Merge pull request #47 from mrexojo/patch-1
Browse files Browse the repository at this point in the history
Update main.yml
  • Loading branch information
johanmeiring authored Sep 11, 2020
2 parents 47d0580 + e735362 commit 2d68e2f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 2d68e2f

Please sign in to comment.