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

Posted on 2006-03-25
Last Modified: 2010-03-18

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?


Question by:kara334
    LVL 3

    Expert Comment

    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?

    LVL 43

    Expert Comment

    su asks for root's(superuser) password. Do You know it?
    LVL 3

    Expert Comment

    The root password is not standard -- what's the sense in having a password 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.
    LVL 19

    Accepted Solution

    There is no root password by default, you have to set one.

    sudo passwd root
    <enter new password twice>
    su -
    <enter password you set>
    LVL 5

    Expert Comment

    ask root password from Linux class people or ask them to give tcpdump permission to your user

    Author Comment

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


    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now