Skip to content

Commit

Permalink
Disable SSH login for SFTP users
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbedrich committed Feb 28, 2017
1 parent 204e3a5 commit 2b28c91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
name: "{{ item.name }}"
groups: "{{ sftp_group_name }}"
home: "{{ sftp_home_partition }}/{{ item.name }}"
shell: "/sbin/nologin"
state: present
with_items: "{{ sftp_users }}"

Expand Down

0 comments on commit 2b28c91

Please sign in to comment.