This question already has an answer here:
When a user logins to my Debian server using e.g. Putty, I need to perform the following:
- It will automatically execute command
screen -r MyWindow, and
- the user won't be able to leave the screen window, so I want the user to have disabled all commands.
How can I do that?