Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-27-2009, 11:19 AM   #1
Registered: Dec 2003
Location: MA
Distribution: CentOS 6.8 & 7, Linux Mint
Posts: 62
Blog Entries: 1

Rep: Reputation: 15
root cannot delete file!

Hi all,

I've got a file that I can't do anything with: chmod, chown or delete while logged in as root! When I do "ls -l" I see:
-rw-rwxrwx 33 dsmith root 2230941 Nov 18 14:26 09000-ns.pdf
The user "dsmith" is NOT a member of the "root" group. I'm not sure what the "33" means, all other files in the directory only have a "1" in this location. Attempting to do anything to this file returns "Operation not permitted". BTW, the pdf won't open either.
Any suggestions greatly appreciated!
Old 04-27-2009, 11:27 AM   #2
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 307

Rep: Reputation: 38
Time to do a File System Check (fsck) as it sounds likely that there is some corruption.
Old 04-27-2009, 11:30 AM   #3
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390

Which error message does the chmod/chown/rm command give?

Could you post the output of:
ls -bil 09000-ns.pdf
file 09000-ns.pdf
lsof 09000-ns.pdf
Old 04-27-2009, 11:46 AM   #4
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614
Also post the output of "pwd" and "mount" because this might be an NFS mount you're not allowed to change.
Old 04-27-2009, 12:36 PM   #5
LQ Newbie
Registered: Apr 2009
Location: Phillipines
Distribution: Mandriva GNOME 2.22.0
Posts: 19

Rep: Reputation: 1
Originally Posted by AlucardZero View Post
Also post the output of "pwd" and "mount" because this might be an NFS mount you're not allowed to change.
I think that file you want to delete is in NFS.
Like what I found before..
Old 04-27-2009, 01:03 PM   #6
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
And to add on to the list of suggestions, also post the output of:
# lsattr <stubborn file>

(assuming that this is actually on a ext2/3 filesystem)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete file logged on as root? markw10 Mandriva 2 01-05-2009 10:37 AM
Root cant delete file WTF!!! xtypestereotype Linux - Software 7 06-27-2005 12:41 PM
Strange problem: can not delete file as root ?? hendrixx Linux - General 29 11-11-2004 01:46 AM
Delete as Root mtoedtli2 Linux - Newbie 3 07-14-2004 04:06 PM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 03:46 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration