Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to configure screen to only allow attaching to detached sessions and not to attached sessions, even if they're from the same user.

Is there a way to accomplish this? I couldn't find anything in the documentation and on the Internet, and the settings related to multiuser mode only seem to apply when there's more than user.

share|improve this question

multiuser is off by default.

screen -r will only attach to detached sessions, even for the same user.

Are you looking for a strict security control? What are you trying to achieve?

share|improve this answer
At work we all use root (bad practice, I know...), so I don't want just anyone to be able to attach to my sessions. Another solution would be if there was some way to notify me when another user attaches to the same session, or if screen could ask me for confirmation first. – toupeira Jul 11 '10 at 15:23
Ahaha -- you all use root == game over, sorry :) – medina Jul 12 '10 at 18:18

You can use multiuser off, but I don't think that affects the same user.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.