Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: CGI script cannot create file.

by Anonymous Monk
on Dec 20, 2012 at 03:02 UTC ( #1009679=note: print w/replies, xml ) Need Help??

in reply to Re: CGI script cannot create file.
in thread CGI script cannot create file.

First off, thank you all for being so helpful.
I'm still unsure about how to go about writing a file from a "setup" CGI script. I've tried everything I can find. I think I just don't understand the concept as deeply as I should.

What I'm trying to accomplish is this:
A Web setup that writes several files, and asks the user if input for these files. This setup only runs if the files it writes do not currently exist. Its suposed to create the following files:

hf (My "password" file which as councled by many of you will be changed to store as a salted hash.)

.Site (this file contains the Site name, the meta tags, and a list of pages belonging to the site)

Home.Page (An initial .Page file so that the has something to load.)

.Menu (a list of pages that should have a link on the main menu)

The person I'm creating this for is not tech savvy, and wants an extremely easy (Visual) way to update they're website. They are using IPower wich does not allow ssh (At least not for this particular Account) so I do not have the choice of running the scripts as the user. If there is any way to have a perl script login as the user who's home directory it has been copied to, that is what I really need to know.

Again thank you all for providing me with so much good info. I will defiantly be making use of the Hashing security info. And have already implemented the error checking now.

Replies are listed 'Best First'.
Re^3: CGI script cannot create file.
by blue_cowdawg (Monsignor) on Dec 21, 2012 at 13:24 UTC
        If there is any way to have a perl script login as the user who's home directory it has been copied to, that is what I really need to know.

    That is entirely out of the purview of Perl. You need to work with the web server administrator to set this up. Since I don't know which web server package is in play here I can't even begin to comment on how this is done and I've administered my share of web servers over the years.

    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009679]
[karlgoethebier]: before i forget it: good morning

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2018-01-20 09:32 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (226 votes). Check out past polls.