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 often start a screen session, issue a ":multiuser on" command and then ":acladd someuser".

Is there some way to get with a single shell command a screen session to start with these two commands automatically?


share|improve this question
up vote 4 down vote accepted

Use a custom screen config file with screen -c file. For example:

echo "multiuser on" >> multiscreen.conf
echo "acladd someuser" >> multiscreen.conf
alias multiscreen='screen -c multiscreen.conf' # bash syntax for alias
share|improve this answer
thanks Andrew!! – GJ. Jun 28 '10 at 18:47

Add them to your ~/.screenrc file (without the colons). See the screen man page and the example files it refers to (possibly at /usr/share/doc/screen/examples).

share|improve this answer
hmm.. I need it as an optional thing, not for all screen sessions. using the .screenrc would probably apply all the time, wouldn't it? – GJ. Jun 27 '10 at 22:14

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.