Wordica
Wordica

Reputation: 2597

Chmod for all subdirectory

I have directory like "system". This directory has about 1200000 subdirectories. How can I set chmod 777 for "system" and all of it subdirectories. I try do this like that:

find /public/system -type d -exec chmod 777 {} +

but after about one hour it fail and logout me from server.

Right now I try do this with FileZilla in Mac OS but it change chmod for more then 24 hours right now and I do not see end :)

Upvotes: 1

Views: 1189

Answers (1)

Martin
Martin

Reputation: 621

try with -R (for recursive)

sudo chmod 777 /public/system -R

Upvotes: 2

Related Questions