LoginSignup
27
7

More than 3 years have passed since last update.

WiresharkでPermission エラーが出た時の処方箋(you don't have permission to capture on that device mac)

Last updated at Posted at 2019-11-02

前置き

Wireshark を使って gRPC の通信内容をキャプチャしたくなり実行しようとしたところ以下のPermissionエラーが発生しました。その時の処方箋(対応方法)です。自身の備忘録を兼ねています

you don't have permission to capture on that device

Wireshark_Permission_error

手順

Download Wireshark

Download Wireshark のリンクから、 MaxOS用のファイルをダウンロードします。

Wireshark_ダウンロード

ユーザー名を確認する

whoami
exsample-user

bpfの所有権のユーザー名とグループ名を変更する

※ ユーザー名は上記にのコマンドで取得した自身のユーザー名を指定する

cd /dev
sudo chown exsample-user:admin bp*

所有権のユーザー名とグループ名を確認する

ユーザー名は上記のコマンドで取得した自身のユーザー名になっていることが確認できる。

ls -la | grep bp
crw-------   1 exsample-user  admin           23,   0  9 26 16:15 bpf0
crw-------   1 exsample-user  admin           23,   1  9 26 16:15 bpf1
crw-------   1 exsample-user  admin           23,   2 11  2 11:09 bpf2
crw-------   1 exsample-user  admin           23,   3 11  1 21:34 bpf3
crw-------   1 exsample-user  admin           23,   4  9 26 16:16 bpf4

これで完了です。再度、Wiresharkを実行し正常に動作することを確認してみてください。

27
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
27
7