in reply to Permissions for a cgi script
If you want to make a new directory, completely owned by apache, you have to be root, then su to apache, then make the directory. Sudo may be able to do this, but it sounds risky if running thru cgi. Your best bet is to use "suexec". If you don't know how suexec works, just google for it. It comes with apache, and if it is found in the path when apache starts, it will automatically be enabled, and anything run in a home directory's public_html, will be run as "user::users", instead of "nobody::nogroup" (or other lowest permissions).
Most people who want to do something like this, would not use cgi, and would use SSH instead, which would be much more secure.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Permissions for a cgi script
by eXile (Priest) on Apr 19, 2005 at 14:52 UTC | |
by zentara (Cardinal) on Apr 19, 2005 at 18:20 UTC |