Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I create a user that has no keyboard access, is automatically attached to another user's screen when logged in and cannot escape the screen.


I make a new user called "user1" I set the password to "1234" On the root login I have made a screen using the command "screen -S screen1" The user logs in through ssh He/She types the user name and password "user1" "1234" As soon as they log in, ssh runs the other users screen. (screen1) I need the permissions to be set so that "user1" cannot exit or type in the screen.

share|improve this question
How is this SSH-specific? This is done with VNC. –  hexafraction Oct 8 '12 at 19:35
Isn't VNC a virtual screen? I use SSH because I have a VPS –  Muktadir Miah Oct 8 '12 at 19:38
You explicitly mention "virtual screens". Unless you mean TTY's, this should be done with VNC. –  hexafraction Oct 8 '12 at 19:41
There is an option (I think) to create a detached multi-user screen session, and let others attach to it in a read-only fashion. However, it (a) requires suid bit on /usr/bin/screen (is probably a security problem) and (b) did not work as I tried it: user1 still had write access. Could you use tmux instead of screen? It has a supported read-only mode. –  taneli Oct 9 '12 at 10:54
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.