Add this in your file of /etc/bash.bashrc
, makesure you logged in as root.
while true; do
# Don't exit at Ctrl-C
trap "echo" SIGINT
printf "n"
echo -n " Who are you guys? "; read -s name;
if [ "$name" == "agus" ]; then
reset
printf "n Welcome my KING! you are the best!!n"
printf " "; date;
printf " Please start your activity with Basmalahnn"
break
else
printf "n Heey you! why you here!! You are not owner of this machine!n"
fi
done