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

Permit root login should default should not be 'yes' #5

Open
phyrwork opened this issue Oct 26, 2017 · 5 comments
Open

Permit root login should default should not be 'yes' #5

phyrwork opened this issue Oct 26, 2017 · 5 comments

Comments

@phyrwork
Copy link

Seems like the sort of thing which should always be opt-in instead of opt-out.

How about 'prohibit-password' as an alternative?

@franklinkim
Copy link
Member

Well, the idea in this case is that I don't want to log someone out of his server just because he didn't read the documentation... does that make sense!?

@phyrwork
Copy link
Author

phyrwork commented Nov 1, 2017

Sure, that makes sense, but on the flip side what if a person doesn't read the docs and opens root up for password authentication and has a crappy password because

I think a sensible thing to do would be to defer to whatever the default setting is, which for many(/all?) distributions is indeed 'prohibit-password'.

If someone gets locked out of a box because they didn't have a public key for root and/or didn't have another user to login as then, well, that's their fault.

@franklinkim
Copy link
Member

Sure, I guess I will chance the behaviour once I do a major release some time in the future.
Don't want to change this without changing a lot so to make sure nobody is being locked out just because of updating this role :)

But thanks for the feedback and for any one else reading this, feel free to vote for the change.

@goetzk
Copy link
Contributor

goetzk commented May 14, 2020

without-password sounds like a good choice to me.

The nice thing about a role is the role can probably check if if root has any entries in authorized_keys and warn.

@franklinkim
Copy link
Member

Yes, that could be a nice add on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants