SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Force chmod()

  1. #1
    PHP Developer W1LL's Avatar
    Join Date
    Apr 2001
    Location
    Leicester, UK
    Posts
    459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Force chmod()

    I've got a load of uploaded files which have been automatically set to 600. I've tried changing this to 755 in my FTP program, but it won't allow it.
    Is there any way I can force this chmod?

    I know this isn't PHP-specific, but I wasn't sure where else to put this query.

    This is the response I get from my FTP program:

    [R] SITE CHMOD 755 6515_4.jpg
    [R] 550 6515_4.jpg: Operation not permitted

    Will

  2. #2
    SitePoint Evangelist ClickHeRe's Avatar
    Join Date
    Mar 2005
    Location
    Ottawa, Canada
    Posts
    580
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    check that your directory where the image is stored have the good permissions or else you won't be able to modify any files inside it.
    David

  3. #3
    PHP Developer W1LL's Avatar
    Join Date
    Apr 2001
    Location
    Leicester, UK
    Posts
    459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The permissions on the directory are 777, so that's not the problem.

  4. #4
    SitePoint Zealot euringroy's Avatar
    Join Date
    Sep 2005
    Location
    Staffordshire, England
    Posts
    147
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is the problem one of file ownership? If your FTP username is not the same as the file owner, this might be the reason for the failing CHMOD.
    Last edited by euringroy; Feb 3, 2006 at 07:28. Reason: correction
    Eric "Motorlegs" Roy
    If you can't keep up - stay at home


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •