Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9829 - passwd problem with postgresql-7.2.3-r1
Summary: passwd problem with postgresql-7.2.3-r1
Status: RESOLVED DUPLICATE of bug 10367
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-28 07:42 UTC by Martin Vollrathson
Modified: 2007-09-22 23:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Vollrathson 2002-10-28 07:42:31 UTC
postgresql-7.2.3-r1 has a new init-script. This init-script uses su -c, which
causes pg_ctl to be started through the user postgres' shell. By default, the
shell for the user postgres is /bin/false if postgresql had been installed
before. Thus, /etc/init.d/postgresql start fails if you do not manually change
/bin/false to /bin/bash in /etc/passwd.

This is not very nice. It took me a while to figure out what was wrong.
Currently, the ebuild uses useradd to add postgres. It should probably also use
usermod to set the shell to /bin/bash if the user postgres already exists.

Also, since postgresql-7.2.3-r1 no longer (as far as I can see) uses sudo, the
ebuild should not depend on app-admin/sudo.
Comment 1 SpanKY gentoo-dev 2002-10-28 10:54:52 UTC
giving non-interactive accounts a valid shell is bad 
Comment 2 Martin Vollrathson 2002-10-28 17:00:00 UTC
Yes. Perhaps go back to using sudo instead of su -c, then.
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-07-09 12:08:22 UTC
how about 7.3.3 ?
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-07-09 12:10:41 UTC

*** This bug has been marked as a duplicate of 10367 ***