[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: is there any web script to execute "svn checkout" via web without accessing via shell?

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-03-14 19:29:02 CET

On Mar 14, 2007, at 05:29, thomas Armstrong wrote:

> On 3/14/07, thomas Armstrong wrote:
>
>> Thank you very much for your answer. I did not check error output :(
>>
>> I got this message:
>> ---
>> "Can't open file '/root/.subversion/servers': Permission denied"
>> ---
>>
>> Ok, but I really execute '/home/www/project/update.sh', and inside it
>> I check all the env variables, and they are *the same* as when I
>> execute it via shell:
>> LOGNAME=root
>> USER=root
>> ...
>>
>> I suppose I can fix this issue by chmodding
>> '/root/.subversion/servers' file, but I don't find any explanation
>> about it.
>
> Odd. I chmoded 777 '/root/.subversion/' directory and it doesn't
> work either.
>
> I'm to investigate on changing users within shell script...

I have seen the problem before. I assume it's because the Apache
server does in fact start as root, but then changes to a lesser-
privileged user early in the startup process. That's how it works.
That's why part of it (including some part of the Subversion module,
I guess) still thinks it's root, and that it should look in
root's .subversion directory.

Just changing the permissions of /root/.subversion will not help,
because the permissions of /root itself are still blocking access for
other users. And you probably don't want all users to be able to
access everything in /root.

Have you tried telling Subversion to use a different config
directory? Like:

cd /home/www
mkdir .subversion
svn \
--username foo \
--password bar \
--config-dir /home/www/.subversion \
checkout http://svn.mydomain.com/project

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 14 19:29:30 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.