summaryrefslogtreecommitdiff
path: root/user/livecd-support/allow-nullpw.start
diff options
context:
space:
mode:
Diffstat (limited to 'user/livecd-support/allow-nullpw.start')
-rw-r--r--user/livecd-support/allow-nullpw.start6
1 files changed, 6 insertions, 0 deletions
diff --git a/user/livecd-support/allow-nullpw.start b/user/livecd-support/allow-nullpw.start
new file mode 100644
index 000000000..f10af795e
--- /dev/null
+++ b/user/livecd-support/allow-nullpw.start
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Welcome to Adélie Linux.
+# This script changes local PAM configuration to allow null passwords.
+# This way, the `live` user does not need a password.
+
+sed -i 's/pam_unix.so$/pam_unix.so nullok_secure/' /etc/pam.d/base-auth