OSA: ADD & DELETE USER
while (true)
do
echo "enter your choice
1. add user
2. delete user
3.exit";
read a;
case $a in
1) echo"enter user name to be add:";
read c;
useradd $c;
;;
2)echo"enter user name to be delete:";
read b;
userdel $b;
echo"device delete successfully";
read d;
;;
3)exit 0
;;
esac;
done
do
echo "enter your choice
1. add user
2. delete user
3.exit";
read a;
case $a in
1) echo"enter user name to be add:";
read c;
useradd $c;
;;
2)echo"enter user name to be delete:";
read b;
userdel $b;
echo"device delete successfully";
read d;
;;
3)exit 0
;;
esac;
done
Comments
Post a Comment