content icon indicating copy to clipboard operation
content copied to clipboard

"User Initialization Files Must Be Owned By the Primary User" failing on some Ubuntu 22.04 LTS

Open huornlmj opened this issue 1 year ago • 3 comments

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:

  1. Scan Ubuntu 22.04 LTS with CIS Ubuntu 22.04 Level 1 Server Benchmark profile.
  2. Review the "User Initialization Files Must Be Owned By the Primary User" result as a fail in certain unknown conditions.

Actual Results:

image

Expected Results:

image

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 avatar Aug 21 '24 15:08 huornlmj

@huornlmj what is the CIS item number for this rule?

dodys avatar Sep 02 '24 14:09 dodys

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

huornlmj avatar Sep 02 '24 14:09 huornlmj

Yes, it is failing because of that .file.txt.swp file. If you remove it or change its permissions, it should pass.

dodys avatar Sep 02 '24 15:09 dodys

Closing this because of the lack of activity. If this is still an issue please let us know.

dodys avatar Feb 20 '25 17:02 dodys