Link to home
Start Free TrialLog in
Avatar of kara334
kara334Flag for United States of America

asked on

How to use "su" to do a tcpdump on terminal on a mac

Hi,

I'm taking a networking class taught in linux, and I'm using the terminal shell on my Mac at home to practice.

One assignment talks about tcpdump and asks us to first use the "su" command. When I do, I'm asked for a password. I don't know what password to use. Does anyone have any ideas how to find out what password to use?

Thanks.


Kara
Avatar of leisner
leisner

tcpdump is a privaleged command....

whoever maintains the machine has to provide you with a means to run tcpdump....

Is it your machine....?  You should have a way to log on as root....

When you say "terminal shell on my Mac" is tcpdump on your mac?

su asks for root's(superuser) password. Do You know it?
The root password is not standard -- what's the sense in having a password then...you have to ask whoever configured the machine -- or boot single user mode and change it (but that might take a password).  If you have to ask, you probably shouldn't be doing this....

You should ask whoever came up with the assignment.

Note  tools like ethereal can analyze pcap files after their snooped.
ASKER CERTIFIED SOLUTION
Avatar of alextoft
alextoft
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ask root password from Linux class people or ask them to give tcpdump permission to your user
Avatar of kara334

ASKER

Thank you. This was actually my own Mac, and a root password had never been set.


Kara