<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tetrain.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dilip</id>
	<title>TetraWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tetrain.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dilip"/>
	<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Special:Contributions/Dilip"/>
	<updated>2026-07-25T08:07:07Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Sahyog_password_policy&amp;diff=2422</id>
		<title>Sahyog password policy</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Sahyog_password_policy&amp;diff=2422"/>
		<updated>2017-11-23T10:20:59Z</updated>

		<summary type="html">&lt;p&gt;Dilip: Created page with &amp;quot;Appendix E – Password requirements.  1. Users must change password at least once every 90 days. 2. Passwords must have minimum length of 7 characters. 3. Passwords must cont...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Appendix E – Password requirements.&lt;br /&gt;
&lt;br /&gt;
1. Users must change password at least once every 90 days.&lt;br /&gt;
2. Passwords must have minimum length of 7 characters.&lt;br /&gt;
3. Passwords must contains alpha-numeric and special characters.&lt;br /&gt;
4. New passwords cannot be the same as the four previously used passwords.&lt;br /&gt;
5. A user’s account must be locked out after not more than six invalid logon attempts.&lt;br /&gt;
6. Once a user account is locked out, it must remain locked for a minimum of 30 minutes or until a system administrator resets the account.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Public IP&lt;br /&gt;
&lt;br /&gt;
ssh 182.73.247.53 -l root -v&lt;br /&gt;
&lt;br /&gt;
======================&lt;br /&gt;
[1] user’s account must be locked out after not more than six invalid logon attempts&lt;br /&gt;
&lt;br /&gt;
vi /etc/pam.d/system-auth&lt;br /&gt;
&lt;br /&gt;
account     required      pam_tally2.so&lt;br /&gt;
&lt;br /&gt;
auth        required      pam_tally2.so  file=/var/log/tallylog deny=5 even_deny_root unlock_time=1800 root_unlock_time=1800&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
192.168.100.21 done,192.168.100.25 done,192.168.100.24 done,&lt;br /&gt;
192.168.100.26 done,192.168.100.22 done&lt;br /&gt;
&lt;br /&gt;
======================&lt;br /&gt;
&lt;br /&gt;
[2]	Set number of days for password Expiration.&lt;br /&gt;
Users must change their password within the days.&lt;br /&gt;
This setting impacts only when creating a user, not impacts to exisiting users.&lt;br /&gt;
If set to exisiting users, run the command &amp;quot;chage -M (days) (user)&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[root@dlp ~]# vi /etc/login.defs&lt;br /&gt;
# line 25: set 90 for Password Expiration&lt;br /&gt;
PASS_MAX_DAYS 90&lt;br /&gt;
&lt;br /&gt;
192.168.100.21 done,192.168.100.25 done,192.168.100.24 done,&lt;br /&gt;
192.168.100.26 done,192.168.100.22 done&lt;br /&gt;
&lt;br /&gt;
==========================&lt;br /&gt;
&lt;br /&gt;
[3]	Set number of days for warnings before expiration.&lt;br /&gt;
This setting impacts only when creating a user, not impacts to exisiting users.&lt;br /&gt;
If set to exisiting users, run the command &amp;quot;chage -W (days) (user)&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[root@dlp ~]# vi /etc/login.defs&lt;br /&gt;
# line 28: set 7 for number of days for warnings&lt;br /&gt;
PASS_WARN_AGE 7&lt;br /&gt;
&lt;br /&gt;
192.168.100.21 done,192.168.100.25 done,192.168.100.24 done,&lt;br /&gt;
192.168.100.26 done,192.168.100.22 done&lt;br /&gt;
&lt;br /&gt;
============================&lt;br /&gt;
&lt;br /&gt;
[4]	Limit using a password that was used in past.&lt;br /&gt;
Users can not set the same password within the generation.&lt;br /&gt;
&lt;br /&gt;
[root@dlp ~]# vi /etc/pam.d/system-auth&lt;br /&gt;
# near line 15: prohibit to use the same password for 4 generation in past&lt;br /&gt;
password     sufficient     pam_unix.so sha512 shadow nullok try_first_pass use_authtok remember=4&lt;br /&gt;
&lt;br /&gt;
192.168.100.21 done,192.168.100.25 done,192.168.100.24 done,&lt;br /&gt;
192.168.100.26 done,192.168.100.22 done&lt;br /&gt;
&lt;br /&gt;
=============================&lt;br /&gt;
&lt;br /&gt;
[5]	Set minimum password length.&lt;br /&gt;
Users can not set thier password length less than this parameter.&lt;br /&gt;
&lt;br /&gt;
# set 8 for minimum password length&lt;br /&gt;
[root@dlp ~]# authconfig --passminlen=7 --update&lt;br /&gt;
# the parameter is set in a config below&lt;br /&gt;
[root@dlp ~]# grep &amp;quot;^minlen&amp;quot; /etc/security/pwquality.conf &lt;br /&gt;
minlen = 7&lt;br /&gt;
&lt;br /&gt;
192.168.100.21 done,192.168.100.25 done,192.168.100.24 done,&lt;br /&gt;
192.168.100.26 done,192.168.100.22 done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
============================&lt;br /&gt;
&lt;br /&gt;
[6]	Set minimum number of required classes of characters for the new password. (kinds ⇒ UpperCase / LowerCase / Digits / Others)&lt;br /&gt;
&lt;br /&gt;
# set 2 for minimum number of required classes of characters&lt;br /&gt;
[root@dlp ~]# authconfig --passminclass=2 --update&lt;br /&gt;
# the parameter is set in a config below&lt;br /&gt;
[root@dlp ~]# grep &amp;quot;minclass&amp;quot; /etc/security/pwquality.conf &lt;br /&gt;
minclass = 2&lt;br /&gt;
&lt;br /&gt;
192.168.100.21 done,192.168.100.25 done,192.168.100.24 done,&lt;br /&gt;
192.168.100.26 done,192.168.100.22 done&lt;br /&gt;
&lt;br /&gt;
===============================&lt;br /&gt;
&lt;br /&gt;
[7]	Require at least one lowercase character in the new password.&lt;br /&gt;
&lt;br /&gt;
[root@dlp ~]# authconfig --enablereqlower --update&lt;br /&gt;
# the parameter is set in a config below&lt;br /&gt;
# (if you&#039;d like to edit the value, edit it with vi and others)&lt;br /&gt;
[root@dlp ~]# grep &amp;quot;^lcredit&amp;quot; /etc/security/pwquality.conf &lt;br /&gt;
lcredit = -1&lt;br /&gt;
&lt;br /&gt;
192.168.100.21 done,192.168.100.25 done,192.168.100.24 done,&lt;br /&gt;
192.168.100.26 done,192.168.100.22 done&lt;br /&gt;
&lt;br /&gt;
================================&lt;br /&gt;
&lt;br /&gt;
[8]	Require at least one uppercase character in the new password&lt;br /&gt;
&lt;br /&gt;
[root@dlp ~]# authconfig --enablerequpper --update&lt;br /&gt;
# the parameter is set in a config below&lt;br /&gt;
# (if you&#039;d like to edit the value, edit it with vi and others)&lt;br /&gt;
[root@dlp ~]# grep &amp;quot;^ucredit&amp;quot; /etc/security/pwquality.conf &lt;br /&gt;
ucredit = -1&lt;br /&gt;
&lt;br /&gt;
192.168.100.21 done,192.168.100.25 done,192.168.100.24 done,&lt;br /&gt;
192.168.100.26 done,192.168.100.22 done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=================================&lt;br /&gt;
&lt;br /&gt;
[9]	Require at least one digit in the new password&lt;br /&gt;
[root@dlp ~]# authconfig --enablereqdigit --update&lt;br /&gt;
# the parameter is set in a config below&lt;br /&gt;
# (if you&#039;d like to edit the value, edit it with vi and others)&lt;br /&gt;
[root@dlp ~]# grep &amp;quot;^dcredit&amp;quot; /etc/security/pwquality.conf &lt;br /&gt;
dcredit = -1&lt;br /&gt;
&lt;br /&gt;
192.168.100.21 done,192.168.100.25 done,192.168.100.24 done,&lt;br /&gt;
192.168.100.26 done,192.168.100.22 done&lt;br /&gt;
&lt;br /&gt;
=========================================================================&lt;br /&gt;
&lt;br /&gt;
[10]	Require at least one other character in the new password.&lt;br /&gt;
[root@dlp ~]# authconfig --enablereqother --update&lt;br /&gt;
# the parameter is set in a config below&lt;br /&gt;
# (if you&#039;d like to edit the value, edit it with vi and others)&lt;br /&gt;
[root@dlp ~]# grep &amp;quot;^ocredit&amp;quot; /etc/security/pwquality.conf &lt;br /&gt;
ocredit = -1&lt;br /&gt;
&lt;br /&gt;
192.168.100.21 done,192.168.100.25 done,192.168.100.24 done,&lt;br /&gt;
192.168.100.26 done,192.168.100.22 done&lt;br /&gt;
&lt;br /&gt;
===============================================&lt;br /&gt;
&lt;br /&gt;
[11]	Set number of characters in the new password that must not be present in the old password.&lt;br /&gt;
[root@dlp ~]# vi /etc/security/pwquality.conf&lt;br /&gt;
# add to the end&lt;br /&gt;
difok = 5&lt;br /&gt;
&lt;br /&gt;
192.168.100.21 done, 192.168.100.25 done,192.168.100.24 done,&lt;br /&gt;
192.168.100.26 done,192.168.100.22 done&lt;br /&gt;
&lt;br /&gt;
====================================&lt;br /&gt;
RHEL 5  ,192.168.100.29, 192.168.100.30 done&lt;br /&gt;
&lt;br /&gt;
vi /etc/pam.d/system-auth&lt;br /&gt;
&lt;br /&gt;
password requisite pam_cracklib.so try_first_pass retry=3 minlength=7 lcredit=1 ucredit=1 dcredit=1 ocredit=1 difok=5&lt;br /&gt;
&lt;br /&gt;
====================================&lt;br /&gt;
&lt;br /&gt;
[1] user’s account must be locked out after not more than six invalid logon attempts&lt;br /&gt;
&lt;br /&gt;
vi /etc/pam.d/system-auth&lt;br /&gt;
&lt;br /&gt;
account     required      pam_tally2.so&lt;br /&gt;
&lt;br /&gt;
auth        required      pam_tally2.so  file=/var/log/tallylog deny=5 even_deny_root unlock_time=1800 root_unlock_time=1800&lt;br /&gt;
&lt;br /&gt;
password     sufficient     pam_unix.so sha512 shadow nullok try_first_pass use_authtok remember=4&lt;br /&gt;
&lt;br /&gt;
===================================&lt;br /&gt;
[root@dlp ~]# vi /etc/login.defs&lt;br /&gt;
# line 28: set 7 for number of days for warnings&lt;br /&gt;
PASS_WARN_AGE 7&lt;br /&gt;
&lt;br /&gt;
==================================&lt;/div&gt;</summary>
		<author><name>Dilip</name></author>
	</entry>
</feed>