#!/bin/bash

function test()
{
        ret=`grep "PASS_MAX_DAYS" /etc/login.defs|grep -v "#"|awk '{print $2}'|grep -v "#"|tail -n 1`
		#echo $ret
		if [ $ret -gt 0 ];then
			echo 0
		else
			echo 1
		fi

}
test





