From 716a492f46e41548947f7fd9b8a172279edc8426 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 14 Nov 2004 22:25:36 +0000 Subject: debian: Create echolot user group in proper gid space. --- NEWS | 3 ++- debian/echolot.postinst.in | 16 ++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/NEWS b/NEWS index 87e05dc..b8210ef 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ Changes in version - - * Add disable and enable to allowed commands in debian's init + * debian: Add disable and enable to allowed commands in init script + * debian: Create echolot user group in proper gid space. Changes in version 2.1.6 - 2004-08-07 * Catch a possible use of undefined values in a log trace() call. diff --git a/debian/echolot.postinst.in b/debian/echolot.postinst.in index 912a69b..1f68dc8 100755 --- a/debian/echolot.postinst.in +++ b/debian/echolot.postinst.in @@ -5,12 +5,16 @@ . /usr/share/debconf/confmodule # Make sure the echolot user exists -getent group echolot >/dev/null 2>&1 || ( - echo Adding echolot group - addgroup echolot ) -getent passwd echolot >/dev/null 2>&1 || ( - echo Adding echolot user - adduser --system --shell /bin/bash --home /var/lib/echolot --ingroup echolot --gecos "Echolot Pinger" echolot ) +adduser --quiet \ + --quiet \ + --system \ + --disabled-password \ + --shell /bin/bash \ + --home /var/lib/echolot \ + --no-create-home \ + --group \ + --gecos "Echolot Pinger" \ + echolot # Give the echolot user write permissions to /var/log/echolot/echolot.log touch /var/log/echolot/echolot.log -- cgit v1.2.3