Hi, thanks for your reply. I need to execute chmod or chown on remote machine. Recursively.
I would like to have files 660 and dirs 770 on remote machine after the synchronization. I can do it when I'm connected to the server: $ find /path/to/dir -type d | xargs chmod 0770 $ find /path/to/dir -type f | xargs chmod 0660 But this doesn't work in lftp. Thanks for any advice, Michal Complex wrote: > If I understand you correctly, you want to change the permissions on > your local files. > > Type an exclamation mark to issue the command to your local system: > > !chmod 0770 myDirPath > > That is how I'd do it on a *nix system; I have little experience using > cygwin but I gather it's the same. > > > On 9/30/07, michal.720 <[EMAIL PROTECTED]> wrote: >> Hi, >> I'm just playing with lftp on Windows using cygwin. The path >> /cygdrive/c/ is a shortcut to C:\ >> >> I use this command to synchronize my project with remote server. >> >> lftp -c ' >> open sftp://user:[EMAIL PROTECTED]/path/to/dir/ >> lcd /cygdrive/c/path/to/dir/; >> mirror -R --no-perms >> '; >> >> In this case (if there's --no-perms) files are 0644, directories are 0755. >> >> >> >> If I use this command (without --no-perms) files and dirs are 0700: >> >> lftp -c ' >> open sftp://user:[EMAIL PROTECTED]/path/to/dir/ >> lcd /cygdrive/c/path/to/dir/; >> mirror -R >> '; >> >> >> Is there a way how to chown all files to let say 0660 and all dirs to >> 0770? I know there's a chmod command but I don't know how to use it for >> dir os files only. >> >> >> Thanks. >> Michal >> > >
