Results 1 to 16 of 16
Thread: cant delete files
-
07-12-2009, 01:55 PM #1Junior Guru Wannabe
- 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
-
07-12-2009, 02:20 PM #2Junior Guru
- 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.
-
07-12-2009, 03:04 PM #3Web Hosting Master
- Join Date
- Nov 2007
- Location
- India
- Posts
- 843
may be that file under root permission
please check the permission before delt
-
07-12-2009, 03:06 PM #4Junior Guru Wannabe
- Join Date
- Mar 2009
- Location
- London Uk,
- Posts
- 60
-
07-12-2009, 03:08 PM #5Web Hosting Master
- 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>
-
07-12-2009, 03:11 PM #6Junior Guru Wannabe
- Join Date
- Mar 2009
- Location
- London Uk,
- Posts
- 60
-
07-12-2009, 03:34 PM #7Junior Guru
- 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?
-
07-12-2009, 03:51 PM #8Junior Guru Wannabe
- Join Date
- Mar 2009
- Location
- London Uk,
- Posts
- 60
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
-
07-13-2009, 12:39 AM #9Disabled
- Join Date
- Jun 2009
- Posts
- 126
Hello,
The immutable bit have been set for files..
Please run following commands
chattr -ia <file name>
and then run rm -rf <file name>
-
07-13-2009, 12:45 AM #10Junior Guru
- 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.
-
07-13-2009, 02:22 AM #11New Member
- Join Date
- Jul 2009
- Posts
- 1
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.
-
07-13-2009, 02:29 AM #12Junior Guru Wannabe
- 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>
-
07-13-2009, 03:04 AM #13Junior Guru
- Join Date
- Mar 2009
- Location
- Chicago, IL
- Posts
- 219
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
-
07-13-2009, 03:24 AM #14Web Hosting Guru
- 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
-
07-13-2009, 03:37 AM #15Junior Guru Wannabe
- Join Date
- Apr 2004
- Location
- Germany
- Posts
- 37
-
07-13-2009, 08:50 AM #16Junior Guru Wannabe
- 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
-
How to delete these files?
By Frosty in forum Computers and PeripheralsReplies: 24Last Post: 10-22-2007, 10:33 PM -
Delete files in /var/log ?
By GazCBG in forum Hosting Security and TechnologyReplies: 2Last Post: 08-03-2007, 11:59 PM -
What happens if I delete files in my FTP?
By Quintox in forum Web HostingReplies: 13Last Post: 05-31-2007, 08:15 PM -
How do I delete files via SSH?
By bullony13 in forum Hosting Security and TechnologyReplies: 7Last Post: 10-19-2004, 08:31 AM -
Can I delete these /tmp files???
By COMPUTICA in forum Dedicated ServerReplies: 2Last Post: 11-01-2002, 02:44 PM