diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:46:56 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:46:56 +0000 |
commit | 2dd01f6cc0c6333b58c3e77f3d8a3dca116a1c8b (patch) | |
tree | 96185c3fd8772392c9989835f1b9954b5aadb9d8 /debian/passwd.postinst | |
parent | Adding upstream version 1:4.13+dfsg1. (diff) | |
download | shadow-2dd01f6cc0c6333b58c3e77f3d8a3dca116a1c8b.tar.xz shadow-2dd01f6cc0c6333b58c3e77f3d8a3dca116a1c8b.zip |
Adding debian version 1:4.13+dfsg1-4.debian/1%4.13+dfsg1-4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/passwd.postinst')
-rw-r--r-- | debian/passwd.postinst | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/passwd.postinst b/debian/passwd.postinst new file mode 100644 index 0000000..f6d5221 --- /dev/null +++ b/debian/passwd.postinst @@ -0,0 +1,30 @@ +#!/bin/sh + +set -e + +case "$1" in +configure) + if ! getent group shadow | grep -q '^shadow:[^:]*:42' + then + groupadd -g 42 shadow || ( + cat <<EOF +Group ID 42 has been allocated for the shadow group. You have either +used 42 yourself or created a shadow group with a different ID. +Please correct this problem and reconfigure with ``dpkg --configure passwd''. + +Note that both user and group IDs in the range 0-99 are globally +allocated by the Debian project and must be the same on every Debian +system. +EOF + exit 1 + ) + fi + ;; +esac + +# Run shadowconfig only on new installs +[ -z "$2" ] && shadowconfig on + +#DEBHELPER# + +exit 0 |