Write a shell script security policy settings for linux

The pro help!
Write a shell script setup for linux security policies include:

  1. login (username and password login).
  2. add, delete your username and password.
  3. firewall.
    Note: Write a shell script file as follows:
    If login successful then
    Step 2.
    If step 2 succeeds (ie add, delete success) then
    Step 3
    End.

---------- Post updated at 10:28 PM ---------- Previous update was at 06:54 PM ----------

Can anyone help me with a bash shell login script? Its for my unix class and we need to make a script that allows the users we create to login on a screen and put their user name and password on it. Then from that screen it goes to a menu screen IF they put the right login/password combination.

Heres what i have so far.

tput cup $1 $2
tput clear
bold=`tput smso`
offbold=`tput rmso`
echo $bold
tput cup 10 20; echo "User ID:"
tput cup 12 20; echo "Password:"
echo $offbold
tput cup 10 41; read userid
tput cup 12 41; read password
while [ "$userid" != "/etc/passwd" ]; do
	echo $bold
	tput cup 15 35; echo "Incorrect User/Password"
	echo $offbold
     if	[ "$userid" = "/etc/passwd" ];
	then
	clear
	./companymenu; 
     fi
done

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.