File permissions after FTP push

Vincent Ladeuil v.ladeuil+lp at free.fr
Mon Mar 2 17:29:13 GMT 2009


>>>>> "LZ" == Lukas Zapletal <lzap at seznam.cz> writes:

    LZ> Hello,

    LZ> I am pushing my repos via FTP on my site and making it
    LZ> public with Apache (HTTP). The problem is when I create
    LZ> my repo and push it via FTP the permissions of all files
    LZ> and directories in the .bzr dir is 700. This means Apache
    LZ> (running under different user) is not able to read.

bzr itself try to set chmod bits as 755 or 644 by default if the
server supports it. Try to look at your .bzr.log file for
messages like:

  "FTP site chmod: setting permissions to %s on %s",
  "FTP Could not set permissions to %s on %s. %s",

If you end up with 700, you should also check that your ftp
server support the chmod bits and what umask it is enforcing.

    LZ> My questions:

    LZ> 1) How can I modify rights on-the-fly (e.g. by
    LZ> configuring something in authentization.conf -
    LZ> default_rights or something)? Is it even possible?

No. I agree that it will be a useful addition.

    LZ> 2) Should I modify umask before invoking bzr command
    LZ> locally to have all rights set properly (e.g. 755)?

On the server side.

    LZ> 3) Is it possible to re-push my current branch with
    LZ> correct permissions? I think this could be done by simply
    LZ> deleting the repo on the FTP, correcting permissions and
    LZ> re-pushing on the same location?

If you can modify the server settings, yes.

What server are you using ? OS ? Version ? bzr version ?

     Vincent





More information about the bazaar mailing list