Mail & CGI

Mail & CGI

Post by Luca Zammarc » Sat, 06 Jan 1996 04:00:00



  Recently I have installed a httpd server (Cern 3.0) on SCO Unix to
learn CGI. I have realized a simple script with comand mail but when I
go to use the command the OS create in the directory /usr/tmp two temp
files.

1)
[execmail]: [dying from signal] 13
--------------------------------
2)

X-Mailer: SCO System V Mail ([version] 3.2)



---------------------------------

   Does nobody can help me?

 
 
 

Mail & CGI

Post by Daniel l Aldh » Tue, 09 Jan 1996 04:00:00


:   Recently I have installed a httpd server (Cern 3.0) on SCO Unix to
: learn CGI. I have realized a simple script with comand mail but when I
: go to use the command the OS create in the directory /usr/tmp two temp
: files.
A couple of thoughts. Does the script work properly when you call it from
the shell? If the script is not too long, post it, and I am sure someone
can help you out.


This is more worrisome. It seems that you are running your httpd
as root. This is very dangerous. It should run as nouser, uid=-2 .
Check your configuration.

Danny Aldham

 
 
 

1. Apache && CGI && uid || back to cern?

Hi,

I just migrated my host's web server from cern httpd to apache 1.1.1
(host os linux) and got it up and running quite fast and quite fine.

BUT there is one job that seems to make problems to get done with apache:

I want to allow some of the users (not all, not generally) to write
CGI scripts that get executed under their own user-id. Example:

http://atpforest/cgi-bin/date.sh     is being executed with uid www:users
http://atpforest/~ac/cgi/date.sh     is being executed with uid ac:users

(date.sh being a simple shell script giving you the host's date and time)
With CERN, I could do this with a Protection/Protect/Exec statement and
.www_acl in the user's cgi dir. With Apache, this seems to be possible
only by writing a script running as root doing the job, or is there
another way (the docs don't tell...) ?

greets, ac.-
---

ps. what does the line
  ---

  ---
  try to tell me (happens when I try to post an article from the atpforest
  host instead of this one)? Which file has to be set to make tin work
  again? (/etc/NNTPSERVER is set correctly)

------------------------------------------------------------
andres cvitkovich - vienna university of technology, austria

www: http://atpforest.tuwien.ac.at/~ac/

2. PPP/PPPd aliasing

3. /cgi-bin/phf /cgi-bin/test-cgi /cgi-bin/handler

4. Linux, Windows 2000 & Windows 98 on one Disk

5. CGI & mail

6. BEST PRACTICES REPORT--FREE SUBSCRIPTION INFO

7. &&&&----Looking for a unix shell------&&&&&

8. netscape on linux

9. ppp && PPPoE && ADSL && net && buffer(s)

10. Apache Win32 (Windows 2000) & Awk & CGI

11. partition & swap requirements for personal CGI & web development

12. 没有人用中文吗?

13. http://cgi.zdnet.com/zdpoll/question.html?pollid=4827&action=a&n=ip