View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-16-2011, 12:00 PM   #1
Registered: Jul 2008
Posts: 65

Rep: Reputation: 15
Cat not read a file in linux, even when read permission is enabled

Hello. I am running debian lenny on my system. I am not able to read a file as root user (with any command), even when read permission is enabled or to list or change ext3 file system attributes either.

What does this mean, file corruption?

# ls -l file
-rwxrwxrwx 1 <user> <group> 609834 dic 15 18:49 <file>

# file file
<file>: writable, executable, regular file, no read permission

# cat file
cat: <file>: Operation not permitted

#cp file .

cp: can not read <file>: Operation not permitted.

I know that other possibility could be that the write system call was modified by a malicious rootkit. I checked my system with rkhunter and I found this:

Checking for string 'hdparm' [ Warning ]
I searched for this and it seems like a false positive.

[11:12:20] Warning: Checking for possible rootkit strings [ Warning ]

[11:12:41] Checking for hidden files and directories [ Warning ]
[11:12:41] Warning: Hidden directory found: /dev/.udev
[11:12:41] Warning: Hidden directory found: /dev/.initramfs

These seems like false positives too.
Any hints of why I can not read this file?

Thanks in advance.
Old 01-16-2011, 12:25 PM   #2
Nominal Animal
Senior Member
Registered: Dec 2010
Location: Finland
Distribution: Xubuntu, CentOS, LFS
Posts: 1,723
Blog Entries: 3

Rep: Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943Reputation: 943
What do commands
ls -laFZd file
lsattr file
Nominal Animal

Last edited by Nominal Animal; 03-21-2011 at 06:46 AM.
Old 01-16-2011, 04:49 PM   #3
LQ Guru
Registered: Mar 2008
Posts: 13,492

Rep: Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717Reputation: 1717
Boot to live cd just to check it again. I suspect that the filesystem is bad or partition off or overlapping.


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
Cannot copy file even as root (read permission denied) dhamilton Linux - Newbie 10 01-04-2011 07:59 AM
[SOLVED] Try to use tcpdump to read TEST file, but get permission denied. zetareticular Linux - Newbie 4 10-23-2010 11:13 AM
[SOLVED] BASH: Write only unique strings to text file (cat or while read question) SilversleevesX Programming 32 08-11-2010 02:24 AM
to change the permission of read only file systems jessyvjose1 Linux - Newbie 3 11-18-2008 06:23 PM
Read device and save to file with cat Snouser Linux - General 1 11-07-2008 10:23 AM

All times are GMT -5. The time now is 01:34 AM.

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