[MacPorts] #19861: launchd script for postgresql83-server doesn't work due to disabled shell
#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
#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 --------------------------------+------------------------------------------- Changes (by macsforever2000@…): * cc: jwa@… (added) * owner: mww => mww@… Comment: Note: full email addresses must be used in Trac. -- Ticket URL: <http://trac.macports.org/ticket/19861#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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: tiger | Port: postgresql83-server --------------------------------+------------------------------------------- Changes (by jmr@…): * keywords: => tiger -- Ticket URL: <https://trac.macports.org/ticket/19861#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts