Friday, 19 September 2014

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

No comments:

Post a Comment