Bug 10980 - Install script in the RPM doesn't create a user correctly
Install script in the RPM doesn't create a user correctly
Product: Red Hat Linux
Classification: Retired
Component: postgresql (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2000-04-21 23:54 EDT by Dan Nungesser
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-04-24 12:34:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dan Nungesser 2000-04-21 23:54:32 EDT
The install script for postgresql that is supposed to add the postgres
user does not work with the adduser packaged in shadow-utils-19990827-10.
The for the flags is incorrect.  This causes the package to be installed
with all of the files owned by root, which is insecure and makes it
impossible to start when it is initialized as a service with "su -l
postgres" In order to fix it, I had to manually add the user using the
    "useradd -u 26 -o -g postgres -d /var/lib/pgsql -s /bin/bash -
c "PostgreSQL Server" -M -r postgres"
It appears that this version of useradd requests that the uid be the first

and then install the packages.  Now it works like a charm.
Comment 1 Trond Eivind Glomsrxd 2000-04-24 12:34:59 EDT
I can't reproduce this - the same packages work here.

Note You need to log in before you can comment on or make changes to this bug.