On 9/26/07, Liyu,She <[EMAIL PROTECTED]> wrote: > Dear all, > > I am trying to write a configuration file with which I can allow users > of the same group(freeos) have their own homepages and cgi-bin > directories for them to execute their own cgi programs. So I tried > suexec, but here comes the problem - suexec can only switch to a > certain user, as far as I know, and it needs the directories, which > these users' cgi programs are in, and the cgi programs to be exactly > owned by the USER and GROUP specified by SuexecUserGroup in the > context of VIRTUALHOST in http.conf. > So how could I make sure that each user execute their own program as > themselves, not as apache/daemon? Could anyone tell me? Thank you so > much.
suexec operates in two modes. The first is, as you described above, one user per virtual host. The second is through mod_userdir. Using that technique, any cgi in a http://example.com/~user/ directory can be executed under the permissions of the user. See: http://httpd.apache.org/docs/2.2/suexec.html#usage Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]