[MacPorts] #34954: user macports needs write access on Preferences directory
#34954: user macports needs write access on Preferences directory --------------------------------------+------------------------------------- Reporter: nonstop.server@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.1 Keywords: | Port: --------------------------------------+------------------------------------- The system log gets filled with messages from macports warning about a deny on file-write-create operations. {{{ 6/22/12 3:50:50.549 PM sandboxd: ([1231]) mdworker(1231) deny file-write- create /opt/local/var/macports/home/Library/Preferences/com.apple.LaunchServices.plist.lockfile }}} It seems the macports user (and it's processes) need write access on directory * /opt/local/var/macports/home/Library/Preferences/[[BR]] After granting user macports write access on the directory the following two files are created. {{{ -rw------- 1 macports admin 58 Jun 23 00:47 com.apple.LaunchServices.plist -rwxr-xr-x 1 macports admin 0 Jun 23 00:47 com.apple.LaunchServices.plist.lockfile }}} -- Ticket URL: <https://trac.macports.org/ticket/34954> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34954: user macports needs write access on Preferences directory -------------------------------+-------------------------------- Reporter: nonstop.server@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.1 Resolution: | Keywords: Port: | -------------------------------+-------------------------------- Comment (by ob+macport@…): Same problem, how did you fix this? -- Ticket URL: <https://trac.macports.org/ticket/34954#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34954: user macports needs write access on Preferences directory -------------------------------+-------------------------------- Reporter: nonstop.server@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.1 Resolution: | Keywords: Port: | -------------------------------+-------------------------------- Comment (by nonstop.server@…): Replying to [comment:1 ob+macport@…]: To resolve this issue you need to grant the user macports write access to the Preferences directory.[[BR]] You can achieve this by adding an ACL on this directory. {{{ % sudo chmod +a "macports allow write" /opt/local/var/macports/home/Library/Preferences }}} After you added the ACL, the access mode and ACL on the Preferences directory should look like this: {{{ % ls -dehl /opt/local/var/macports/home/Library/Preferences drwxr-xr-x+ 2 root admin 204B Jul 11 00:19 /opt/local/var/macports/home/Library/Preferences 0: user:macports allow add_file }}} -- Ticket URL: <https://trac.macports.org/ticket/34954#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34954: user macports needs write access on Preferences directory -------------------------------+-------------------------------- Reporter: nonstop.server@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 2.1.1 Resolution: | Keywords: Port: | -------------------------------+-------------------------------- Comment (by egall@…): Replying to [comment:2 nonstop.server@…]:
Replying to [comment:1 ob+macport@…]:
To resolve this issue you need to grant the user macports write access to the Preferences directory.[[BR]] You can achieve this by adding an ACL on this directory. {{{ % sudo chmod +a "macports allow write" /opt/local/var/macports/home/Library/Preferences }}} After you added the ACL, the access mode and ACL on the Preferences directory should look like this: {{{ % ls -dehl /opt/local/var/macports/home/Library/Preferences drwxr-xr-x+ 2 root admin 204B Jul 11 00:19 /opt/local/var/macports/home/Library/Preferences 0: user:macports allow add_file }}}
MacPorts should be able to delete files from its Preferences directory, too, not just add them; otherwise you end up with a bunch of old plists littering the folder. -- Ticket URL: <https://trac.macports.org/ticket/34954#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts