Compare commits

..

8 Commits

9 changed files with 371 additions and 172 deletions
+2
View File
@@ -420,6 +420,8 @@ nis_user:
password: '20-wieb.ke/24_%' password: '20-wieb.ke/24_%'
samba_homes_virusfilter: true
# ========== # ==========
# vars used by roles/common/tasks/samba-install.yml # vars used by roles/common/tasks/samba-install.yml
# ========== # ==========
+3
View File
@@ -1776,6 +1776,9 @@ samba_server_min_protocol: {}
# #
samba_allow_insecure_wide_links: !!str no samba_allow_insecure_wide_links: !!str no
# include vfs object 'virusfilter' to (private) homes shares
samba_homes_virusfilter: false
samba_groups: [] samba_groups: []
# samba_user: # samba_user:
+8 -1
View File
@@ -382,6 +382,7 @@ nis_user:
- name: kirstin - name: kirstin
groups: groups:
- amif
- team - team
- aktion-mensch - aktion-mensch
is_samba_user: true is_samba_user: true
@@ -419,6 +420,12 @@ nis_user:
is_samba_user: true is_samba_user: true
password: '20_son+keng-25.%' password: '20_son+keng-25.%'
- name: victoria
groups:
- amif
is_samba_user: true
password: '20.vic-to-ria/25%'
- name: vincent - name: vincent
groups: groups:
- team - team
@@ -440,7 +447,7 @@ nis_user:
is_samba_user: true is_samba_user: true
password: '20-ver-wal-tung%23!' password: '20-ver-wal-tung%23!'
samba_homes_virusfilter: true
# ========== # ==========
+43
View File
@@ -404,6 +404,18 @@ nis_user:
is_samba_user: true is_samba_user: true
password: '8!Varianten' password: '8!Varianten'
- name: hendrik.roth
groups:
- all-users
- buero-scan
- bgn-finanzen-personal
- mbr-finanzen-personal
- rias-berlin-finanzen-personal
- regishut-personal-finanzen
- direx-personal-finanzen
is_samba_user: true
password: 'H-S.tG3/wV46'
- name: janine.budich - name: janine.budich
groups: groups:
- all-users - all-users
@@ -438,6 +450,18 @@ nis_user:
is_samba_user: true is_samba_user: true
password: 'AfZg3-9S/4IX' password: 'AfZg3-9S/4IX'
- name: olga.masson
groups:
- all-users
- buero-scan
- bgn-finanzen-personal
- mbr-finanzen-personal
- rias-berlin-finanzen-personal
- regishut-personal-finanzen
- direx-personal-finanzen
is_samba_user: true
password: '6.7.mQ-sPE.o'
- name: swetlana.nikitenko - name: swetlana.nikitenko
groups: groups:
- all-users - all-users
@@ -669,6 +693,14 @@ nis_user:
is_samba_user: true is_samba_user: true
password: 't32_aHxV.' password: 't32_aHxV.'
- name: katharina.mueller
groups:
- all-users
- buero-scan
- mbr-buero
is_samba_user: true
password: '6.3b-5Vy/7-3'
- name: kathrin.hain - name: kathrin.hain
groups: groups:
- ag-antisem - ag-antisem
@@ -730,6 +762,7 @@ nis_user:
- all-users - all-users
- buero-scan - buero-scan
- mbr-buero - mbr-buero
- technik
is_samba_user: true is_samba_user: true
password: 'I.E7X.cUd-cc' password: 'I.E7X.cUd-cc'
@@ -782,6 +815,14 @@ nis_user:
is_samba_user: true is_samba_user: true
password: 'q9.mL5-a-aYA' password: 'q9.mL5-a-aYA'
- name: tirza.seene
groups:
- all-users
- buero-scan
- mbr-buero
is_samba_user: true
password: '7a9-7Rz-Rc2p'
# --- # ---
# RIAS Berlin und Bund # RIAS Berlin und Bund
# --- # ---
@@ -951,6 +992,8 @@ nis_user:
password: 'RmMq-3Z--2.2' password: 'RmMq-3Z--2.2'
samba_homes_virusfilter: true
# ========== # ==========
# vars used by roles/common/tasks/samba-install.yml # vars used by roles/common/tasks/samba-install.yml
+8 -94
View File
@@ -177,6 +177,13 @@ nis_user:
is_samba_user: true is_samba_user: true
password: 'spa2014' password: 'spa2014'
- name: genia
groups:
- intern
- buero
is_samba_user: true
password: '240481'
- name: isadora - name: isadora
groups: groups:
- intern - intern
@@ -340,100 +347,7 @@ nis_user:
is_samba_user: true is_samba_user: true
password: '300195' password: '300195'
samba_homes_virusfilter: true
# deleted users
#
# - name: marei
# groups:
# - intern
# - buero
# is_samba_user: true
# password: '220792'
#
# - name: virginia
# groups:
# - intern
# - buero
# is_samba_user: true
# password: '160292'
#
# - name: alina
# groups:
# - intern
# - buero
# is_samba_user: true
# password: '140686'
#
# - name: hannah
# groups:
# - intern
# - buero
# is_samba_user: true
# password: '28031973'
#
# - name: kristin
# groups:
# - intern
# - buero
# is_samba_user: true
# password: '49371'
#
# - name: thea
# groups:
# - intern
# - buero
# is_samba_user: true
# password: '060995'
#
# - name: katrine
# groups:
# - intern
# - buero
# is_samba_user: true
# password: '200290'
#
# - name: daniel
# groups:
# - intern
# - buero
# is_samba_user: true
# password: '210984'
#
# - name: andrea
# groups:
# - intern
# - buero
# - lpadmin
# is_samba_user: true
# password: 'kurse2010'
#
# - name: tali
# groups:
# - intern
# - buero
# is_samba_user: true
# password: '220686'
#
# - name: eva
# groups:
# - intern
# - buero
# is_samba_user: true
# password: '250791'
#
# - name: mariam
# groups:
# - intern
# - buero
# is_samba_user: true
# password: '240991'
#
# - name: simone
# groups:
# - intern
# - buero
# is_samba_user: true
# password: '031189'
# ========== # ==========
+8
View File
@@ -109,3 +109,11 @@
service: service:
name: nfs-kernel-server name: nfs-kernel-server
state: restarted state: restarted
- name: Reload AppArmor profile clamd
command: apparmor_parser -r /etc/apparmor.d/usr.sbin.clamd
- name: Restart clamav-daemon
service:
name: clamav-daemon
state: restarted
+209 -46
View File
@@ -1,64 +1,235 @@
--- ---
# --- # ---
# Samba Server # Samba Server
# --- # ---
- name: (samba-install.yml) Ensure samba packages server (buster) are installed. - name: (samba-install.yml) Ensure samba packages server (buster) are installed.
package: package:
pkg: '{{ apt_install_server_samba }}' pkg: "{{ apt_install_server_samba }}"
state: present state: present
when: when:
- "groups['samba_server']|string is search(inventory_hostname)" - inventory_hostname in groups['samba_server']
tags: tags:
- samba-server - samba-server
# ---
# Virusfilter (ClamAV) — only when at least one share has vfs_object_virusfilter: true
# ---
- name: (samba-install.yml) Ensure virusfilter (ClamAV) packages are installed
package:
pkg: '{{ apt_install_server_samba_virusfilter }}'
state: present
when:
- "groups['samba_server']|string is search(inventory_hostname)"
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') | selectattr('vfs_object_virusfilter', 'equalto', true) | list | length > 0
tags:
- samba-server
- samba-virusfilter
- name: (samba-install.yml) Ensure quarantine directory exists - name: (samba-install.yml) Ensure quarantine directory exists
file: file:
path: /data/samba/QUARANTINE path: /data/samba/QUARANTINE
owner: root owner: root
group: root group: root
mode: '0750' mode: "0750"
state: directory state: directory
when: when:
- "groups['samba_server']|string is search(inventory_hostname)" - inventory_hostname in groups['samba_server']
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') | selectattr('vfs_object_virusfilter', 'equalto', true) | list | length > 0 - samba_shares | selectattr('vfs_object_virusfilter', 'defined') |
selectattr('vfs_object_virusfilter', 'equalto', true) | list | length > 0
tags: tags:
- samba-server - samba-server
- samba-virusfilter - samba-virusfilter
- name: (samba-install.yml) Ensure samba share directories exists - name: (samba-install.yml) Ensure samba share directories exists
file: file:
path: "{{ item.path }}" path: "{{ item.path }}"
owner: "root" owner: "root"
group: "{{ item.group_write_list }}" group: "{{ item.group_write_list }}"
mode: '2770' mode: "{{ item.dir_create_mask | default('2770', true) }}"
state: directory state: directory
recurse: no
with_items: "{{ samba_shares }}" with_items: "{{ samba_shares }}"
loop_control: loop_control:
label: '{{ item.name }}' label: "{{ item.name }}"
when: when:
- "groups['samba_server']|string is search(inventory_hostname)" - inventory_hostname in groups['samba_server']
tags: tags:
- samba-shares - samba-shares
# ---
# Virusfilter (ClamAV) - only when at least one share has vfs_object_virusfilter: true
# ---
- name: (samba-install.yml) Ensure virusfilter (ClamAV) packages are installed
package:
pkg: "{{ apt_install_server_samba_virusfilter }}"
state: present
when:
- inventory_hostname in groups['samba_server']
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') |
selectattr('vfs_object_virusfilter', 'equalto', true) | list | length > 0
tags:
- samba-server
- samba-virusfilter
- name: (samba-config-server.yml) Check if ClamAV virus databases are present
find:
paths: /var/lib/clamav
patterns:
- "*.cvd"
- "*.cld"
register: clamav_db_files
when:
- inventory_hostname in groups['samba_server']
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') | selectattr('vfs_object_virusfilter', 'equalto', true) | list | length > 0
tags:
- samba-server
- samba-virusfilter
- name: (samba-config-server.yml) Stop clamav-freshclam service before initial database download
service:
name: clamav-freshclam
state: stopped
failed_when: false
when:
- inventory_hostname in groups['samba_server']
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') | selectattr('vfs_object_virusfilter', 'equalto', true) | list | length > 0
- clamav_db_files.files | length == 0
tags:
- samba-server
- samba-virusfilter
- name: (samba-config-server.yml) Ensure clamav-daemon service is started before database update
service:
name: clamav-daemon
state: started
enabled: yes
failed_when: false
when:
- inventory_hostname in groups['samba_server']
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') | selectattr('vfs_object_virusfilter', 'equalto', true) | list | length > 0
tags:
- samba-server
- samba-virusfilter
- name: (samba-config-server.yml) Download initial ClamAV virus databases via freshclam
command: freshclam
when:
- inventory_hostname in groups['samba_server']
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') | selectattr('vfs_object_virusfilter', 'equalto', true) | list | length > 0
- clamav_db_files.files | length == 0
tags:
- samba-server
- samba-virusfilter
- name: (samba-config-server.yml) Ensure clamav-daemon service is enabled and started
service:
name: clamav-daemon
state: started
enabled: yes
when:
- inventory_hostname in groups['samba_server']
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') | selectattr('vfs_object_virusfilter', 'equalto', true) | list | length > 0
tags:
- samba-server
- samba-virusfilter
- name: (samba-config-server.yml) Ensure clamav-freshclam service is enabled and started
service:
name: clamav-freshclam
state: started
enabled: yes
when:
- inventory_hostname in groups['samba_server']
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') | selectattr('vfs_object_virusfilter', 'equalto', true) | list | length > 0
tags:
- samba-server
- samba-virusfilter
- name: (samba-install.yml) Ensure clamav user is member of all NIS groups
user:
name: clamav
groups: "{{ item.name }}"
append: yes
loop: "{{ nis_groups }}"
loop_control:
label: "{{ item.name }}"
when:
- inventory_hostname in groups['samba_server']
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') |
selectattr('vfs_object_virusfilter', 'equalto', true) | list | length > 0
- nis_groups | length > 0
tags:
- samba-server
- samba-virusfilter
- name: (samba-config-server.yml) Ensure clamav user is member of all NIS user groups (homes virusfilter)
user:
name: clamav
groups: "{{ item.name }}"
append: yes
loop: "{{ nis_user }}"
loop_control:
label: "{{ item.name }}"
when:
- inventory_hostname in groups['samba_server']
- samba_homes_virusfilter | default(false) | bool
- nis_user | length > 0
tags:
- samba-server
- samba-virusfilter
- name: (samba-config-server.yml) Get home directories of samba users (NIS users) via getent (homes virusfilter)
ansible.builtin.getent:
database: passwd
key: "{{ item.name }}"
loop: "{{ nis_user }}"
loop_control:
label: "{{ item.name }}"
register: samba_user_getent
when:
- inventory_hostname in groups['samba_server']
- samba_homes_virusfilter | default(false) | bool
- nis_user | length > 0
tags:
- samba-server
- samba-virusfilter
- name: (samba-config-server.yml) Ensure home directories are group-traversable for clamd (homes virusfilter)
file:
path: "{{ item.ansible_facts.getent_passwd[item.item.name][4] }}"
mode: "0750"
state: directory
loop: "{{ samba_user_getent.results | default([]) }}"
loop_control:
label: "{{ item.item.name }}"
when:
- inventory_hostname in groups['samba_server']
- samba_homes_virusfilter | default(false) | bool
- item.ansible_facts is defined
tags:
- samba-server
- samba-virusfilter
- name: (samba-config-server.yml) Configure AppArmor local profile for clamd (data paths)
template:
src: etc/apparmor.d/local/usr.sbin.clamd.j2
dest: /etc/apparmor.d/local/usr.sbin.clamd
owner: root
group: root
mode: "0644"
notify:
- Reload AppArmor profile clamd
- Restart clamav-daemon
when:
- inventory_hostname in groups['samba_server']
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') |
selectattr('vfs_object_virusfilter', 'equalto', true) | list | length > 0
tags:
- samba-server
- samba-virusfilter
- name: (samba-config-server.yml) Ensure AllowAllMatchScan is enabled in clamd.conf
lineinfile:
path: /etc/clamav/clamd.conf
regexp: "^#?\\s*AllowAllMatchScan\\s"
line: "AllowAllMatchScan true"
state: present
notify: Restart clamav-daemon
when:
- inventory_hostname in groups['samba_server']
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') |
selectattr('vfs_object_virusfilter', 'equalto', true) | list | length > 0
tags:
- samba-server
- samba-virusfilter
# --- # ---
# /etc/samba/smb.conf # /etc/samba/smb.conf
@@ -69,51 +240,48 @@
path: /etc/samba/smb.conf.ORIG path: /etc/samba/smb.conf.ORIG
register: smb_conf_exists register: smb_conf_exists
when: when:
- "groups['samba_server']|string is search(inventory_hostname)" - inventory_hostname in groups['samba_server']
tags: tags:
- samba-server - samba-server
- name: (samba-install.yml) Backup existing file /etc/samba/smb.conf - name: (samba-install.yml) Backup existing file /etc/samba/smb.conf
command: cp -a /etc/samba/smb.conf /etc/samba/smb.conf.ORIG command: cp -a /etc/samba/smb.conf /etc/samba/smb.conf.ORIG
when: when:
- "groups['samba_server']|string is search(inventory_hostname)" - inventory_hostname in groups['samba_server']
- smb_conf_exists.stat.exists == False - smb_conf_exists.stat.exists == False
tags: tags:
- samba-server - samba-server
- name: (samba-install.yml) /etc/samba/smb.conf - name: (samba-install.yml) /etc/samba/smb.conf
template: template:
dest: /etc/samba/smb.conf dest: /etc/samba/smb.conf
src: etc/samba/smb.conf.j2 src: etc/samba/smb.conf.j2
owner: root owner: root
group: root group: root
mode: 0644 mode: 644
when: when:
- "groups['samba_server']|string is search(inventory_hostname)" - inventory_hostname in groups['samba_server']
notify: notify:
- Restart smbd - Restart smbd
- Restart nmbd - Restart nmbd
tags: tags:
- samba-server - samba-server
- name: (samba-install.yml) Ensure file /etc/samba/users.map exists - name: (samba-install.yml) Ensure file /etc/samba/users.map exists
copy: copy:
src: "{{ role_path + '/files/etc/samba/users.map' }}" src: "{{ role_path + '/files/etc/samba/users.map' }}"
dest: /etc/samba/users.map dest: /etc/samba/users.map
owner: root owner: root
group: root group: root
mode: 0644 mode: 644
when: when:
- "groups['samba_server']|string is search(inventory_hostname)" - inventory_hostname in groups['samba_server']
notify: notify:
- Restart smbd - Restart smbd
- Restart nmbd - Restart nmbd
tags: tags:
- samba-server - samba-server
# --- # ---
# Cronjob for cleaning up samba trash dirs # Cronjob for cleaning up samba trash dirs
# --- # ---
@@ -123,25 +291,26 @@
path: /root/bin/samba/clean_samba_trash.sh path: /root/bin/samba/clean_samba_trash.sh
register: clean_samba_trash_exists register: clean_samba_trash_exists
when: when:
- "groups['samba_server']|string is search(inventory_hostname)" - inventory_hostname in groups['samba_server']
tags: tags:
- samba-server - samba-server
- samba-cron
- name: (samba-install.yml) Adjust configuration for script 'clean_samba_trash.sh' - name: (samba-install.yml) Adjust configuration for script 'clean_samba_trash.sh'
template: template:
dest: /root/bin/samba/conf/clean_samba_trash.conf dest: /root/bin/samba/conf/clean_samba_trash.conf
src: root/bin/samba/conf/clean_samba_trash.conf.j2 src: root/bin/samba/conf/clean_samba_trash.conf.j2
when: when:
- "groups['samba_server']|string is search(inventory_hostname)" - inventory_hostname in groups['samba_server']
- clean_samba_trash_exists.stat.exists|bool - clean_samba_trash_exists.stat.exists|bool
tags: tags:
- samba-server - samba-server
- samba-cron
- name: (samba-config-server.yml) Check if cleaning up trash dirs is configured - name: (samba-config-server.yml) Check if cleaning up trash dirs is configured
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /root/bin/samba/conf/clean_samba_trash.conf path: /root/bin/samba/conf/clean_samba_trash.conf
regexp: '^trash_dirs=*' regexp: "^trash_dirs=*"
state: absent state: absent
check_mode: true check_mode: true
changed_when: false changed_when: false
@@ -150,7 +319,6 @@
- inventory_hostname in groups['samba_server'] - inventory_hostname in groups['samba_server']
tags: [samba-server, samba-cron] tags: [samba-server, samba-cron]
- name: (samba-config-server.yml) Creates a cron job for cleaning up samba trash dirs - name: (samba-config-server.yml) Creates a cron job for cleaning up samba trash dirs
ansible.builtin.cron: ansible.builtin.cron:
name: "{{ samba_cronjob_trash_dirs.name }}" name: "{{ samba_cronjob_trash_dirs.name }}"
@@ -167,7 +335,6 @@
- (clean_samba_trash_dirs.found | int) > 0 - (clean_samba_trash_dirs.found | int) > 0
tags: [samba-server, samba-cron] tags: [samba-server, samba-cron]
# --- # ---
# Cronjob for setting permissions on samba shares # Cronjob for setting permissions on samba shares
# --- # ---
@@ -180,7 +347,6 @@
- inventory_hostname in groups['samba_server'] - inventory_hostname in groups['samba_server']
tags: [samba-server, samba-cron] tags: [samba-server, samba-cron]
- name: (samba-config-server.yml) Adjust configuration for script 'set_permissions_samba_shares.sh' - name: (samba-config-server.yml) Adjust configuration for script 'set_permissions_samba_shares.sh'
ansible.builtin.template: ansible.builtin.template:
dest: /root/bin/samba/conf/set_permissions_samba_shares.conf dest: /root/bin/samba/conf/set_permissions_samba_shares.conf
@@ -190,7 +356,6 @@
- set_permissions_on_samba_shares_exists.stat.exists | bool - set_permissions_on_samba_shares_exists.stat.exists | bool
tags: [samba-server, samba-cron] tags: [samba-server, samba-cron]
- name: (samba-config-server.yml) Creates a cron job for setting permissions to samba dirs - name: (samba-config-server.yml) Creates a cron job for setting permissions to samba dirs
ansible.builtin.cron: ansible.builtin.cron:
name: "{{ samba_cronjob_permissions.name }}" name: "{{ samba_cronjob_permissions.name }}"
@@ -206,7 +371,6 @@
- (clean_samba_trash_dirs.found | int) > 0 # << int -> bool - (clean_samba_trash_dirs.found | int) > 0 # << int -> bool
tags: [samba-server, samba-cron] tags: [samba-server, samba-cron]
# --- # ---
# Samba clients # Samba clients
# --- # ---
@@ -216,8 +380,7 @@
pkg: "{{ apt_install_client_samba }}" pkg: "{{ apt_install_client_samba }}"
state: present state: present
when: when:
- "groups['nis_client']|string is search(inventory_hostname)" - inventory_hostname in groups['nis_client']
- ansible_distribution == "Ubuntu" - ansible_distribution == "Ubuntu"
tags: tags:
- samba-client - samba-client
@@ -0,0 +1,11 @@
# {{ ansible_managed }}
# see: roles/common/tasks/samba-config-server.yml
/data/** r,
/data/samba/QUARANTINE/** rw,
{% if samba_homes_virusfilter | default(false) | bool %}
{{ nis_base_home }}/** r,
{% if nis_base_home != '/home' %}
/home/** r,
{% endif %}
{% endif %}
+51 -3
View File
@@ -92,7 +92,7 @@
# This tells Samba to use a separate log file for each machine # This tells Samba to use a separate log file for each machine
# that connects # that connects
; log file = /var/log/samba/log.%m log file = /var/log/samba/log.%m
log file = /var/log/samba/%I.log log file = /var/log/samba/%I.log
# Cap the size of the individual log files (in KiB). # Cap the size of the individual log files (in KiB).
@@ -305,6 +305,14 @@
# next parameter to 'no' if you want to be able to write to them. # next parameter to 'no' if you want to be able to write to them.
read only = no read only = no
{% if samba_homes_virusfilter | default(false) | bool %}
# Virusfilter aktiv: Gruppe benötigt Leserecht, damit clamd (als Gruppenmitglied)
# Dateien und Verzeichnisse direkt öffnen kann (SCAN-Kommando an clamd).
create mask = 0640
force create mode = 0040
directory mask = 0750
force directory mode = 0050
{% else %}
# File creation mask is set to 0700 for security reasons. If you want to # File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775. # create files with group=rw permissions, set next parameter to 0775.
create mask = 0700 create mask = 0700
@@ -312,6 +320,7 @@
# Directory creation mask is set to 0700 for security reasons. If you want to # Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775. # create dirs. with group=rw permissions, set next parameter to 0775.
directory mask = 0700 directory mask = 0700
{% endif %}
# By default, \\server\username shares can be connected to by anyone # By default, \\server\username shares can be connected to by anyone
# with access to the samba server. # with access to the samba server.
@@ -319,6 +328,38 @@
# to \\server\username # to \\server\username
# This might need tweaking when using external authentication schemes # This might need tweaking when using external authentication schemes
valid users = %S valid users = %S
{% if samba_homes_virusfilter | default(false) | bool %}
# --- Virusfilter-Einstellungen [homes] ---
vfs objects = virusfilter
virusfilter:scanner = clamav
virusfilter:socket path = /var/run/clamav/clamd.ctl
virusfilter:infected file action = delete
virusfilter:cache entry limit = 1000
virusfilter:cache time limit = 60
# Dateigröße: Was wird gescannt?
#virusfilter:max file size = 52428800 # 50 MB max
#virusfilter:max file size = 26214400 # 25 MB max
virusfilter:max file size = 15728640 # 15 MB max
virusfilter:min file size = 10
virusfilter:scan on open = yes
virusfilter:scan on close = yes
# Fehlercode bei infizierter Datei (beim Öffnen)
virusfilter:infected file errno on open = EACCES
# Fehlercode beim Schließen
virusfilter:infected file errno on close = EACCES
virusfilter:connect timeout = 30000
virusfilter:io timeout = 60000
{% endif %}
# Un-comment the following and create the netlogon directory for Domain Logons # Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.) # (you need to configure Samba to act as a domain controller too.)
@@ -484,12 +525,19 @@
# Dateigröße: Was wird gescannt? # Dateigröße: Was wird gescannt?
#virusfilter:max file size = 52428800 # 50 MB max #virusfilter:max file size = 52428800 # 50 MB max
virusfilter:max file size = 26214400 # 25 MB max #virusfilter:max file size = 26214400 # 25 MB max
virusfilter:max file size = 15728640 # 15 MB max
virusfilter:min file size = 10 # unter 10 Byte ignorieren virusfilter:min file size = 10 # unter 10 Byte ignorieren
# Scan-Zeitpunkt: nur beim Öffnen, nicht beim Schließen # Scan-Zeitpunkt: nur beim Öffnen, nicht beim Schließen
virusfilter:scan on open = yes virusfilter:scan on open = yes
virusfilter:scan on close = no virusfilter:scan on close = yes
# Fehlercode bei infizierter Datei (beim Öffnen)
virusfilter:infected file errno on open = EACCES
# Fehlercode beim Schließen
virusfilter:infected file errno on close = EACCES
# Timeouts (Millisekunden) # Timeouts (Millisekunden)
virusfilter:connect timeout = 30000 virusfilter:connect timeout = 30000