Opened 18 years ago

Closed 18 years ago

Last modified 16 years ago

#120 closed defect (fixed)

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 (3)

comment:1 Changed 18 years ago by kevin@…

Component: Commandsbase
Keywords: DarwinPorts added; Darwin removed
Owner: changed from bbraun@… to kevin@…
product: DarwinDarwinPorts
Version: 6.x1.0

Moving to DarwinPorts Product.

comment:2 Changed 18 years ago by jpm@…

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

comment:3 Changed 18 years ago by cmeyer100@…

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.