#!/bin/bash

function test()
{
        ret=`grep -v "^\+" /etc/passwd | awk -F: '($1!="root" && $1!="secadm" && $1!="auditadm" && $1!="sync" && $1!="shutdown" && $1!="halt" && $3<1000 && $7!="/sbin/nologin" && $7!="/usr/sbin/nologin" && $7!="/bin/false") {print }' 2>/dev/null`
        #echo $ret
		#$ret is not null
		if [[ -n "$ret" ]];then
			echo 1
		else
			echo 0
		fi

}
test





