You are not logged in.

#1 2017-06-27 21:05:53

weltio
Member
From: Germany
Registered: 2009-04-05
Posts: 90

screen: on startup: su to user and lxc-attach afterwards

Hi,
it's late and I played a bit with screen.

Su'ing to another user on startup is easy, but how can I lxc-attach to  a lxc-container afterwards?

my .screenrc

screen -t A 0 zsh
screen -t B 1 bash
screen -t bob 2 su bob

# wont work
#screen -t bobbash 3 su bob ; bash
#screen -t lxc 4 su bob ; lxc-attach -n boblxc

Any ideas?

Last edited by weltio (2017-06-27 21:07:31)

Offline

Board footer

Powered by FluxBB