Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Set default useradd shell to /usr/bin/bash.
Browse files Browse the repository at this point in the history
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

git-svn-id: file:///srv/repos/svn-packages/svn@458298 eb2447ed-0c53-47e4-bac8-5bc4a241df78
  • Loading branch information
dvzrv authored and svntogit committed Oct 18, 2022
1 parent 1a8d998 commit 2a23e5b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
4 changes: 2 additions & 2 deletions trunk/PKGBUILD
Expand Up @@ -100,8 +100,8 @@ package() {
# 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/"
Expand Down
24 changes: 21 additions & 3 deletions trunk/useradd.defaults
@@ -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

0 comments on commit 2a23e5b

Please sign in to comment.