[X2Go-Commits] [live-build-x2go] 06/166: adds support for "nouser" - runs passwd -l on account "user", so password "live" becomes invalid

git-admin at x2go.org git-admin at x2go.org
Mon Nov 20 02:16:38 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/mate-minidesktop
in repository live-build-x2go.

commit b550b9f8f4e9cd4852340347ea4322ab4a23a88d
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Tue Jul 12 18:09:54 2016 +0200

    adds support for "nouser" - runs passwd -l on account "user", so password "live" becomes invalid
---
 config/includes.chroot/lib/live/config/2100-lockuser | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/config/includes.chroot/lib/live/config/2100-lockuser b/config/includes.chroot/lib/live/config/2100-lockuser
new file mode 100755
index 0000000..7f89531
--- /dev/null
+++ b/config/includes.chroot/lib/live/config/2100-lockuser
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+LockUser ()
+{
+
+# Output startup message
+#
+echo -n " lockuser"
+
+
+# Set password
+#
+if grep -q " *nouser *" /proc/cmdline ; then
+	passwd -l user >/dev/null
+fi
+
+}
+
+LockUser
+

--
Alioth's /srv/git/code.x2go.org/live-build-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list