running subversion as non-root

Cerion Armour-Brown cerion at terpsichore.ws
Tue Nov 1 04:50:19 PST 2005


On Tue, 1 Nov 2005 14:41:45 +0200, Giorgos Keramidas wrote
> On 2005-11-01 05:57, Cerion Armour-Brown <cerion at terpsichore.ws> wrote:
> > Running subversion as root works fine, but under user 'svn' I get a load of
> > permission problems, e.g.
> > /usr/libexec/ld-elf.so.1: Cannot open
"/usr/local/lib/apache2/libaprutil-0.so.9"
> >
> > I fixed this by adding svn to group wheel, but am not sure if this is 'the
> > right way'.   Is there a standard solution to this?
> 
> What are the permissions of all the path components up to and
> including the library that fails to load?
> 
> Something like this could print all the path components and their
> permissions:
> 
>     ls -ld $(
>         libpath='/usr/local/lib/apache2/libaprutil-0.so.9'
>         while [ -n "${libpath}" ] && [ ! "${libpath_prev}" = 
> "${libpath}" ]; do            echo "${libpath}" 	    libpath_prev="${libpath}"
> 	    libpath=$(dirname "${libpath}")
>         done )


drwxr-xr-x  15 root  wheel    512 Jun  3 10:05 //
drwxr-xr-x  16 root  wheel    512 Oct 31 15:05 /usr/
drwxr-xr-x  17 root  wheel    512 Oct 31 15:45 /usr/local/
drwxr-xr-x  14 root  wheel   4608 Nov  1 10:09 /usr/local/lib/
drwxr-xr-x   2 root  wheel    512 Oct 31 13:43 /usr/local/lib/apache2/
-rwxr-x---   1 root  wheel  89832 Oct 31 13:43
/usr/local/lib/apache2/libaprutil-0.so.9*
lrwxr-x---  1 root  wheel      17 Oct 31 13:43
/usr/local/lib/apache2/libaprutil-0.so@ -> libaprutil-0.so.9

this look like yours?
Cerion


More information about the freebsd-questions mailing list