thansk for the answer..I already did that however when I press X (exit) on the menu script, the user should be logged out on the server..Instead it goes back to his shell if i wil do the above.pls advise
You neglected to state which operating system you're using. On the platforms I use, to be a valid login shell an executable must be listed in /etc/shells.
---------- Post updated at 10:08 AM ---------- Previous update was at 09:53 AM ----------
Actually, I don't think either login or ssh consult /etc/shells, but I'll leave its mention there in case it's helpful in some way.
Also, bear in mind that to be able to execute a file, you not only need execute permission on the file, but execute (aka search) permission on every directory in its path.