comfixit has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CHMOD permissions for Perl Script
by revdiablo (Prior) on Dec 29, 2004 at 23:00 UTC | |
|
Re: CHMOD permissions for Perl Script
by tcf03 (Deacon) on Dec 29, 2004 at 21:07 UTC | |
by comfixit (Initiate) on Dec 29, 2004 at 22:14 UTC | |
by tcf03 (Deacon) on Dec 30, 2004 at 13:56 UTC | |
|
Re: CHMOD permissions for Perl Script
by eyepopslikeamosquito (Archbishop) on Dec 29, 2004 at 22:05 UTC | |
|
Re: CHMOD permissions for Perl Script
by Anonymous Monk on Dec 30, 2004 at 17:17 UTC | |
|
Re: CHMOD permissions for Perl Script
by TedPride (Priest) on Dec 29, 2004 at 22:16 UTC |