cannot delete a file from server

Discussion in 'Site & Server Administration' started by sangli1980, Dec 29, 2008.

  1. #1
    Hi I have a bb directory which I am not been able to delete. I tried various options - my first option was to delete it using FTP and than I also tried deleting it from file server online. Can someone help me and let me know what could be the problem? Thanks
     
    sangli1980, Dec 29, 2008 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Odds are, you got an invisible file in the folder. A file that starts with a dot (.htaccess for example.). If you can figure out what the file name is and get rid of it, you can probably then delete it. You might have to rename it to change it, like htaccess.txt.
     
    Nintendo, Dec 29, 2008 IP
  3. sangli1980

    sangli1980 Peon

    Messages:
    401
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Nintendo....I will have a look and see.... thanks.... will post the outcome in sometime.
     
    sangli1980, Dec 29, 2008 IP
  4. sangli1980

    sangli1980 Peon

    Messages:
    401
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    550 Could not delete alertpay.php: Permission denied

    This is the error I am getting...... thanks
     
    sangli1980, Dec 29, 2008 IP
  5. Pathan

    Pathan Well-Known Member

    Messages:
    2,196
    Likes Received:
    218
    Best Answers:
    0
    Trophy Points:
    165
    #5
    can you please try it using SSH? if its a single file try with command

    or if its a folder try it with the command

    Let me know the results.
     
    Pathan, Dec 29, 2008 IP
  6. kaung

    kaung Twitter @KaungKo

    Messages:
    4,040
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    155
    #6
    if you still have problem and SSh isn't provided, make sure you are logged in as root user
    or check with your hosting support to see if anyone of the staffs' changed permissions through root.
     
    kaung, Dec 30, 2008 IP
  7. mubashirnisar

    mubashirnisar Banned

    Messages:
    2,186
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #7
    did you get that file on server using some script???cause mostly the files which are not able to delete are commonly due to some script or shell
     
    mubashirnisar, Jan 9, 2009 IP
  8. HSH

    HSH Peon

    Messages:
    73
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    chown the file to your username.
    chmod 777 alertpay.php.
    rm -R the directory
     
    HSH, Jan 9, 2009 IP