sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (11272e987d91d41c3d6a4ce4da95ba1bda190dc2)
- From: Pavel Vinogradov <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (11272e987d91d41c3d6a4ce4da95ba1bda190dc2)
- Date: Fri, 23 Jul 2021 23:25:00 +0000
GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemaage.org>:
security/shadow/HISTORY | 2 +-
security/shadow/INSTALL | 4 ++++
security/shadow/useradd | 8 ++++++++
3 files changed, 13 insertions(+), 1 deletion(-)
New commits:
commit 11272e987d91d41c3d6a4ce4da95ba1bda190dc2
Author: Pavel Vinogradov <public AT sourcemaage.org>
Commit: Pavel Vinogradov <public AT sourcemaage.org>
security/shadow: provide our own /etc/default/useradd
diff --git a/security/shadow/HISTORY b/security/shadow/HISTORY
index b01b17f..dc09041 100644
--- a/security/shadow/HISTORY
+++ b/security/shadow/HISTORY
@@ -1,6 +1,6 @@
2021-07-23 Pavel Vinogradov <public AT sourcemage.org>
* DETAILS: version 4.9
- * INSTALL: no etc/useradd anymore
+ * INSTALL, useradd: no etc/useradd anymore, provide our own
/etc/default/useradd
2020-01-24 Florian Franzmann <bwlf AT bandrate.org>
* DETAILS: version 4.8.1
diff --git a/security/shadow/INSTALL b/security/shadow/INSTALL
index 06a08f3..17aa5c6 100755
--- a/security/shadow/INSTALL
+++ b/security/shadow/INSTALL
@@ -8,7 +8,11 @@ make_normal &&
install_config_file etc/limits $INSTALL_ROOT/etc/limits &&
install_config_file etc/login.access $INSTALL_ROOT/etc/login.access &&
install_config_file etc/login.defs $INSTALL_ROOT/etc/login.defs &&
+cp ${SCRIPT_DIRECTORY}/useradd etc/useradd &&
+sed -i -e 's,^HOME=.*$,HOME='"$SHADOW_HOME"',' etc/useradd &&
+mkdir -p $INSTALL_ROOT/etc/default &&
mkdir -p ${INSTALL_ROOT}${SHADOW_HOME} &&
+install_config_file etc/useradd $INSTALL_ROOT/etc/default/useradd &&
cp -fv $SCRIPT_DIRECTORY/adduser $INSTALL_ROOT/usr/sbin &&
cp -fv $SCRIPT_DIRECTORY/deluser $INSTALL_ROOT/usr/sbin
diff --git a/security/shadow/useradd b/security/shadow/useradd
new file mode 100644
index 0000000..3a95768
--- /dev/null
+++ b/security/shadow/useradd
@@ -0,0 +1,8 @@
+# useradd defaults file
+GROUP=users
+HOME=/home
+INACTIVE=-1
+EXPIRE=
+SHELL=/bin/bash
+SKEL=/etc/skel
+CREATE_MAIL_SPOOL=no
- [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (11272e987d91d41c3d6a4ce4da95ba1bda190dc2), Pavel Vinogradov, 07/23/2021
Archive powered by MHonArc 2.6.24.