-
Notifications
You must be signed in to change notification settings - Fork 91
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 sudo command failed because root user password expired by password hardening feature issue. #215
Fix sudo command failed because root user password expired by password hardening feature issue. #215
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@davidpil2002 , can you review this PR? |
I'm sorry for the delay, Im reviewing if this modification is good enough. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I double check and yes root user have no password, so no need for expiring.
Cherry-pick PR to 202411: #220 |
Cherry-pick PR to 202405: #221 |
hi @liuh-80 what's the issue if we don't port back this to 202305? |
The only issue is this bug does not fix on 202305. |
Fix sudo command failed because root user password expired by password hardening feature issue.
Why I did it
some sudo command failed after enable password hardening feature:
admin@vlab-01:~$ sudo config reload -y
sudo: Account or password is expired, reset your password and try again
Changing password for root.
Current password:
This is because:
The only solution is to run 'sudo passwd root' command, this command will not ask current password, so user can set a new root password.
Work item tracking
How I did it
Remove the 'root' user expiration code.
How to verify it
Manually verified.
Pass all test case.
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
will updated with this PR image later.
Description for the changelog
Fix hostcfgd modify_single_file method generates empty file issue
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)