The pro help!
Write a shell script setup for linux security policies include:
- login (username and password login).
- add, delete your username and password.
- 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