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

support user accounts should not be locked #30

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Conversation

rtertiaer
Copy link
Contributor

@rtertiaer rtertiaer commented Nov 4, 2024

This is a slightly more correct instantiation of support user accounts. Without a password specified, useradd makes the password field !, which locks the account - however, UsePAM in /etc/sshd_config ignores that and allows users to log in anyways if some other auth mechanism is used. In our default AmpliPi sshd_config this is not a problem because we have UsePAM. However, a user ships their own custom and very reasonable sshd_config that sets UsePAM no, which prevented the support tunnel user from being able to authenticate. This PR fixes that.

There are more details here (archive.org).

@rtertiaer rtertiaer requested a review from linknum23 November 4, 2024 17:18
common/util.py Show resolved Hide resolved
Co-authored-by: Lincoln Lorenz <linknum23@gmail.com>
@rtertiaer rtertiaer merged commit 33cde01 into main Nov 5, 2024
2 checks passed
@rtertiaer rtertiaer deleted the locked_user_fix branch November 5, 2024 15:28
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.

2 participants