Merge "Lock root account"
This commit is contained in:
commit
e1ecb6a005
@ -2006,8 +2006,16 @@ HOOK_LABEL="post"
|
|||||||
ilog "*********************************************************"
|
ilog "*********************************************************"
|
||||||
ilog "**** Post - Add user/groups **"
|
ilog "**** Post - Add user/groups **"
|
||||||
ilog "*********************************************************"
|
ilog "*********************************************************"
|
||||||
|
|
||||||
# Set password for root to 'root'
|
# Set password for root to 'root'
|
||||||
usermod -p '$6$hEv/K.fPeg/$ezIWhJPrMG3WtdEwqQRdyBwdYmPZkqW2PONFAcDd6TqWliYc9dHAwW4MFTlLanVH3/clE0/34FheDMpbAqZVG.' root
|
# usermod -p '$6$hEv/K.fPeg/$ezIWhJPrMG3WtdEwqQRdyBwdYmPZkqW2PONFAcDd6TqWliYc9dHAwW4MFTlLanVH3/clE0/34FheDMpbAqZVG.' root
|
||||||
|
|
||||||
|
# To enable root password
|
||||||
|
# 1. Uncomment set root password command above
|
||||||
|
# 2. Comment out 'passwd -l root' command below
|
||||||
|
|
||||||
|
# Lock the root password
|
||||||
|
passwd -l root
|
||||||
|
|
||||||
# Remove admin user whether it exists or not
|
# Remove admin user whether it exists or not
|
||||||
deluser admin || true
|
deluser admin || true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user