Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-14-2005, 04:48 PM
|
#1
|
Member
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368
Rep:
|
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?
|
|
|
10-17-2005, 07:41 AM
|
#2
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
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
|
|
|
10-17-2005, 01:33 PM
|
#3
|
Member
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368
Original Poster
Rep:
|
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.
|
|
|
10-17-2005, 02:15 PM
|
#4
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
Strange..
Maybe you are using an old libpcap? ldd `which ethereal` | grep pcap
Is the user able to use the network, like browsing,... ?
|
|
|
10-17-2005, 02:25 PM
|
#5
|
Member
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368
Original Poster
Rep:
|
matt@monet:~$ ldd 'ethereal-0.10.12' | grep pcap
ldd: ./ethereal-0.10.12: No such file or directory
Thats what I get...
|
|
|
10-17-2005, 06:34 PM
|
#6
|
Member
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368
Original Poster
Rep:
|
I am able to use the net and use SAMBA, etc.
|
|
|
10-18-2005, 11:09 AM
|
#7
|
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|