install-sh - permission denied

Paul Schmehl pschmehl_lists at tx.rr.com
Tue Oct 20 17:49:09 UTC 2009


--On Tuesday, October 20, 2009 11:49:49 -0500 Paul Schmehl 
<pschmehl_lists at tx.rr.com> wrote:

>
> I'm working on a new port, and I'm getting this error during make install:
>
> test -z "/usr/local/bin" || .././install-sh -c -d "/usr/local/bin"
> .././install-sh: Permission denied
>
> Can anyone tell me why I'm getting this?
>
> My system is 7.2 STABLE
> 7.2-STABLE FreeBSD 7.2-STABLE #13: Thu Sep 24 09:02:53 CDT 2009
>
> Ports are csuped daily.
>

As a followup - I doing all of this after suing to root, so it's hard to 
understand why permissions would be a problem.  This is only happening in this 
new port I'm trying to develop, which seems even stranger, because this is an 
exact copy of an existing port that I maintain (which builds fine - I checked 
just a few minutes ago), which some editing done to the Makefile to download 
and build a new version of the same software.

There's no NFS mounts involved.  All partitions are mounted normally.

# mount
/dev/ad8s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad8s1f on /tmp (ufs, local, soft-updates)
/dev/ad8s1d on /usr (ufs, local, soft-updates)
/dev/ad8s1e on /var (ufs, local, soft-updates)
/dev/ad10s1d on /data (ufs, local, soft-updates)

Perms on /usr/local are "standard".

# ls -lsa /usr/local/
total 196
  2 drwxr-xr-x   22 root   wheel    512 Sep 19 12:11 .
  2 drwxr-xr-x   19 root   wheel    512 Feb 20  2008 ..
 38 drwxr-xr-x    6 root   wheel  38912 Oct 20 12:43 bin
  2 drwxr-xr-x    3 root   wheel    512 Feb 22  2008 com
  2 drwxr-xr-x    9 root   wheel    512 Sep 18 22:20 diablo-jdk1.6.0
  2 drwxr-xr-x    7 root   wheel    512 Sep 18 22:15 diablo-jre1.6.0
  2 drwxr-xr-x    2 root   wheel    512 Feb 21  2008 env
  4 drwxr-xr-x   40 root   wheel   2560 Oct 20 12:43 etc
 34 drwxr-xr-x  210 root   wheel  34816 Oct  9 13:05 include
  4 drwxr-xr-x    3 root   wheel   2560 Sep 24 16:07 info
 78 drwxr-xr-x   83 root   wheel  78848 Oct  9 13:05 lib
  2 drwxr-xr-x    8 root   wheel    512 Jul 11 14:37 libdata
  2 drwxr-xr-x   10 root   wheel   2048 Sep 24 16:07 libexec
  2 drwxr-xr-x   33 root   wheel   1024 Oct 10 09:42 man
  2 drwxr-xr-x   11 root   wheel    512 Jun 16 16:39 nessus
  2 drwxr-xr-x    2 pgsql  pgsql    512 Apr 11  2009 pgsql
  4 drwxr-xr-x    2 root   wheel   3072 Sep 24 15:09 sbin
  4 drwxr-xr-x  156 root   wheel   3072 Sep 24 16:06 share
  2 drwxr-xr-x    4 root   wheel    512 Sep 18 22:14 src
  2 drwxr-xr-x    2 root   wheel    512 Aug  6 12:57 translations
  2 drwxr-xr-x    4 root   wheel    512 Feb 22  2008 var
  2 drwxr-xr-x    3 root   wheel    512 Sep 19 11:58 www


-- 
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
*******************************************
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson



More information about the freebsd-ports mailing list