r/fileserver: Restrict non-administrators to SFTP
Normal users do not need shell access to the file server, and certainly should not be allowed to e.g. forward ports through it. Using a `Match` block, we can apply restrictions to users who do not need administrative functionality. In this case, we restrict everyone who is not a member of the *Server Admins* group in the PYROCUFFLINK AD domain.
This commit is contained in:
@@ -22,3 +22,5 @@ sudo_authorized_ssh_keys: |
|
||||
# Default flags include -n, which makes Ansible complain about a "missing
|
||||
# become password," even though it would never actually prompt for one.
|
||||
ansible_become_flags: -H
|
||||
|
||||
fileserver_sftp_only_match: 'Group !server?admins,*'
|
||||
|
||||
Reference in New Issue
Block a user