[MacPorts] #29596: PostgreSQL 8.4 post-install intructions doesn't work with umask 027

MacPorts noreply at macports.org
Thu May 26 06:07:07 PDT 2011


#29596: PostgreSQL 8.4 post-install intructions doesn't work with umask 027
-------------------------------------+--------------------------------------
 Reporter:  oscar.brynolf@…          |       Owner:  macports-tickets@…                   
     Type:  defect                   |      Status:  new                                  
 Priority:  Low                      |   Milestone:                                       
Component:  ports                    |     Version:  1.9.2                                
 Keywords:  umask, post-install      |        Port:  postgresql84-server                  
-------------------------------------+--------------------------------------
 I'm not sure if postgresql84 is supposed to work with umask 027, but
 anyway, this happens:

 ———

 I'm running OSX with '`umask 027`' in '`/etc/launchd-user.conf`'. After
 '`port install posgresql84-server`', running this line of the post-install
 instructions:


 {{{
 $ sudo su postgres -c '/opt/local/lib/postgresql84/bin/initdb -D
 /opt/local/var/db/postgresql84/defaultdb'
 }}}

 result in

 {{{
 ...
 initdb: could not access directory
 "/opt/local/var/db/postgresql84/defaultdb": Permission denied
 }}}


 and


 {{{
 $ ls -l /opt/local/var/db
 drwxr-x---   root  admin ...  postgresql84/
 }}}


 The problem is solved with


 {{{
 $ sudo chmod o+rx /opt/local/var/db/postgresql84
 }}}


 ———

 I don't know where/what/how to solve this, or, like I said, if it's even a
 proper problem.

 Probably related to at least #14706, but not the same.


 Thanks!
 /Oscar

-- 
Ticket URL: <https://trac.macports.org/ticket/29596>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list