I have a folder data
, where I programatically create new folders inside it. That's why I want all of these folders to have 777 permissions - because I also create files inside those folders later.
How can I do that?
I tried chmod 777 data
, tried chmod -R 777 data
- nothing works. Data folder has 777 permissions, but when I create new folder inside, this new folder doesn't have 777 permissions.
How can I solve this?