Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
Set mask permission root folder
  • Loading branch information
mrexojo authored Aug 25, 2020
1 parent 47d0580 commit e735362
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 e735362

Please sign in to comment.