Cutts III, James H. wrote:

> I have an application using the Net::FTP module to move files from a
> Windows system to a RH Linux box.  The application copies the file and
> directory structure across the systems.
> 
> The files that get transferred to the Linux box end up with the
> permissions of "-rw-------" (600).  I need the rights to be at least
> "-rw-rw-r--" (664).
> 
> The directories that get created have similarly restrictive permissions
> of "drwx------" (700).  I need the rights to be at least "drwxr-xr-x"
> (755).
> 
> I can't seem find out how to change the permissions via the Net::FTP
> module.  I can do it manually from the command line via the chgmod
> command but that defeats the purpose of automation.

Have you tried using a 'site' command with args of 'chmod 664 filename.ext'
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to