New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #120 (closed defect: fixed)

Opened 9 years ago

Last modified 7 years ago

ports tools installed with restricted permissions

Reported by: cmeyer100@… Owned by: kvv@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: DarwinPorts Cc:
Port:

Description

I checked out the latest ports from the server, followed the instructions for installing:

make sudo make install

Then I added /opt/local/bin to my path, restarted Terminal (using Mac OS X 1.2.1 -- Darwin Kernel Version 6.1: Fri Sep 6 23:24:34 PDT 2002; root:xnu/xnu-344.2.obj~2/RELEASE_PPC).

Then tried 'port sync' and got the following permissions error:

[src] % port sync Failed to initialize ports system, portdbpath /opt/local/var/db/dports does not exist and could not be created: can't create directory "/opt/local/var": permission denied

Looking in the Makefile's I see that the directories are created with 'root:wheel' and permission 444.

So it seems either the directories need to set the group to something like 'staff' or the README file needs to indicate that one needs to 'sudo ports ...' commands. I'm not sure which it would be so maybe someone with more knowledge could suggest a solution (or point out where I'm missing something, and point out where I went wrong or a better solution).

Change History

Changed 9 years ago by kevin@…

  • keywords DarwinPorts added; Darwin removed
  • owner changed from bbraun@… to kevin@…
  • product changed from Darwin to DarwinPorts
  • version changed from 6.x to 1.0
  • component changed from Commands to base

Moving to DarwinPorts Product.

Changed 9 years ago by jpm@…

has this been resolved with the recent changes to the darwinports make system?

Changed 9 years ago by cmeyer100@…

  • status changed from new to closed
  • resolution set to fixed

This seems to work now. Resolving as 'Fixed'.

Note: See TracTickets for help on using tickets.