Browse code

Setting default password aging limits to 365 days

Change-Id: I7c0c351f691ff4f743e2fd011186a103f90db242
Reviewed-on: http://photon-jenkins.eng.vmware.com/760
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: Sharath George

dthaluru authored on 2016/04/28 10:01:41
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Programs for handling passwords in a secure way
2 2
 Name:		shadow
3 3
 Version:	4.2.1
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 URL:		http://pkg-shadow.alioth.debian.org/
6 6
 License:	BSD
7 7
 Group:		Applications/System
... ...
@@ -72,6 +72,9 @@ for FUNCTION in FAIL_DELAY               \
72 72
 do
73 73
     sed -i "s/^${FUNCTION}/# &/" %{buildroot}/etc/login.defs
74 74
 done
75
+
76
+sed -i "s/^PASS_MAX_DAYS.*/PASS_MAX_DAYS    365/" %{buildroot}/etc/login.defs
77
+
75 78
 pushd PAM-Configuration-Files
76 79
 install -vm644 * %{buildroot}%{_sysconfdir}/pam.d/
77 80
 popd
... ...
@@ -98,6 +101,8 @@ done
98 98
 %{_mandir}/*/*
99 99
 %{_sysconfdir}/pam.d/*
100 100
 %changelog
101
+*       Wed Apr 27 2016 Divya Thaluru <dthaluru@vmware.com> 4.2.1-3
102
+-       Setting password aging limits to 365 days
101 103
 *       Wed Mar 23 2016 Divya Thaluru <dthaluru@vmware.com> 4.2.1-2
102 104
 -       Enabling pam_limits module in a session
103 105
 *	Tue Jan 12 2016 Anish Swaminathan <anishs@vmware.com> 4.2.1-1