in reply to Writing to the File

OK, permissioning in a CGI script sometimes can be tricky. First off: what userid is the CGI running as? I know a lot of sites that run their webservers as "nobody" which doesn't have permission to write files to most places on the system. A nice way to keep the script kiddies honest.

Next: who owns the directory you are trying to write the file to? If the file was already written once, who owns it now and answer the "First off" question.

Lastly and possibly the first question I should have asked what platform what web server, in other words what is the environment? Based on your original post it looks like some flavor of *nix. Are there Access Control Lists involved?


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

Replies are listed 'Best First'.
Re^2: Writing to the File
by msk_0984 (Friar) on Jun 29, 2006 at 04:35 UTC
    Hi Monks

    Firstly , vry much Thanks for ur response actually after i posted my question we got a Network problem and i was not able work and cannot reply u back So, now i was seeing th response then i tried it by changing the group and the user name there it was working.

    Anywway thank you very much for ur feedback and you r help thst wat the main motto of our Group to help out each other and acquire knowledge.

    Sushil