summaryrefslogtreecommitdiffstats
path: root/share/doc/asciicast/temp.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-19 12:45:33 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-07-15 15:57:07 +0000
commit8bf1940ea46309dd76d82d777dc642d0b56bafed (patch)
tree4168885a0d2dd0b74e8e9914b8136f5b2a3ba4c5 /share/doc/asciicast/temp.sh
parentAdding container-uptime program. (diff)
downloadcompute-tools-8bf1940ea46309dd76d82d777dc642d0b56bafed.tar.xz
compute-tools-8bf1940ea46309dd76d82d777dc642d0b56bafed.zip
asciicast #2
Diffstat (limited to 'share/doc/asciicast/temp.sh')
-rw-r--r--share/doc/asciicast/temp.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/share/doc/asciicast/temp.sh b/share/doc/asciicast/temp.sh
new file mode 100644
index 0000000..818b84f
--- /dev/null
+++ b/share/doc/asciicast/temp.sh
@@ -0,0 +1,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