Re: [SLUG] Changing file permissions on a remote ftp server.

From: Brett Simpson (Simpsonb@hillsboroughcounty.org)
Date: Wed Jan 09 2002 - 13:45:43 EST


Thanks a bunch. That's worked great since I was already using ncftpput to place the files on the remote ftp server.

Brett

>>> btt@nethouse.com 01/09/02 11:27AM >>>
On Wed, Jan 09, 2002 at 10:20:50AM -0500, Brett Simpson wrote:
> Hi,
> Does anyone know of a way to change the permissions of a file on a
> remote ftp server? I currently have a bash shell script that uploads
> a file to an ftp server but the admin of that server has asked me to
> set to permissions to 666 for the file. I've tried Ncftpput but it
> doesn't have any options for automating setting permissions. I tried
> automating just chmod through the kermit shell (just for setting
> permissions) but it won't allow the use of wildcards with chmod. Can
> perl be invoked in one line to connect to an ftp server and chmod a
> file?

ncftpput -U <mask> will set the umask for the session. IIRC, 0111 will
 yield permissions of 0666.

Good Luck...



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:31:12 EDT