SV-227026r603265_rule
V-227026
SRG-OS-000480
GEN006220
CAT II
10
Edit the smb.conf file and set the hosts option to permit only authorized hosts to access Samba.
Examine the smb.conf file. Default locations for this file include /etc, /etc/sfw, /etc/samba, and /etc/sfw/samba. If the system has Samba installed in non-standard locations, also check the smb.conf in those locations.
Procedure:
# more /etc/smb.conf /etc/sfw/smb.conf /etc/samba/smb.conf /etc/sfw/samba/smb.conf
If the hosts option is not present to restrict access to a list of authorized hosts and networks, this is a finding.
V-227026
False
GEN006220
Examine the smb.conf file. Default locations for this file include /etc, /etc/sfw, /etc/samba, and /etc/sfw/samba. If the system has Samba installed in non-standard locations, also check the smb.conf in those locations.
Procedure:
# more /etc/smb.conf /etc/sfw/smb.conf /etc/samba/smb.conf /etc/sfw/samba/smb.conf
If the hosts option is not present to restrict access to a list of authorized hosts and networks, this is a finding.
M
4060