Skip to content

Disables password expiration and inactivity policies #1106

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

Merged
merged 2 commits into from
Jul 12, 2024

Conversation

jovial
Copy link
Contributor

@jovial jovial commented Jun 21, 2024

This was causing the kayobe and kolla service accounts to be locked out of the system.

@jovial
Copy link
Contributor Author

jovial commented Jun 21, 2024

I've not tested this yet. It seems common to use 99999 but we may be able to use -1 instead. See: https://linux.die.net/man/1/chage

@MoteHue
Copy link
Contributor

MoteHue commented Jun 24, 2024

I've not tested this yet. It seems common to use 99999 but we may be able to use -1 instead. See: https://linux.die.net/man/1/chage

FWIW I found running the chage command with -1 didn't make any change, I figured that was why it's common to use 99999

@jovial
Copy link
Contributor Author

jovial commented Jul 8, 2024

At least on Ubuntu, you'd would of had to run the hardening before host configure, as by default, it doesn't change existing users without ubtu22cis_disruption_high:

ubuntu@will-controller-01:~$ sudo chage -l stack
Last password change                                    : Jul 08, 2024
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7
ubuntu@will-controller-01:~$ sudo chage -l kolla
Last password change                                    : Jul 08, 2024
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7

I've also found the logic in the shell command checking which entries to update will never increase the expiry:
"Ensure password expiration is 365 days or less". So may need some tasks to do this.

@jovial jovial force-pushed the bugfix/yoga/cis branch from 164a471 to 3e51181 Compare July 8, 2024 16:35
This was causing the kayobe and kolla service accounts to be locked
out of the system.
@jovial jovial force-pushed the bugfix/yoga/cis branch from 3e51181 to be8fccb Compare July 8, 2024 16:38
@jovial jovial marked this pull request as ready for review July 10, 2024 11:01
@jovial jovial requested a review from a team as a code owner July 10, 2024 11:01
markgoddard
markgoddard previously approved these changes Jul 11, 2024
@jovial jovial merged commit 6a5920c into stackhpc/yoga Jul 12, 2024
15 checks passed
@jovial jovial deleted the bugfix/yoga/cis branch July 12, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants