Results 1 to 16 of 16
  1. #1
    Join Date
    Mar 2009
    Location
    London Uk,
    Posts
    60

    cant delete files

    im try to delete some file from cpanel but
    everytime i delete nad refresh they come back
    also if i try to change the perms it does not let me?

    any suggests

  2. #2
    Join Date
    Jun 2009
    Location
    Kochi,India
    Posts
    179
    Have you tried to delete the files from the command prompt?
    Also check the permissions and ownership of the files you are trying to delete from the command prompt.
    Ezeelogin -
    The ultimate multiple server administration software.
    *Parallel shell *rm -rf protection *SSH logging*automated password changes*encrypted storage*
    AdMod.com -Delivering innovative web hosting solutions

  3. #3
    Join Date
    Nov 2007
    Location
    India
    Posts
    843
    may be that file under root permission

    please check the permission before delt

  4. #4
    Join Date
    Mar 2009
    Location
    London Uk,
    Posts
    60
    Quote Originally Posted by Rekhatitus View Post
    Have you tried to delete the files from the command prompt?
    Also check the permissions and ownership of the files you are trying to delete from the command prompt.
    ok i will try that

  5. #5
    Join Date
    Apr 2005
    Posts
    1,767
    Pick a file that you can't edit, ask your datacenter to provide you with the output from the following commands:

    stat <file>
    lsattr <file>

  6. #6
    Join Date
    Mar 2009
    Location
    London Uk,
    Posts
    60
    Quote Originally Posted by yajur View Post
    may be that file under root permission

    please check the permission before delt
    its just one folder all the files in the folder are 0666
    when i try and change perms its gives me a errors then does nothing

  7. #7
    Join Date
    Mar 2009
    Location
    Chicago, IL
    Posts
    219
    It might be a good idea to paste the errors here. And out of curiosity, what directory/files?

  8. #8
    Join Date
    Mar 2009
    Location
    London Uk,
    Posts
    60
    Quote Originally Posted by SA-ChrisM View Post
    It might be a good idea to paste the errors here. And out of curiosity, what directory/files?

    errors im getting when i try to change perms
    "FileOp Failure on: /home/user/public_html/forum/Themes/1/images/bbc/bbc_bg.gif: Operation not permitted"

    heres the link to the dir
    http://cyba.fm/forum/

    extra info
    i did install smf forum as i wanted to integrate it with my site
    but i ended up scrapping the idea and deleted everything including
    the old db but this folder wont delete or rewrite

  9. #9
    Hello,

    The immutable bit have been set for files..

    Please run following commands


    chattr -ia <file name>

    and then run rm -rf <file name>

  10. #10
    Join Date
    Mar 2009
    Location
    Chicago, IL
    Posts
    219
    I agree with linux-engineer above... it sounds like somehow, something is +i in there.


    You can always do a chattr -R -i /home/user/public_html/ and that should make sure you unset that bit on anything that's set.

  11. #11
    Try this,
    --dont refresh once you deleted,use the link in the site.
    --access your site through ftp and delete,try change your permission, if not able to then you may not be the authorised to delete that file or ask your host provider about this.

  12. #12
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    37
    Another possibility is that the directory in question is not writable.

    chmod o+w,g+w <directory>

  13. #13
    Join Date
    Mar 2009
    Location
    Chicago, IL
    Posts
    219
    Quote Originally Posted by mnaumann View Post
    Another possibility is that the directory in question is not writable. +i is about the only thing I can think of that'll cause the problem he's having right now.

    chmod o+w,g+w <directory>

    An rm -rf on a -w directory will still work. You can even go so far as to chmod 000 a file/dir and still have an rm -rf work.


    Code:
    [root@omega src]# mkdir blah
    [root@omega src]# ls -al blah
    total 8
    drwxr-xr-x  2 root root 4096 Jul 13 02:00 .
    drwxr-xr-x 17 root root 4096 Jul 13 02:00 ..
    [root@omega src]# chmod -w blah
    [root@omega src]# ls -al blah
    total 8
    dr-xr-xr-x  2 root root 4096 Jul 13 02:00 .
    drwxr-xr-x 17 root root 4096 Jul 13 02:00 ..
    [root@omega src]# rm -rf blah
    [root@omega src]# ls -al blah
    ls: blah: No such file or directory

  14. #14
    Join Date
    Jun 2008
    Location
    India
    Posts
    266
    ownership, pemission or attributes check any of this
    Ranjith
    Light travels faster thn sound.This is why some people look bright until you actually hear them speak

  15. #15
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    37
    Quote Originally Posted by SA-ChrisM View Post
    An rm -rf on a -w directory will still work. You can even go so far as to chmod 000 a file/dir and still have an rm -rf work.
    Right. However, as far as I can tell, 'rm -rf <directory>' has not yet been suggested nor reported to have been run. It would surely be a good idea to try this, though.

  16. #16
    Join Date
    Mar 2009
    Location
    London Uk,
    Posts
    60
    ive tryed loads of the commands you guys suggested but i still can delete them

Similar Threads

  1. How to delete these files?
    By Frosty in forum Computers and Peripherals
    Replies: 24
    Last Post: 10-22-2007, 10:33 PM
  2. Delete files in /var/log ?
    By GazCBG in forum Hosting Security and Technology
    Replies: 2
    Last Post: 08-03-2007, 11:59 PM
  3. What happens if I delete files in my FTP?
    By Quintox in forum Web Hosting
    Replies: 13
    Last Post: 05-31-2007, 08:15 PM
  4. How do I delete files via SSH?
    By bullony13 in forum Hosting Security and Technology
    Replies: 7
    Last Post: 10-19-2004, 08:31 AM
  5. Can I delete these /tmp files???
    By COMPUTICA in forum Dedicated Server
    Replies: 2
    Last Post: 11-01-2002, 02:44 PM

Posting Permissions

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