To configure the HCX Connector appliance account lockout policy for the local account, decide on certain policy settings.
Setting |
Default |
Description |
---|---|---|
deny |
3 | Maximum number of authentication failures before the account is locked |
unlock_time |
60 | Amount of time in seconds that the account remains locked |
root_unlock_time |
300 | Amount of time in seconds that the root account remains locked |
Procedure
-
Activate Secure Shell (SSH) on the HCX Connector appliance.
- Log in to the HCX Connector at https://<hcx_connector_fqdn>:9443 with a user account assigned the Admin role
-
On the main navigation bar, click Appliance Summary.
-
On the Appliance Summary page, under System Level Services, start the SSH Service.
- Log in to the HCX Connector at <hcx_connector_fqdn>:22 as admin by using a Secure Shell (SSH) client.
- Switch to the root user by running the command.
su -
- Back up the /etc/pam.d/system-password file by running the following command.
cp -p /etc/pam.d/system-auth /etc/pam.d/system-auth-`date +%F_%H:%M:%S`.back
- Change the maximum number of failed attempts by running the following command.
sed -i -E 's/deny=[-]?[0-9]+/deny=
<your_value>
/g' /etc/pam.d/system-auth - Change the unlock time for the root account by running the following command.
sed -i -E 's/root_unlock_time=[-]?[0-9]+/root_unlock_time=
<your_value>
/g' /etc/pam.d/system-auth - Change the unlock time for all other accounts by running the following command.
sed -i -E 's/ unlock_time=[-]?[0-9]+/unlock_time=
<your_value>
/g' /etc/pam.d/system-auth - Verify the configuration of the desired values by running the following command.
cat /etc/pam.d/system-auth
-
Deactivate SSH on the HCX Connector appliance.
- Log in to the HCX Connector at https://<hcx_connector_fqdn>:9443 again.
- Stop the
SSH Service
.