[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automating x permission on a file.



peasthope@shaw.ca wrote:
> CONTEXT
>   Squeeze system with vsftpd with default umask, 077.  
>   A script file, blah.sh for example, is put to the 
>   system.  The file arrives with permissions 600.

Is there a constraint that you must use ftp?  Because it is terrible
for this context of PUTting a file.  It sends passwords in the clear
for a start and therefore is completely insecure.

> PROBLEM
>   Each time blah.sh is put on the system, "chmod 700 blah.sh" 
>   can make it executeable.  The ftp client does not 
>   provide SITE CHMOD.  What alternatives to the interactive 
>   chmod are available?  Is this a job for ACL?

This would be much better for rsync over ssh.  Start using rsync using
the -a option to preserver everything including permissions.

  rsync -av /from/here/file1 host.example.com:/to/there/dir/

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: