#!/bin/bash


########## 1.5 root_UID ##########

while read line
	do
		passwd_ID=`echo $line | awk -F: '{print $1}'`
		passwd_uid=`echo $line | awk -F: '{print $3}'`


		if [ ${passwd_ID} = "root" ];
		
			then
				echo "root pass"	
		else	
			if [ ${passwd_uid} -eq 0 ];			
				then
					echo $passwd_ID " uid is " $passwd_uid " Danger!!"
			else
					echo $passwd_ID " uid is " $passwd_uid " safe!!"
			fi
		fi
  
	done < /etc/passwd


########## 1.6 root_su ##########

echo ""
echo "###### 1.6 root su ######"

su_check=`cat /etc/pam.d/su | grep "#auth"`

if [ -z "${su_check}" ];
	then
		echo "Clear"
else
		echo "Danger you need del '#'"
		echo $su_sheck

fi
		
