LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 01-16-2011, 12:00 PM   #1
DeepSeaNautilus
Member
 
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.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561308

[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
https://bugs.launchpad.net/ubuntu/+s...er/+bug/219840

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: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
What do commands
Code:
ls -laFZd file
and
Code:
lsattr file
show?
Nominal Animal

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

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 04:22 PM.

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