I wrote a perl script that needs to write a temporary file. I want to create a directory with appropriate permissions.
Now I understand there is Read/Write/Execute permissions and also User/Group/Other.
Read/Write/Execute seem resonably straight forward. But what is the differences between User / Groups / Other for directory permissions?
I created a temp folder, but for the script to write to it successfully from the cgi folder "Other" seemed to need Write & Execute privilages. This seems kind of unsafe.
What is the best practice for permission for a directory which I wish a perl script to write and then delete a temporary file?
Thanks for the help
In reply to CHMOD permissions for Perl Script by comfixit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |