subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Levy <andy.l...@gmail.com>
Subject Re: Subversion user problem?
Date Fri, 22 Jul 2011 02:01:27 GMT
On Thu, Jul 21, 2011 at 21:31, Andy Canfield <andy.canfield@pimco.mobi> wrote:
> I ran into a problem with a web site I am developing under Drupal; a problem
> related to user. And I suspect that the same problem arises witn Subversion.
>
> On my local copy of that site, sometimes the PHP code creates a directory
> and puts files into that directory.  The directory had standard permissions
> - readable by all but writable only by owner. But that directory is owned by
> www-data because apache/PHP created the directory.
>
> But when I zip it up, upload it to the server in Hong Kong, and unzip it,
> all directories are owned by the user on the server who unzipped the
> directory. The permissions were preserved; still readable by all but
> writable only by the owner. But the owner was no longer the Apache user, it
> was the user who unzipped the directory. I had to invent two shell scripts;
> one to run on my computer finding all the directories owned by Apache on my
> machine, and the second run on the server making all those directories
> writable by all.

Use tar to package your files for transport, and it'll preserve the
ownership & permissions when extracting, assuming you use tar
properly.

http://www.gnu.org/software/automake/manual/tar/Attributes.html

Mime
View raw message