LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-21-2010, 04:36 PM   #1
zetareticular
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Rep: Reputation: 0
Try to use tcpdump to read TEST file, but get permission denied.


Trying to use tcpdump -r TEST, and get permission denied, even though I am logged in as root or super user.
Tried using the "chmod a+rw TEST" (any other file for that matters, yes it came from another source) and get permission denied.
 
Old 10-21-2010, 10:06 PM   #2
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
I'd expect you checked for this, but I have to ask.
The permissions on the file as shown as being accessible
by root, the file system the file is on is not mounted read-only
or NFS mounted, right?

What output do you get if you issue these commands:

Code:
ls -l TEST
and

Code:
mount -v
 
Old 10-22-2010, 12:12 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Maybe I've misunderstood your question. On my system at least (Debian Squeeze), tcpdump is not an executable. You can see this below.
Code:
ls -l /etc/bash_completion.d/tcpdump 
-rw-r--r-- 1 root root 683 giu 20 10:00 /etc/bash_completion.d/tcpdump
cheers,
jdk
 
Old 10-23-2010, 11:09 AM   #4
zetareticular
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Original Poster
Rep: Reputation: 0
ls -l TEST
rwxr-xr-x 1 jch jch 600 2006-05-28 12:27 TEST

mount -v
/dev/sda6 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/jch/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=jch)

Last edited by zetareticular; 10-23-2010 at 11:11 AM. Reason: Update
 
Old 10-23-2010, 11:13 AM   #5
zetareticular
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Okay, after running your commands, it works now! Maybe after running mount -v (???)

Go figure???
 
  


Reply



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
cp read permission denied wolfgang_b Linux - Newbie 3 09-30-2009 12:14 PM
-bash: cd: test/: Permission denied Ejdaha Linux - Newbie 5 09-17-2009 07:48 AM
permission denied to move a file? trnz$mr Slackware 3 06-05-2009 12:18 PM
Debian on VBox Read Only File System and Permission Denied Errors The Konqi Kid Debian 5 03-04-2008 05:07 PM
Permission denied on /mnt/hdg1/test no matter what I do! jon_k Linux - Software 1 02-23-2006 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration