Originally Posted by sirDexter
In debian I created a new user "myUser".
I added "mysql -u user -password"
So automatically after login to linux terminal the user is logged in mysql command line.
What I need to do is to exit terminal after user exit mysql, so he want have access to comand line.
It is simpler to create a small shell script that does just that, make it executable, and then use it for the shell.
Something simple like:
exec mysql -u user -password
That way when the user exits mysql, he is logged out.
This comes under the topic of "captive account". "captive login", or "restricted shell", and isn't used that often any more, but the capability is still there.