UCF STIG Viewer Logo

The smbpasswd file must have mode 0600 or less permissive.


Overview

Finding ID Version Rule ID IA Controls Severity
V-1059 GEN006200 SV-41575r1_rule ECLP-1 Medium
Description
If the smbpasswd file has a mode more permissive than 0600, the smbpasswd file may be maliciously accessed or modified, potentially resulting in the compromise of Samba accounts.
STIG Date
Red Hat Enterprise Linux 5 Security Technical Implementation Guide 2017-03-01

Details

Check Text ( C-40077r1_chk )
Check the mode of files maintained using "smbpasswd".

Procedure:
# ls -lL /etc/samba/passdb.tdb /etc/samba/secrets.tdb

If a "smbpasswd" maintained file has a mode more permissive than 0600, this is a finding.
Fix Text (F-35233r1_fix)
Change the mode of the files maintained through smbpasswd to 0600.

Procedure:
# chmod 0600 /etc/samba/passdb.tdb /etc/samba/secrets.tdb