LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-14-2005, 04:48 PM   #1
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Rep: Reputation: 30
Launching ethereal with std usr, no interfaces


If I launch ethereal from KDE under a normal user logon, I get no interefaces to choose from. If I SU to root and type ethereal from CMD, ethereal gui comes up and I get all the interfaces. What do I need to give my user permissions to?
 
Old 10-17-2005, 07:41 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Hi

Only root can put the interface in PROMISC mode , so that your ethcard will pass the packet to the kernel even if the destination hardware is not yours.

So be sure to untick the "Capture packets in promiscuous mode". I think its not your problem.

What happens with this? (assuming you want to listen to packets which are aimed at eth0):
tcpdump -p -i eth0
 
Old 10-17-2005, 01:33 PM   #3
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
If I SU to root, and issue that command I see all kind of packets. I uncheck "Use Promescuous Mode" and I still have the problem. I have no interfaces listed. The interfaces are listed if I lauch the program from root, however.
 
Old 10-17-2005, 02:15 PM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Strange..
Maybe you are using an old libpcap? ldd `which ethereal` | grep pcap

Is the user able to use the network, like browsing,... ?
 
Old 10-17-2005, 02:25 PM   #5
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
matt@monet:~$ ldd 'ethereal-0.10.12' | grep pcap
ldd: ./ethereal-0.10.12: No such file or directory

Thats what I get...
 
Old 10-17-2005, 06:34 PM   #6
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
I am able to use the net and use SAMBA, etc.
 
Old 10-18-2005, 11:09 AM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
You have to type exactly this:
ldd `which ethereal` | grep pcap

Maybe it will be easier to post to ethereal forums or to pcap forum.

Or (what I would do) you take the version of pcap you are using, you get the source and you try to see what happens in the function pcap_list_interfaces or something like this.
In general, for getting list of interface or hw adress, you open a socket (thats why I asked you if the user had network access) and then look which interface is used... and so on.

Last idea, more quicker , you can try
$strace -o /tmp/ethereal.strace ethereal

and then look in ethereal.strace to see why/which system call fails.

you may have to get strace from somewhere, it is a very helpful tool for tracking problems.

Bye
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
/usr vs /usr/local on linuxpackages.net merchtemeagle Slackware 4 10-18-2005 03:09 PM
Relocat /usr/lib and /usr/lib64 to a different path schokshi Fedora 3 08-30-2005 09:14 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
Relationship between /usr/bin and /usr/lib glume Linux - Newbie 4 04-16-2004 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:55 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