"User Initialization Files Must Be Owned By the Primary User" failing on some Ubuntu 22.04 LTS
Description of problem:
"User Initialization Files Must Be Owned By the Primary User" failing for no reason on Ubuntu 22.04 LTS.
SCAP Security Guide Version:
0.1.74
Operating System Version:
Ubuntu 22.04 LTS
Steps to Reproduce:
- Scan Ubuntu 22.04 LTS with CIS Ubuntu 22.04 Level 1 Server Benchmark profile.
- Review the "User Initialization Files Must Be Owned By the Primary User" result as a fail in certain unknown conditions.
Actual Results:
Expected Results:
Additional Information/Debugging Steps:
I believe that the fail might be because of only one file found with UID and GID of 0, but it appears that the remainder of the output is also suggesting a fail even when the other files are UID and GID 1000, matching the user.
@huornlmj what is the CIS item number for this rule?
I don't know where to get the item number from , but it's Rule ID: xccdf_org.ssgproject.content_rule_accounts_user_dot_user_ownership References are: References: CCI-000366, SRG-OS-000480-GPOS-00227, 6.2.17, R50
Yes, it is failing because of that .file.txt.swp file.
If you remove it or change its permissions, it should pass.
Closing this because of the lack of activity. If this is still an issue please let us know.