How to add non root user in using Kali Linux Wireshark


  In this tutorial I'm going to share on How to add non root user in using Kali Linux Wireshark .In order for Wireshark to capture packet, it need to use dumpcap file. You will get  "There are no interfaces on which capture can be done "error if you don't configure the  new user to use dumpcap file.

No interface to capture

1)Add group that will use dump cap file and add user in the group.
In this example, I create a group called wireshark.

1.1) creater a group
orca@omura:~$sudo groupadd wireshark

1.2) add user in the group

orca@omura:~$sudo usermod -a -G wireshark orca

Add group and add user

2) Make  dumpcap file to work with wireshark group.and configure the network

2.1)Make dumpcap file to work with "wireshark group" and change file permission

orca@omura:~$sudo chgrp wireshark /usr/bin/dumpcap

orca@omura:~$sudo chmod 750 /usr/bin/dumpcap

2.2) Set network privileges for dumpcap

orca@omura:~$sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap

setting network privileges for dumpcap

3) reboot  system

orca@omura:~$sudo reboot   

System reboot

4)Log in with the new user account and try to capture using Wireshark

Wireshark should able to work

Next Post »