LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Default permission on download folder (https://www.linuxquestions.org/questions/linux-newbie-8/default-permission-on-download-folder-4175598784/)

turiyain 02-02-2017 04:54 AM

Default permission on download folder
 
Hi All,

I have a folder /abc/cap/download/. Where some important documents are downloaded for necessary processing. I want to give the permission to all the files downloaded in the above mentioned folder as 666 automatically.

Can you help that how can be it done.

Thanks.

hazel 02-02-2017 05:31 AM

I don't think there is a way of letting a directory set permissions for its contents, but you can set a user mask for the download process. For example, if you are using a script to download these files, you could include "umask 000" in the script. Then all the files created by the script would have 666.

Turbocapitalist 02-02-2017 05:40 AM

Those are almost certainly the wrong permissions, o=rw is almost never correct. What problem are you trying to solve?

If you want different groups to be able to read or write, then apply group permissions to the directory either through the regular permissions or via ACL.


All times are GMT -5. The time now is 04:52 PM.