-
Notifications
You must be signed in to change notification settings - Fork 81
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
[question]Is it safe for authfile to be readable by everyone? #131
Comments
The Principle of Least Privilege applies in this case. There are now "game over" kind of information in that file, but it all boils down to what your threat model is. For example the user login name would be in the file. Depending on what options you set and how you're using the module (which user is PAM running as), you may have different requirements. My suggestion is to give to the file the most restrictive set of permissions that you can get away with. |
I don't consider user login name as sensitive, it's freely available in The problem with restricting read access to This is also relevant for yubico-pam although the dilemma is even worse there because they need also write access. |
Keep in mind that you can have the Generally speaking the information within that file will allow to "register" a user, but for that to happen write access to the |
Is it safe for
authfile
being readable by everyone? Is there anything attacker can gain by readingauthfile
? Is it worth to restrictauthfile
readability similar to/etc/shadow
?The text was updated successfully, but these errors were encountered: