permission accessing via file()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • PenguinsAnonymous

    permission accessing via file()

    Need to access a single text file for read
    only where it resides using file().
    To test the code I copied it local because
    I got "permission denied" message where it
    exists.
    Any safe solutions?
    TIA
    -Walt

    --
    Reply to innkeepATcapita lDOTnet to email questions.


    -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
    http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
    -----== Over 100,000 Newsgroups - 19 Different Servers! =-----
  • Alan Little

    #2
    Re: permission accessing via file()

    Carved in mystic runes upon the very living rock, the last words of of
    comp.lang.php make plain:
    [color=blue]
    > Need to access a single text file for read
    > only where it resides using file().
    > To test the code I copied it local because
    > I got "permission denied" message where it
    > exists.
    > Any safe solutions?[/color]

    You must either modify the permissions on the file, or run your script
    through a wrapper or under suexec.

    --
    Alan Little
    Phorm PHP Form Processor

    Comment

    • PenguinsAnonymous

      #3
      Re: permission accessing via file()

      PenguinsAnonymo us wrote:[color=blue]
      > Need to access a single text file for read
      > only where it resides using file().
      > To test the code I copied it local because
      > I got "permission denied" message where it
      > exists.[/color]

      missing info:
      php-4.2.2-17.2
      httpd-2.0.40-21.3b
      Linux nebula 2.4.20-8dcustom #5 Thu May 22 01:37:13 EDT 2003 ppc ppc ppc
      GNU/Linux
      Text file deep several directories in a /home/<user> dir.

      Someone must know about security and permission problems ??
      :)

      -Walt


      -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
      http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
      -----== Over 100,000 Newsgroups - 19 Different Servers! =-----

      Comment

      • Daniel Bengs

        #4
        Re: permission accessing via file()

        PenguinsAnonymo us wrote:[color=blue]
        > PenguinsAnonymo us wrote:
        >[color=green]
        >>Need to access a single text file for read
        >>only where it resides using file().
        >>To test the code I copied it local because
        >>I got "permission denied" message where it
        >>exists.[/color]
        >
        >
        > missing info:
        > php-4.2.2-17.2
        > httpd-2.0.40-21.3b
        > Linux nebula 2.4.20-8dcustom #5 Thu May 22 01:37:13 EDT 2003 ppc ppc ppc
        > GNU/Linux
        > Text file deep several directories in a /home/<user> dir.[/color]

        Make sure that the webserver can access this directory, and that it has
        permissions to read the file.

        Comment

        Working...