Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: CGI Script Access Fails On Linux

From: rebol:techscribe at: 21-Nov-2000 22:53

Hi Tim, you executed the script from the command line. A file test.txt was created. This file's owner is the username under which you were logged in at the time. User nobody cannot overwrite the file created by that user. That's why you're getting the error message. Remove the file and everything should work just fine. However, you absolutely should not make the user nobody the owner of the cgi-bin directory. Nor should "other" settings permit writing to the directory. That invites trouble. I set my cgi-bin settings to 751 (giving visitors only execute permission on the directory, i.e. they can enter it). Permission settings on the file are 755. What I do is I create a directory at the same level as cgi-bin (let's call that directory temp or something else), set the permissions of that directory to 777.Your script would have to say write %../temp/test.txt Hope this helps, Elan