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

[TSVN] Re: Apache 2 / Samba permission problems on file copy

From: Jens Scheidtmann <Jens.Scheidtmann_at_bayerbbs.com>
Date: 2005-01-26 20:48:10 CET

"Steve Pavarno" <steve@cwa.co.nz> writes:

[...]
> - Apache web server running Debian Sarge:
> Apache/2.0.52 (Debian GNU/Linux)
> mod_python/3.1.3 Python/2.3.4
> PHP/5.0.3-0.2 mod_perl/1.999.20 Perl/v5.8.4

Where's mod_*svn*?

> - A Samba share publishes a /var/www/audit directory so I can access it from
> my windows box as a mapped network drive

And what's in there? The repository or your working copy?

> This manifests itself in two ways:
>
> 1 - if I use Tortoise to checkout the project through the samba share, none

Into the samba share, or from the samba share?

Which protocol do you use? file:// or http:// or what?

> of the files are readable by the web server. I get a permissions errors in
> several variants including HTTP403 errors and the one below (which looks
> like it comes from PHP?)
> Warning: Unknown: failed to open stream: Permission denied in Unknown on
> line 0
> Warning: Unknown: Failed opening '/var/www/audit/p2.php' for inclusion
> (include_path='.:/usr/share/php') in Unknown on line 0

You have to configure how windows logons map to unix logins.
In addition consult man umask. On Debian systems, apache usually runs
as user www, so you have to make your files world readable, so that
the apache process can read them.

>
> This problem seems to go away if I competely delete the directory and do a
> checkout from the linux command line on the server. Apache is able to serve
> the files correctly.

As which user did you login?
What are the permissions of the file?
Please show ls -dla of a file or directory.

> 2 - Doing copy/paste in windows explorer on a file in a repository. I use

You mean working copy, don't you?
Or do you mean right click D'n'D and "Copy in Subversion"?

> this is a quick and easy way to create a new file with the standard header
> comments included. The result is a file called "Copy of MyFile.php" which I
> then rename. The renamed file has the same permissions problems, even when
> the original works fine. If I copy the file form the linux command line, it
> all works fine. I have done this often on this server before installing
> Tortoise and it worked fine then.

So you do "cp xyz.1 xyz.2"

> For both of the above, file ownership and permissions all look fine. There
> is perhaps some hidden property of the file that I cannot see from Windows
> Explorer or the linux command line?

Possible, but unlikely.

Your terminology is a bit mixed up, can you please clarify?

Jens

-- 
Jens.Scheidtmann@bayerbbs.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Jan 26 20:55:02 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

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