之前都是直接使用Kali里面安装好的Wireshark和Win下的,Ubuntu的来个小计

PS:解决方法不重要,我觉得更重要的是这个摸索的过程

解决方法

# 安装wireshark
sudo apt install wireshark
# 新增wireshark用户组
$ sudo groupadd wireshark
# 将dumpcap更改为wireshark用户组
$ sudo chgrp wireshark /usr/bin/dumpcap
# 让wireshark用户组有root权限使用dumpcap
$ sudo chmod 4755 /usr/bin/dumpcap
# 将当前用户加入wireshark用户组
$ sudo gpasswd -a dnt wireshark

探索过程

Wireshark:couldn't run dumpcap in child process

看到这个第一反应都是:先把用户换成有权限的用户组,或者专门设置一个专用的

更换所属用户:sudo chown dnt /usr/bin/dumpcap

更换所属的组:sudo chgrp dnt /usr/bin/dumpcap

再次使用,爆出新的错误:

按照给的解决方案试试:

sudo dpkg-reconfigure wireshark-common(确保你之前安装是选的是yes)

运行:ll /usr/bin/ | grep dumpcap 发现错误并没有解决

那么这个方向行不通,换个思路:新建一个专门的组,然后给权限(安装的时候默认已经建立了wireshark)

先恢复下,然后设置文件是4755权限(下面会解释)sudo chmod 4755 /usr/bin/dumpcap

再把当前用户添加到wireshark组里面:sudo gpasswd -a dnt wireshark

之前有朋友说Linux命令不太熟悉,我说以后用到就稍微解释下,这边简单说明下:

命令解释

755含义

先说755代表什么:

以常见的 -rwx r-x r-x 为例:

  1. 开头一位是代表文件类型,后面全部是权限
  2. 权限分三块,这个2015年我们说过:(点我)
    1. 前面三位是当前用户的权限
    2. 接着三位是当前用户所在组的权限
    3. 最后三位是其他用户的权限
    4. rwx => 2^2 2^1 2^0 => 4 2 1 => 4+2+1 => 7
  3. r代表可读,w代表可写,x代表可执行
    1. rwx r-x r-x => 4+2+1 4+1 4+1 => 755

4755含义

再说一下4755含义:

chmod 4755 与 chmod 755 的区别在于开头多了一位,这个4表示其他用户执行文件时,具有与所有者相当的权限

然后这边就可以正常使用了

Wireshark:couldn't run dumpcap in child process(附带Linux下探索过程)的更多相关文章

  1. 解决ubuntu系统中wireshark:Couldn't run /usr/bin/dumpcap in child process: Permission denied的问题

    ubuntu系统运行WIreshark的时候,出现如下错误: Couldn't run /usr/bin/dumpcap in child process: Permission denied 解决办 ...

  2. wireshark:Couldn't run /usr/bin/dumpcap in child process: Permission denied

    When start wireshark, I met an error like: 引用 Couldn't run /usr/bin/dumpcap in child process: Permis ...

  3. wireshark_Couldn’t run /usr/sbin/dumpcap in child process: Permission denied

    关于Wireshark出现:Couldn't run /usr/sbin/dumpcap in child process: Permission denied Are you a member of ...

  4. debian系统,启动Wireshark,出现Couldn't run /usr/bin/dumpcap in child process:权限不够

    这是由于当前用户没有权限运行/usr/bin/dumpcap造成的./usr/bin/dumpcap是Wireshark的包捕获引擎. 先用ls命令看一下dumpcap的权限情况:xy@debian- ...

  5. 使用wireshark出现Couldn't run /usr/bin/dumpcap in child process: Permission denied解决办法

    sudo apt-get install libcap2-bin wireshark sudo chgrp myusername /usr/bin/dumpcap # myusername是你使用wi ...

  6. innobackupex:Error:xtrabackup child process has died at /usr/bin/innobackupex

    使用innobackupex进行数据库备份,报如下错误:innobackupex --compress --parallel=4  --user=root  --password=yoon /expo ...

  7. Child Process

    Child Process child_process 这个模块可以生成一个子进程.nodejs提供了好几个API,本质上都是调用child_process.spawn(): const spawn ...

  8. node子进程(Child Process)获取硬盘分区

    node   child_process文档 child_process.exec(command[, options][, callback]) command <string> The ...

  9. nodejs child process

    //Create child processvar thread = require('child_process'); var msg = thread.fork(__dirname + '/chi ...

随机推荐

  1. vuex的购物车效果 index.js

    import Vue from 'vue'; import Vuex, { Store } from 'vuex'; import { stat } from 'fs'; Vue.use(Vuex); ...

  2. 利用js给datalist或select动态添加option选项

    <!DOCTYPE html> <html> <head> <title>鼠标点击时加载</title> <script type=& ...

  3. CentOS7 网络NAT模式

    问题:安装完毕ping命令不能用,然后改为桥接模式,ping可以用. 先了解桥接,NAT 的含义. 桥接:在bridged模式下,VMWare虚拟出来的操作系统就像是局域网中的一台独立的主机,它可以访 ...

  4. Java 8 函数式接口

    函数式接口(Functional Interface)就是一个有且仅有一个抽象方法,但是可以有多个非抽象方法的接口. 函数式接口可以被隐式转换为 lambda 表达式. Lambda 表达式和方法引用 ...

  5. windows 10 & 禁用服务.bat

    windows 10 & 禁用服务.bat 禁用服务.bat @echo off net stop WSearch net stop wuauserv net start TrustedIns ...

  6. React Native & Android & iOS

    React Native & Android & iOS React Native & Android & iOS https://facebook.github.io ...

  7. 自定义组件Component

    定义compa组件 由4个页面构成 compa.js: compa.json: compa.wxml: compa:wxss: 1.compa.json:在json文件进行自定义组件声明 { &quo ...

  8. LODOP安装参数 及静默安装

    在cmd命令里里静默安装lodop(c-lodop不能静默安装),本人的安装文件放在D:\lodopdownload\3060\Lodop6.224_Clodop3.060,如下所示: lodop静默 ...

  9. c++ string替换指定字符串

    string fnd = "dataset"; string rep = "labels"; string buf = "d:/data/datase ...

  10. Data Science With R In Visual Studio

    R Projects Similar to Python, when we installed the data science tools we get an “R” section in our ...