Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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
2  
Ahaha -- you all use root == game over, sorry :) –  medina Jul 12 '10 at 18:18
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.