chmod recursively via FTP

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
sagemaniac
Junior Member
Junior Member
Posts: 8
Joined: 2004-09-14, 09:33 UTC

chmod recursively via FTP

Post by *sagemaniac »

Hello there,

when using FTP Connect, Change Attributes loses the Recurse subdirectories option.

Is there another way to chmod files and folders recusively?

I have FTP only access to a cheap-hoster linux-box and need to chmod -R 666 some 1200 *.dat *.lock *.dat.bak files in 67 subdirectories.

So far I have used Aldos Macro Recorder and TC to do the job.
Still had to select some folders manually though.

Thanks,

Richard Dvorák
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Maybe it could work trough a SITE command, which, if the server supports it, sends the command as a normal command line command, like "SITE chmod 744 abc"...

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
sagemaniac
Junior Member
Junior Member
Posts: 8
Joined: 2004-09-14, 09:33 UTC

Post by *sagemaniac »

Hacker wrote:Maybe it could work trough a SITE command...
Quick answer, thanks!

Does not work on this server.
Send Command tells me:
SITE chmod -R 777 *.dat
550 777 *.dat: No such file or directory
I tried all sorts of combinations - even named one file...
sagemaniac
Junior Member
Junior Member
Posts: 8
Joined: 2004-09-14, 09:33 UTC

Post by *sagemaniac »

It seems the server will not accept neither the -R nor wildcards such as * within the SITE chmod command...
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

I guess find and pipes don't work...?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
sagemaniac
Junior Member
Junior Member
Posts: 8
Joined: 2004-09-14, 09:33 UTC

Post by *sagemaniac »

Hacker wrote:I guess find and pipes don't work...?
Nope
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Mmm, then I am out of ideas, sorry. Maybe using another FTP client.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply