UCF STIG Viewer Logo

The smb.conf file must have mode 0644 or less permissive.


Overview

Finding ID Version Rule ID IA Controls Severity
V-227927 GEN006140 SV-227927r603266_rule Medium
Description
If the smb.conf file has excessive permissions, the file may be maliciously modified and the Samba configuration could be compromised.
STIG Date
Solaris 10 X86 Security Technical Implementation Guide 2020-12-04

Details

Check Text ( C-30089r490201_chk )
Check the mode of 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:
# ls -lL /etc/smb.conf /etc/sfw/smb.conf /etc/samba/smb.conf /etc/sfw/samba/smb.conf


If the smb.conf has a mode more permissive than 0644, this is a finding.
Fix Text (F-30077r490202_fix)
Change the mode of the smb.conf file to 0644 or less permissive.

Procedure:
# chmod 0644 /etc/smb.conf /etc/sfw/smb.conf /etc/samba/smb.conf /etc/sfw/samba/smb.conf