UCF STIG Viewer Logo

The smbpasswd file must be group-owned by root.


Overview

Finding ID Version Rule ID IA Controls Severity
V-1058 GEN006180 SV-64069r1_rule Medium
Description
If the smbpasswd file is not group-owned by root, the smbpasswd file may be maliciously accessed or modified, potentially resulting in the compromise of Samba accounts.
STIG Date
Oracle Linux 5 Security Technical Implementation Guide 2020-02-25

Details

Check Text ( C-52481r1_chk )
Check "smbpasswd" ownership:

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

If the "smbpasswd" file is not group-owned by root, this is a finding.
Fix Text (F-54597r2_fix)
Use the chgrp command to ensure that the group owner of the smbpasswd file is root.

For instance:
# chgrp root /etc/samba/passdb.tdb /etc/samba/secrets.tdb