Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLPX-86539 CIS: postgres user account settings #776

Conversation

dbshah12
Copy link

@dbshah12 dbshah12 commented Sep 30, 2024

Problem

Status of the home directory ownership and permissions for the user accounts (non-system users) defined within the /etc/passwd file

A home directory or the login directory is a directory assigned to each user account that serves as the repository to store personal files, directories, programs and the user profiles to set local environment variables. Since each user is accountable for the files stored in their home directory, the respective user must be the owner of the directory and the permissions should be set accordingly. As unrestricted ownership/permissions could allow unauthorized access to files and directories containing sensitive and restricted information, which could lead to privilege escalation exploits. Ownership and permissions for the home directories should be restricted as appropriate to the needs of the business.

We currently have three non-system users:

/var/lib/postgresql (user: postgres): Owner = postgres:postgres, Permissions = drwxr-xr-x

/export/home/delphix (user: delphix): Owner = delphix:staff, Permissions = drwxr-xr-x

/export/home/cli (user: cli): Owner = cli:staff, Permissions = drwxr-xr-x

All three directories have 755 permissions. This should be 750 for all 3.

Solution

Testing

@dbshah12 dbshah12 force-pushed the dlpx/pr/dbshah12/a25c0689-491c-4f22-84e1-4f88d9689162 branch 5 times, most recently from fb29910 to 92ed1b0 Compare September 30, 2024 17:38
@dbshah12 dbshah12 force-pushed the dlpx/pr/dbshah12/a25c0689-491c-4f22-84e1-4f88d9689162 branch from 92ed1b0 to 16cb8b2 Compare October 3, 2024 08:21
@dbshah12
Copy link
Author

dbshah12 commented Oct 4, 2024

Duplicate of delphix/delphix-platform#499

@dbshah12 dbshah12 marked this as a duplicate of delphix/delphix-platform#499 Oct 4, 2024
@dbshah12 dbshah12 closed this Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant