tags:

views:

818

answers:

4

which ftp client or which syntax allows easy chmod of subdirectories?

A: 

To chmod all subdirs from where you are (recursive):

chmod -R *
Tim
+1  A: 

I'm pretty sure Filezilla does it

Eli
+1  A: 

ncftp will support the chmod command if the FTP Server supports it.

Ken Gentle
A: 

As the answer from @Ken G suggests, this is more likely to be a question of "what does the FTP server support".

I tried ncftp (running under Cygwin on Win XP) against Sun FTP running on Solaris 10 (where chmod -R is supported by the o/s version of chmod). I got an error back:

ncftp /work1/jleffler/tmp > chmod -R g+x *
chmod g+x: server said: 'SITE CHMOD -R g+x': command not understood.
chmod *: server said: 'SITE CHMOD -R xx.pl': command not understood.
ncftp /work1/jleffler/tmp >

My suspicion is that few if any systems make it easy. It would be worth checking out whether the NCFTP server helps you.

Jonathan Leffler