curl-users
Re: FTP-upload and file permissions
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 22 Mar 2008 16:07:42 -0700
Date: Sat, 22 Mar 2008 16:07:42 -0700
On Sat, Mar 22, 2008 at 10:19:02PM +0100, Thomas Kühner wrote:
> Whenever I upload files using curl by FTP they end up with permissions 600
> on the server. This is not what I want. Any idea how to influence the file
> permissions when uploading using curl. Had used this command and found no
> option that fits my needs :
>
> curl -T '/Volumes/VOLUMENAME/matrix.tgz' 'ftp://USER:PASS@SERVER/
> matrix.tgz'
I don't think there's any standard FTP command to do that, but a lot of
servers support the 'SITE UMASK' or 'SITE CHMOD' commands. Try adding:
-Q 'SITE UMASK 022'
or:
-Q '-SITE CHMOD 644 matrix.tgz'
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-03-23