Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Mar 2008
    Location
    Indiana
    Posts
    58

    Default Unable to delete 2 folders

    an extremely odd error is occurring with my install. I have tried through various ways to delete two folders on my machine however no matter what i do, it wont delete.

    I have tried ssh, cpanel, winscp, ipswitch ftp, and nothing can remove the files. The system wont let me change the file permissions either. no matter what i do, even using root, im met with permission denied.

    now i can move the two folders anywhere i wish on the server, and i can delete any other files as i choose or see fit, but it will not let me delete them. no matter what folder they are located in.

    anyone have suggestions?

    thanks!

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Question

    What folders are they?
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  3. #3
    Member
    Join Date
    Mar 2008
    Location
    Indiana
    Posts
    58

    Default

    Quote Originally Posted by Infopro View Post
    What folders are they?
    its just some old folders that are no longer needed.. i can move them into other folders and rename the folder, but i just cant delete the bloody thing

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2010
    Posts
    6

    Default

    Please login to your server via ssh and check the folder attributes with the following command

    (I suppose you are already in the folder that has the issue)

    lsattr filename

    If your output is something like this

    root@server [/home/user/public_html/testfolder]# lsattr filename
    -----a------- filename
    or
    -----i------- filename

    It means that the attributes for the folder has been changed, You need to change the attributes for the folder with the following command

    root@server [/home/user/public_html]# chattr -a testfolder
    or
    root@server [/home/user/public_html]# chattr -i testfolder

    Than you can delete/edit your folder as you want.
    Mike Atkins
    Customer Support Representative
    www.arvixe.com

  5. #5
    Member
    Join Date
    Mar 2008
    Location
    Indiana
    Posts
    58

    Default

    Quote Originally Posted by Mike-Atkins View Post
    Please login to your server via ssh and check the folder attributes with the following command

    (I suppose you are already in the folder that has the issue)

    lsattr filename

    If your output is something like this

    root@server [/home/user/public_html/testfolder]# lsattr filename
    -----a------- filename
    or
    -----i------- filename

    It means that the attributes for the folder has been changed, You need to change the attributes for the folder with the following command

    root@server [/home/user/public_html]# chattr -a testfolder
    or
    root@server [/home/user/public_html]# chattr -i testfolder

    Than you can delete/edit your folder as you want.
    my output was

    ------------ filename
    ------------ filename

    should i still do the chattr command?

    i still cant delete the bloody thing

  6. #6
    Member
    Join Date
    Nov 2004
    Posts
    37

    Default

    Hi,


    let me know the exact folder name which you want to delete & also let me know the error you are getting while removing it.



    Prashant

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2003
    Posts
    1,931

    Default

    they are deleted there is a process holding them open
    you will need to kill the process that's holding them open


    lsof | grep /path to file
    Lowest Host/Empire Technology LLC
    Affordable hosting solutions http://empire-hosting.net
    List Your hosting site FREE in http://hostgeneration.com

  8. #8
    Member
    Join Date
    Mar 2008
    Location
    Indiana
    Posts
    58

    Default

    Quote Originally Posted by prashant_ohol View Post
    Hi,


    let me know the exact folder name which you want to delete & also let me know the error you are getting while removing it.



    Prashant
    error: unable to delete, permission denied.

    the folders lay in my public_html folder and i have renamed them delete and delete 2. they appear to contain css/png/image files under the garland folder name.

    Quote Originally Posted by dalem View Post
    they are deleted there is a process holding them open
    you will need to kill the process that's holding them open


    lsof | grep /path to file
    i will try that later today, thanks.

Similar Threads & Tags
Similar threads

  1. Cannot delete folders in Roundcube
    By mambovince in forum E-mail Discussions
    Replies: 2
    Last Post: 11-15-2011, 01:50 PM
  2. Replies: 3
    Last Post: 02-11-2011, 06:19 PM
  3. 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
  4. Users unable to change permissions gallery G2 folders.
    By TogaDave in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-17-2006, 02:55 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube