httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject ~userdir problem with modes (fwd)
Date Wed, 22 Jan 1997 02:04:39 GMT


---------- Forwarded message ----------
Date: Tue, 21 Jan 1997 15:57:59 -0800 (PST)
From: Ian Reddy <ian@sfu.ca>
To: apache-bugs@apache.org
Subject: ~userdir problem with modes


I've found that, in 1.2b4, with suexec in use a home directory needs
to be readable (not just executable) by group/others in order for
a CGI program to execute.

ie. if "UserDir pub_html" is declared and suexec is in place then
/home/ian needs to be mode 755 (/home/ian/pub_html can still be
mode 711) for ~ian/test-cgi.cgi to work. If /home/ian is mode
711 then the cgi.log file reports "cannot get current working directory".

I've tried to fix the problem but I'm not sure whether the error
is in the main server (it seems to put suexec into /home/ian whereas
I would have expected /home/ian/pub_html) or in suexec.c (why is
its "getcwd(cwd, MAXPATHLEN)" call failing?) or both.

-- 
  Ian Reddy, Senior Systems Consultant  E-mail:    Ian_Reddy@sfu.ca
  Academic Computing Services, AD1021              ian@sfu.ca
  Simon Fraser University               Telephone: (604) 291-3936
  Burnaby, B.C. Canada V5A 1S6          Fax:       (604) 291-4242


-=-=-=

Regarding the message I just sent about ~userdir not liking mode
711 home directories:

I said the version was 1.2b4.

In actuality the code in general is 1.2b4 but the suexec.c/h
that I'm using is 1.2b5.

-- 
  Ian Reddy, Senior Systems Consultant  E-mail:    Ian_Reddy@sfu.ca
  Academic Computing Services, AD1021              ian@sfu.ca
  Simon Fraser University               Telephone: (604) 291-3936
  Burnaby, B.C. Canada V5A 1S6          Fax:       (604) 291-4242





Mime
View raw message