in reply to Re: Problem while displaying dynamic data on perl CGI pages
in thread Problem while displaying dynamic data on perl CGI pages

Files are created under roor:root but the file permissions ar set to 755.
Do I need to change the owner:group of the files?
  • Comment on Re^2: Problem while displaying dynamic data on perl CGI pages

Replies are listed 'Best First'.
Re^3: Problem while displaying dynamic data on perl CGI pages
by ramesh_ps1 (Initiate) on Jun 01, 2007 at 12:26 UTC
    Hi,
    Changed the file owner and it started working.
    Thanks for the tip.

      Are you sure that the files and directories up to the location of the file were root:root 755? I seldom have code owned by the same ID as what is running it -- one more layer of the onion that a "baddie" needs to get through to modify stuff. If the web user need to write a file I will of

      If changing the ownership to the same as the user the web server is running as solved your problem, I would suggest that the permissions on the file were not set to 755, or you have your web server configured to deny access to scripts not owned by the web server user.

      Update:Struck out confusing typo, incomplete thought

      --MidLifeXis