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

Re: [Sheflug] not strictly Linux : CHMOD -R



Chris Johnson wrote:

Some ftp daemons have a chmod command, AFAIK they usually
can't be used
recursively but you may be able to chmod all the files in the current
directory. Try running 'help' as a raw ftp command, this will
give you a
list of available commands. Use 'help command' for more info on each
command.

Tom
Thanks for that.  I've tried SmartFTP but it although it will SITE CHMOD 707
a file or directory it won't SITE CHMOD -R 707 a directory.


Chris
Hi Chris,
You'll need to get 'help command' from ftpd, not your client.
Try to use simple command line ftp client - talk to ftp server directly.

> I have a feeling it will be a case of somehow using FTP to get a list >of all
> the files and then passing this list to a script that will CHMOD them >all
> individually. Any suggestions?
I would doubt that such script (processing list of files) would exists on standard linux installation as it would pose a major security threat.
But if you've got ssh access to this box, nothing will stop you from creating such hole.
Cheers,
Denis.


___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

GNU the choice of a complete generation.