httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Junji Yamaguchi" <ju...@protostar.ne.jp>
Subject CGI file permission
Date Fri, 15 Dec 2000 00:33:21 GMT
Dear All,
I'm sorry if this is wrong place to ask, but I hope I can get some answer.

My question very simple about file permissions, especially guid.

The followings are the setting up.

<httpd.conf>File  --default--
User apache
Group apache

</etc/passwd>File
apache:x:48:48:Apache:/var/www:/bin/bash <--changed to bash as temporary.
web1:x:501:1000::/home/web1:/bin/bash   <--- one of a web managing user

</etc/group>File
apache:x:48:
web-users:x:1000:apache  <-- added apache account

# su - apache
$ cd /var/www/cgi-bin/
$ id
uid=48(apache) gid=48(apache) groups=48(apache),1000(web-users)
$ ls -l test.cgi
-rwxrwx---    1 web1     web-user      757 Aug 24 04:45 test.cgi*

$ sh test.cgi
Content-type: text/plain

CGI/1.0 test script report:

<<It does work!!>>

BUT, when I browse the [test.cgi] via Netscape, then it doesn't work.

<error_log>
[Wed Dec 13 12:05:17 2000] [error] [client 127.0.0.1] file permissions deny
server execution: /var/www/cgi-bin/test.cgi

WHY? ?

But, if I do as follows;
# chown apache.apache test.cgi
then, test.cgi does work.


However, for html files such as index.html, it does work.
$ ls -l ../html/index.html
-rw-rw----    1 web1     web-user      883 Dec 12 18:41 ../html/index.html

So somehow only CGI files do not work as a apache group user.

How can I configure it?

As additional information:

Apache 1.3.12-25
OS RedHatLinux 7.0
# ps auxf | grep htt
root       855  0.0  1.6  6592 4360 ?        S    11:58
0:01/usr/sbin/httpd -
apache     867  0.0  1.7  6720 4548 ?        S    11:58
0:00\_/usr/sbin/htt
apache     868  0.0  1.7  6684 4436 ?        S    11:58
0:00\_/usr/sbin/htt
apache     869  0.0  1.7  6684 4436 ?        S    11:58
0:00\_/usr/sbin/htt


Thank you,

Junji./JP




Mime
View raw message