Red Hat Bugzilla – Bug 10980
Install script in the RPM doesn't create a user correctly
Last modified: 2008-05-01 11:37:55 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.
I can't reproduce this - the same packages work here.