Portal Home > Knowledgebase > Articles Database > cant delete files


cant delete files




Posted by imadmin, 07-12-2009, 01:55 PM
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

Posted by Rekhatitus, 07-12-2009, 02:20 PM
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.

Posted by yajur, 07-12-2009, 03:04 PM
may be that file under root permission please check the permission before delt

Posted by imadmin, 07-12-2009, 03:06 PM
ok i will try that

Posted by zacharooni, 07-12-2009, 03:08 PM
Pick a file that you can't edit, ask your datacenter to provide you with the output from the following commands:

Posted by imadmin, 07-12-2009, 03:11 PM
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

Posted by SA-ChrisM, 07-12-2009, 03:34 PM
It might be a good idea to paste the errors here. And out of curiosity, what directory/files?

Posted by imadmin, 07-12-2009, 03:51 PM
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

Posted by linux-engineer, 07-13-2009, 12:39 AM
Hello, The immutable bit have been set for files.. Please run following commands chattr -ia and then run rm -rf

Posted by SA-ChrisM, 07-13-2009, 12:45 AM
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.

Posted by rogerkk, 07-13-2009, 02:22 AM
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.

Posted by mnaumann, 07-13-2009, 02:29 AM
Another possibility is that the directory in question is not writable. chmod o+w,g+w

Posted by SA-ChrisM, 07-13-2009, 03:04 AM
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.

Posted by rankris, 07-13-2009, 03:24 AM
ownership, pemission or attributes check any of this

Posted by mnaumann, 07-13-2009, 03:37 AM
Right. However, as far as I can tell, 'rm -rf ' has not yet been suggested nor reported to have been run. It would surely be a good idea to try this, though.

Posted by imadmin, 07-13-2009, 08:50 AM
ive tryed loads of the commands you guys suggested but i still can delete them



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
email not incoming (Views: 473)