-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable the root account if Admin set
If any accounts are added and set to have Admin privileges via sudo, then disable the root account by locking it. Also lock the root account if SSH Keys are set, but no password. Added checking if the account exists (system accounts like root) to use usermod not useradd. Also use getent to find the user's home directory and not assume /home (not true for root). Signed-off-by: Mark D Horn <[email protected]>
- Loading branch information
Showing
1 changed file
with
168 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters