Opened 10 years ago
Last modified 10 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)
Change History (3)
Changed 10 years ago by JadeNB1729@…
comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | takanori@… added |
---|---|
Port: | smartmontools added |
Summary: | Permission denied for re-naming operation → smartmontools: 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 10 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.
Log from smartmontools installation