Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Apr 2003
    Location
    Naples, Floride
    Posts
    5

    Default Can't delete files or folders using filemanager or ftp access

    I've tried setting the folders and files to '777' but still get this error:
    Permission denied mv: cannot unlink `pages/11.html':

    Does anyone know what that means and how to correct it. I can't even delete through my ftp access, I get a 550 error "Permission denied"...?
    Last edited by bcp1961; 05-17-2003 at 05:02 PM.

  2. #2
    Member Nico's Avatar
    Join Date
    Dec 2001
    Location
    Edmond, OK
    Posts
    233

    Default

    Try 'chattr -i file name' and see if you can delete the file.

  3. #3
    Member
    Join Date
    Sep 2002
    Posts
    580

    Default

    Is there also a solution for this users can do themselves (without shell access)?

    cPanel.net Support Ticket Number:

  4. #4
    Member
    Join Date
    Apr 2003
    Location
    Naples, Floride
    Posts
    5

    Default

    This is the script that I am using to unlink my files and folders. It seems to work very well, you can just put a folder name in if you want to delete all the files in it, but then you have to ftp in or go through the control panel and delete them manually after running the script below. If you are just deleting certain files then this will automatically delete them for you. For some reason when you execute the script it gives you a "Warning: operation not permitted....." error message - but it still works. I haven't figured that one out yet!
    Hope this helps.

    PHP Code:
    <?php
    chmod
    ("folder/file.html"0777); // let the system put it open

    chown("folder/file.html"0730); //scripts UID becomes owner

    unlink("folder/file.html"); //delete the file
    ?>
    cPanel.net Support Ticket Number:

  5. #5
    Member B12Org's Avatar
    Join Date
    Jul 2003
    Location
    Seattle Washington
    Posts
    694

    Default

    Hey thanks! The "chattr -i" command worked for me. I was banging my head on the wall trying to get this one file to delete, and now I can finally rest! Thanks again!

Similar Threads & Tags
Similar threads

  1. How to Delete Fhishing Files and Folders on my Site
    By nicok in forum New User Questions
    Replies: 3
    Last Post: 11-21-2009, 06:22 AM
  2. Cant delete files over ftp because of quota!
    By spector in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-28-2008, 11:02 AM
  3. Renaming files in filemanager
    By sjh016 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-07-2008, 10:51 AM
  4. Replies: 0
    Last Post: 05-21-2004, 03:36 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube