Date: Tuesday, October 18, 2022 @ 09:39:51
  Author: dvzrv
Revision: 458298

Set default useradd shell to /usr/bin/bash.

Add comments (taken from upstream) to useradd defaults file.
Set SHELL to /usr/bin/bash as Arch Linux is a /usr and bin merge distribution.
https://www.freedesktop.org/wiki/Software/systemd/TheCaseForTheUsrMerge/
https://bugs.archlinux.org/task/33677

Modified:
  shadow/trunk/PKGBUILD
  shadow/trunk/useradd.defaults

------------------+
 PKGBUILD         |    4 ++--
 useradd.defaults |   24 +++++++++++++++++++++---
 2 files changed, 23 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-18 04:36:42 UTC (rev 458297)
+++ PKGBUILD    2022-10-18 09:39:51 UTC (rev 458298)
@@ -100,8 +100,8 @@
   # license
   install -vDm 644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
 
-  # useradd defaults
-  install -vDm 600 "../useradd.defaults" "$pkgdir/etc/default/useradd"
+  # custom useradd(8) defaults (not provided by upstream)
+  install -vDm 600 ../useradd.defaults "$pkgdir/etc/default/useradd"
 
   # systemd units
   install -vDm 644 "../shadow.timer" -t "$pkgdir/usr/lib/systemd/system/"

Modified: useradd.defaults
===================================================================
--- useradd.defaults    2022-10-18 04:36:42 UTC (rev 458297)
+++ useradd.defaults    2022-10-18 09:39:51 UTC (rev 458298)
@@ -1,9 +1,27 @@
-# useradd defaults file for ArchLinux
-# original changes by TomK
+# Default values for useradd(8)
+#
+# The SHELL variable specifies the default login shell on your
+# system.
+SHELL=/usr/bin/bash
+
+# The default group for users
 GROUP=users
+
+# The default home directory.
 HOME=/home
+
+# The number of days after a password expires until the account is permanently
+# disabled
 INACTIVE=-1
+
+# The default expire date
 EXPIRE=
-SHELL=/bin/bash
+
+# The SKEL variable specifies the directory containing "skeletal" user files;
+# in other words, files such as a sample .profile that will be copied to the
+# new user's home directory when it is created.
 SKEL=/etc/skel
+
+# Defines whether the mail spool should be created while
+# creating the account
 CREATE_MAIL_SPOOL=no

Reply via email to