Can u eloborate more. Before loggin into the shell, u are giving the username and password. Why do u want to validate it again?
I guess u dont want to present a shell to the user and start the menu.sh directly. In that case, go to /etc/passwd and edit the last column, which states /bin/bash (or watever shell). Change it to ur script menu.sh (with full path).
Then when u give the user name and password of that user, instead of shell, the menu.sh will be directly executed.
HTH.
|