The Great Bottle Opener Giveaway

Home Brew Forums > Home Brewing Community > General Chit Chat > CGI web programming help

Reply
 
LinkBack Thread Tools
Old 07-26-2012, 10:14 PM   #1
BetterSense
Feedback Score: 0 reviews
Recipes 
 
Join Date: Jul 2011
Location: Richardson, Texas
Posts: 977
Liked 45 Times on 35 Posts
Likes Given: 3

Default CGI web programming help

I want to write a program where

-the user chooses to upload a file (I have this working)
-the CGI program slices and dices the file (this works)
-the website then presents the resulting file-chunks to the user as html links (I'm stumped on this)

The problem I have is that the webserver runs as user 'nobody'. The cgi-bin directory and programs in it are world-executable, but apparently the output from the cgi script when the webserver is executing it inherits the 'nobody' privileges so the CGI program can't write output anywhere. I can create a world-writable directory, but that seems like a Bad Idea. Now I'm thinking about creating a world-writable directory outside the web document root, then creating a world-readable directory inside the web root that links to the world-writable one, and putting links to that in my output.

What is the actual correct thing to do?

__________________
BetterSense is offline
 
Reply With Quote Quick reply to this message
Reply


Quick Reply
Message:
Options
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
tired of my programming job/path.. microbiology/biochem/something??? jacob1484 General Chit Chat 15 02-03-2010 03:28 AM
Computer Programming brauhaus General Chit Chat 21 08-06-2008 07:00 PM
C++ Programming help SporkD2 General Chit Chat 52 08-05-2008 12:41 AM
easy(ier) Palm os programming? Brewing Clamper General Chit Chat 2 03-17-2008 02:53 AM
New racing programming- TRN channel!! megavites General Chit Chat 2 08-01-2007 07:39 PM