[Piuparts-devel] connecting to the slave screen

Andreas Beckmann debian at abeckmann.de
Wed Jan 23 14:52:05 UTC 2013

On 2013-01-20 14:06, Holger Levsen wrote:
> And re: why running screen as root:
> holger at piatti:~$ sudo su - piupartss
> piupartss at piatti:~$ screen
> Cannot open your terminal '/dev/pts/1' - please check.
> http://dbadump.blogspot.de/2009/04/start-screen-after-sudo-su-to-another.html 
> show some other possible solutions, but as running piuparts implies basically 
> implies having root I opted for the easiest approach, running screen as root.
> But yes, I'd like to see this improved.

Managing stuff with a screen running as root seems to get nasty for
multiple slaves ... I'd really like to run the screen as piupartss.

Even if access to piupartss means unlimited root access due to the
required sudo config, I'd like to restrict running things as root as
much as possible.

What I'm doing usually (and why I haven come across to your problem
until now) is that I ssh into piupartss@, so no tty problems.

Is configuring screen to be setgid utmp an option? (see
Then multiuser mode with appropriate acls could be used and

piupartss$ cat .screenrc
multiuser on
acladd holger
aclchg * +rwx "#?"

holger$ screen -x piupartss/piuparts_slave_screen

should work.


More information about the Piuparts-devel mailing list