Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Nov 2005 15:25:57 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Cerion Armour-Brown <cerion@terpsichore.ws>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: running subversion as non-root
Message-ID:  <20051101132557.GA2732@flame.pc>
In-Reply-To: <20051101131654.M27340@terpsichore.ws>
References:  <20051101105745.M78709@terpsichore.ws> <20051101124144.GA1568@flame.pc> <20051101125015.M15158@terpsichore.ws> <20051101125617.GA2318@flame.pc> <20051101131654.M27340@terpsichore.ws>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-11-01 08:16, Cerion Armour-Brown <cerion@terpsichore.ws> wrote:
> On Tue, 1 Nov 2005 14:56:17 +0200, Giorgos Keramidas wrote
> > 
> >     (2) Change the permissions of libaprutil*.so* files to 0755,
> >         which would allow subversion to access the shared
> >         libraries without being in the wheel group.
> 
> My instinct was the same, and I tried this, but there are more libs with the
> same permissions problems...
> /usr/libexec/ld-elf.so.1: Cannot open "/usr/local/lib/libdb-4.2.so.2"
> and if i fix that one...
> /usr/libexec/ld-elf.so.1: Cannot open "/usr/local/lib/apache2/libapr-0.so.9"
> 
> This really doesn't seem the right way of doing things... is there no
> 3rd way?

There's obviously something very wrong with your installed ports.
The permissions of libdb* files here are:

% flame:/usr/local/lib$ ls -ld libdb*
% lrwxr-xr-x  1 root  wheel  -    14 Oct 19 12:39 libdb-4.2.so -> libdb-4.2.so.2
% lrwxr-xr-x  1 root  wheel  -    19 Oct 19 12:39 libdb-4.2.so.2 -> db42/libdb-4.2.so.2
% lrwxr-xr-x  1 root  wheel  -    18 Oct 19 12:39 libdb_cxx-4.2.so -> libdb_cxx-4.2.so.2
% lrwxr-xr-x  1 root  wheel  -    23 Oct 19 12:39 libdb_cxx-4.2.so.2 -> db42/libdb_cxx-4.2.so.2
% lrwxr-xr-x  1 root  wheel  -    15 Aug 14 23:39 libdbh-1.0.so -> libdbh-1.0.so.1
% -rwxr-xr-x  1 root  wheel  - 30248 Aug 14 23:39 libdbh-1.0.so.1
% -rw-r--r--  1 root  wheel  - 32924 Aug 14 23:39 libdbh.a
% lrwxr-xr-x  1 root  wheel  -    15 Aug 14 23:39 libdbh.so -> libdbh-1.0.so.1
% flame:/usr/local/lib$ 

If you used the standard Ports stuff to install these and they
have these broken permissions, it may be a side-effect of a
broken umask setting for the root user.

What do you see if you log in as 'root' and issue:

        # umask

Is this 0022 or something similar, or not?  If not, what value
does it print?

- Giorgos




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051101132557.GA2732>