File permissions after FTP push

Lukas Zapletal lukas91 at zapletalovi.com
Wed Mar 4 09:21:07 GMT 2009


> Your ftp server forbids anonymous users to read the files you
> upload by default, you chose a different approach, fine, but
> under different contexts replicating the local permissions to the
> remote site may not make sense or even be dangerous.

Well its not like that. My server allows that. I thing this is the 
situation:

1) I nave my umask set that all newly created dirs/files are not 
readable by group or other (700/600)

2) My repo was created with these permissions (of course)

3) I have pushed my branch to a FTP site and Bazaar sets permissions
with SITE CHMOD commands to 700/600. Thats ok.

4) Apache (HTTP) cannot read those files then.

I think the only "problem" is with explicit setting of permissions on
the FTP server. In the Midnight Commander for example I have the 
possibility to untick [x] Keep attributes (or something like that). In 
Bazaar its not possible AFAIK.

It would be nice to have this feature in the authorization.conf - 
something like default_perms. It could be used by users in such 
situations described above.


I you agree I could submit some feature request. Or maybe I can try to 
make a patch ;-)

LZ

-- 
Lukáš Zapletal
http://lukas.zapletalovi.com




More information about the bazaar mailing list