[MacPorts] #19861: launchd script for postgresql83-server doesn't work due to disabled shell
MacPorts
noreply at macports.org
Thu Jun 4 06:16:22 PDT 2009
#19861: launchd script for postgresql83-server doesn't work due to disabled shell
--------------------------------+-------------------------------------------
Reporter: alpha@… | Owner: mww
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Keywords: | Port: postgresql83-server
--------------------------------+-------------------------------------------
launchd startup script for PostgreSQL executes pg_ctl with permissions of
the 'postgres' user, using su. The problem is that the 'postgres' user by
default has /usr/bin/false shell which prevents it from executing any
commands with su. In order to make the script work I had to manually
change the shell to /bin/tcsh. I'm using Tiger.
To reproduce:
{{{
# su postgres -c id
[NO OUTPUT AT ALL]
# chsh -s /bin/tcsh postgres
chsh: netinfo domain "." updated
# su postgres -c id
uid=252(postgres) gid=252(postgres) groups=252(postgres)
}}}
--
Ticket URL: <http://trac.macports.org/ticket/19861>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list