summaryrefslogtreecommitdiffstats
path: root/share/doc/asciicast/temp.sh
blob: 818b84f3f39830a078bc2cb018e5313e5cb4cee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Let's attach a console to the example container.
#
# Note: we did not create a user in the container,
# logging in as root over a pseudo-terminal is
# considered insecure by pam and will fail.
cnt console -n example.net
# Let's disable pam_securetty.so for demonstration purpose only.
vi /var/lib/machines/example.net/etc/pam.d/login
# Now login as root will work.
cnt console -n example.net

# Let's check network access.
ping -c3 open-infrastructure.net