Permission error when developing port

Ryan Schmidt ryandesign at macports.org
Sun Jan 20 20:33:26 PST 2013


On Jan 20, 2013, at 14:32, Lawrence Velázquez <larryv at macports.org> wrote:

> On Jan 20, 2013, at 11:58 AM, Brandon Allbery <allbery.b at gmail.com> wrote:
> 
>> On Sun, Jan 20, 2013 at 11:45 AM, Watson Ladd <watsonbladd at gmail.com> wrote:
>> $sudo port install smlnj
>>> Error: Unable to execute port: could not read "/Users/watsonladd/ports/lang/smlnj/Portfile": permission denied
>>> 
>>> This is very odd: the permissions are 644, and naturally sudo should be giving port root permissions which would allow it to do this.
>> 
>> MacPorts does not do builds as root, but as the macports user.  Chances are something along the path (like your home directory) is preventing access to the macports user. 
> 
> This is probably the issue. I personally set up ACLs giving the macports user access to my ports tree, so I can keep the permissions on my home directory suitably tight.

To my knowledge, our documentation still dates from a time before the GSoC-08 Privileges branch was merged in; if someone could document how to set up such ACLs, or other solutions to the issue, that would be helpful.





More information about the macports-users mailing list