3 ms·
> the only thing that locking the root account gets you is assurance that if you ever bork the user you created in this guide (or sudo functionality as a whole)
by yjftsjthsd-h 3y ago
> the only thing that locking the root account gets you is assurance that if you ever bork the user you created in this guide (or sudo functionality as a whole) you'll have no way to recover without booting into another environment.
As opposed to borking the root user and being equally locked out? Assuming your sudo config is a "configure it once and then leave it forever" deal - which seems common IME - I can't see any way it would be different.
(Mind, this cuts both ways - once you force only key-based SSH, I generally don't see a problem with direct root access either.)
- vbezhenar 3y agoJust don't set root:toor and you'll be alright. Keys are good, but passwords are good as well.