-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
BAD PASSWORD error when using database username as Linux system user password #74
Comments
After some research, i was able to figure out where the error is coming from. It seems like the error message comes from the Linux-PAM library (Pluggable Authentication Modules). We don't have a guide to add this library, or recommend the usage of this library. I have reached out to Linux users for confirmation on whether this library is indeed being used. As a workaround if this library is used, maybe it is possible to temporarily relax the password complexity policy just for the duration of setting the password, or maybe it is possible to use the |
I got the confirmation from a student that they are using
Additionally, @CornaSn mentioned that this error message is only a warning, and after this warning you can use the same password as the username without PAM throwing an error.
|
hmm, it's not so bad then, but it does feel like a workaround for Linux (and reducing security - even in a workaround - seems like a weird thing for us to advise) what are our other options?
cc @Eprince-hub would be good to get your opinion here too |
It is already different, but I wouldn't make it more complicated for the Linux users. Linux users are typically comfortable with its unique setup but introducing more steps might lead to confusion and dissatisfaction (Why did I choose Linux..., etc). As teachers, it's important to consider the impact on our teaching workflow as well. Adding complexity means more to manage, and we have to remember these additional steps. Maintaining simplicity is beneficial for students and teachers.
Setting up a different password that doesn't contain the Simple password rules can be:
|
After some research about PAM-Linux, I'm reconsidering whether we should adjust our approach to teaching about local database credentials. PAM allows for flexible and dynamic configuration of authentication mechanisms, as described in the Ubuntu manuals. In other words, a Linux system administrator is free to choose how individual applications will authenticate users, they are likely aware that they will need to adapt their setup accordingly. Given this flexibility, it might not be necessary to alter our current teaching method. |
there's still a problem described above though, which needs to be addressed |
1️⃣ What happened that was unexpected
Creating Linux system user for postgres throws an error
BAD PASSWORD: The password contains the user name in some form
2️⃣ What were your expectations
Create a system user for postgres without issue
3️⃣ Your guess of what the problem is
Linux expects that the password for the system is unique and would throw an error otherwise
4️⃣ A list of things you have tried to solve it
Check the learning platform's cheatsheets for postgres
Creating the user with a password the same password I used in the database as suggested by the cheatsheet throws the error below
After using an entirely new unique password, the system asked the questions below, which I only pressed enter on all, the system user was created, and I can continue with postgres
Todo
The text was updated successfully, but these errors were encountered: