Opened 9 years ago

Last modified 9 years ago

#46524 new defect

smartmontools: Permission denied for re-naming operation

Reported by: JadeNB1729@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: takanori@…
Port: smartmontools

Description

When I try to install smartmontools, it fails with the error:

error renaming "/$MACPORTS/base/var/macports/software/smartmontools/mpextractmK1e9ldZ/$MACPORTS/base/var/run/.turd_smartmontools" to "/$MACPORTS/base/var/run/.turd_smartmontools": permission denied

I don't think that this can be smartmontools-specific, but other ports seem to install without problems. I have not intentionally modified any permissions, but, indeed, the relevant directory is not world-writeable:

$ ls -ld $MACPORTS/var/run
drwxr-xr-x 3 root everyone 102 Dec 21 17:11 $MACPORTS/var/run

I installed, and run, MacPorts without root privileges. The only exception is dbus, which I installed as root because the install failed without root privileges.

Attachments (1)

main.log (68.6 KB) - added by JadeNB1729@… 9 years ago.
Log from smartmontools installation

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by JadeNB1729@…

Attachment: main.log added

Log from smartmontools installation

comment:1 in reply to:  description Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: takanori@… added
Port: smartmontools added
Summary: Permission denied for re-naming operationsmartmontools: Permission denied for re-naming operation

Replying to JadeNB1729@…:

I have not intentionally modified any permissions, but, indeed, the relevant directory is not world-writeable:

Nor should it be. The port installs fine for me; I don't know why you're experiencing this problem.

comment:2 Changed 9 years ago by JadeNB1729@…

Nor should it be. The port installs fine for me; I don't know why you're experiencing this problem.

Do you run MacPorts without root privileges? The directory is owned, and only writeable by, root. (I don't know how that happened, since I installed MacPorts without root privileges, unless it somehow got chown'd when I installed dbus.) I did not have problem installing any other packages, so this is not a universal problem; and it worked fine once I gave the group (everyone) write permission to the directory, so that seems to be the only problem.

Note: See TracTickets for help on using tickets.