[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] [RaQ4] Running a CGI as a UserName not httpd



At 03:46 PM 29/07/02 -0400, you wrote:
> One of my clients is having trouble getting his CGI to work
> properly... it
> seems that because the cgi is running as httpd it cannot read
> the data
> files as they are owned by user:site#

If the user uploaded the CGI via FTP as that username, it should run as
that user. (I even had a small problem of a script that sent mail
sending the mail as user@xxxxxxxxxxxxxxxxxxxx instead of the
Return-path: specified in the script).

If it's a FrontPage site, if they turn the CGI-BIN locally into a
subweb, then when they publish the main web only, the CGI-BIN shouldn't
be touched.

It's not frontpage.

The CGI is an online course manager. It creates users and follows their progress through various training seminars.

Here are two samples of the directories it creates. One is data from the previous server (666669), the other (666661) is from our RaQ4.

Notice the httpd file ownership?
All of the files and scripts are owned by milosh:site2


************* A Recently Created Directory *****************
************************************************************
[romanp site2]$ cd admin/people/
[romanp people]$ ls -la 666661
total 56
drwxr-xr-x   2 httpd    site2        1024 Jul 26 14:09 .
drwxrwxrwx 607 milosh   site2       10240 Jul 26 13:17 ..
-rw-rw----   1 httpd    site2          15 Jul 26 14:09 FIREX.cursor
-rw-rw----   1 httpd    site2          27 Jul 26 14:09 FIREX.status
-rw-r--r--   1 httpd    site2          15 Jul 26 14:00 FORKLIFT.cursor
-rw-r--r--   1 httpd    site2          27 Jul 26 14:00 FORKLIFT.status
-rw-r--r--   1 httpd    site2          15 Jul 26 13:21 RESPI.cursor
-rw-r--r--   1 httpd    site2          27 Jul 26 13:21 RESPI.status
-rw-r--r--   1 httpd    site2          15 Jul 26 14:00 WHMIS.cursor
-rw-r--r--   1 httpd    site2          27 Jul 26 13:22 WHMIS.status
-rw-r--r--   1 httpd    site2       16416 Jul 26 13:59 WHMIS_Quiz_1.html
-rw-r--r--   1 httpd    site2          48 Jul 26 13:17 allowedcourses
-rw-r--r--   1 httpd    site2       16426 Jul 26 13:59 exam_temp.html

************* Existing Directories as imported *************
************************************************************
[romanp people]$ ls -la 666669
total 134
drwxr-sr-x   2 milosh   site2        1024 Jul  2 04:38 .
drwxrwxrwx 607 milosh   site2       10240 Jul 26 13:17 ..
-rw-r--r--   1 milosh   site2          16 Aug 22  2001 ERP.cursor
-rw-r--r--   1 milosh   site2          27 Aug 22  2001 ERP.status
-rw-r--r--   1 milosh   site2          16 Aug 22  2001 ERP_Quiz_1.OK
-rw-r--r--   1 milosh   site2        5832 Aug 22  2001 ERP_Quiz_1.html
-rw-r--r--   1 milosh   site2          16 Mar 16  2001 FORKLIFT.cursor
-rw-r--r--   1 milosh   site2          27 Mar 16  2001 FORKLIFT.status
-rw-r--r--   1 milosh   site2          16 Dec 20  2001 WHMIS.cursor
-rw-r--r--   1 milosh   site2          56 Aug 22  2001 WHMIS.status
-rw-r--r--   1 milosh   site2        1804 Aug 22  2001 WHMIS_Cert.html
-rw-r--r--   1 milosh   site2          16 Aug 22  2001 WHMIS_Quiz_1.OK
-rw-r--r--   1 milosh   site2       16343 Aug 22  2001 WHMIS_Quiz_1.html
-rw-r--r--   1 milosh   site2          59 Mar 16  2001 allowedcourses
-rw-r--r--   1 milosh   site2        3969 Dec 17  2001 exam_temp.html

The path to this data is above the web directory and the web directory is actually a sym link to 'www'

drwxrwsr-x   8 nobody   site2        1024 Jul 25 12:01 .
drwxr-xr-x  20 root     root         1024 Jul  9 15:28 ..
drwxrwxr-x   3 milosh   site2        1024 Jul 25 11:54 admin
drwxrwxr-x   2 milosh   site2        1024 Jul  2 04:38 audit
drwxr-s---   2 nobody   site2        1024 Jul  2 04:38 certs
-rwxr-xr-x   1 milosh   site2          41 Feb 23  2001 index-orig.html
drwxr-s---   2 nobody   site2        1024 Jul 28 04:37 logs
-rwxr-xr-x   1 milosh   site2       11707 Feb 27  2001 options.html
drwxrwsr-x   6 nobody   site2        1024 Jul 23 11:02 users
lrwxrwxrwx   1 milosh   site2           3 Jun 20 17:43 web -> www
drwxr-xr-x  20 milosh   site2        1024 Jul 26 11:28 www
[admin site2]$








---------------------------------
William J.A. Brillinger
Precision Design Co.

E-Mail:   mailto:billy@xxxxxxxxxx
Web site: http://www.pdcweb.net