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

Fix permissions on /etc/gshadow, based on CIS DIL Benchmark 6.1.5. #133

Merged
merged 1 commit into from
Jun 5, 2018
Merged

Fix permissions on /etc/gshadow, based on CIS DIL Benchmark 6.1.5. #133

merged 1 commit into from
Jun 5, 2018

Conversation

timstoop
Copy link
Contributor

@timstoop timstoop commented Jun 2, 2018

Fixes #132

Copy link
Member

@mcgege mcgege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the file /etc/gshadow is not present in every distribution (especially on my SUSE systems), please change/create this file only on the appropriate platforms.

@timstoop
Copy link
Contributor Author

timstoop commented Jun 4, 2018

Is this an acceptable solution? I've defaulted to it not being available.

Copy link
Member

@mcgege mcgege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you squash your commits into a single one?

@@ -22,12 +22,15 @@
case $::operatingsystem {
redhat, fedora: {
$nologin_path = '/sbin/nologin'
$shadow_path = '/etc/shadow'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On RedHat / CentOS there's also a /etc/gshadow, please include this here

@timstoop
Copy link
Contributor Author

timstoop commented Jun 4, 2018

Sure, I'll squash them. Just fyi, you should also have the option to squash the commits when merging them into master.

@timstoop
Copy link
Contributor Author

timstoop commented Jun 4, 2018

Sorry, it took a WIP file along, fixing now.

HardeningFramework-DCO-1.1-Signed-off-by: Tim Stoop <github@timstoop.nl> (github: timstoop)
@mcgege
Copy link
Member

mcgege commented Jun 5, 2018

@timstoop Thanks for your contribution, merged!

@mcgege mcgege merged commit a64f0be into dev-sec:master Jun 5, 2018
@timstoop timstoop deleted the fix_gshadow_perms branch June 27, 2018 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants