Redian新闻
>
permission of the file written by cgi script
avatar
permission of the file written by cgi script# Unix - 噫吁兮,危乎高哉
s*t
1
I'm wondering what's the proper permission for a file
written by a cgi script. the cgi script is in public_html/
in my home dir and the data file is in the same dir.
it seems I have to make it work writable, otherwise it
will not work properly. but is it secure?
avatar
m*e
2
It depends on your web server configuration. Usually, one of the
following cases:
1) CGI is executed as nobody, then your file needs to be world-writable.
2) CGI is executed as the owner, then your file needs to be writable by you.

【在 s***t 的大作中提到】
: I'm wondering what's the proper permission for a file
: written by a cgi script. the cgi script is in public_html/
: in my home dir and the data file is in the same dir.
: it seems I have to make it work writable, otherwise it
: will not work properly. but is it secure?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。