Eu usei este comando e ele é executado:
usermod -a -G wireshark _your_username_
newgrp wireshark
sudo chgrp wireshark /usr/sbin/dumpcap
tshark -i eth0 -w outfile
Por favor, tente.
Eu instalei wireshark usando yum ( RUN yum install -y wireshark wireshark-qt ) - e não posso executá-lo quando eu ssh no container.
# tshark
tshark: Couldn't run /usr/sbin/dumpcap in child process: Operation not permitted
Are you a member of the 'wireshark' group? Try running
'usermod -a -G wireshark _your_username_' as root.
Eu tentei executar usermod -a -G wireshark root (como quando eu ssh na máquina, é como root). Isso não ajuda.
Também tentou su -c '/usr/sbin/tshark' sem sucesso.
O que devo fazer?
Eu usei este comando e ele é executado:
usermod -a -G wireshark _your_username_
newgrp wireshark
sudo chgrp wireshark /usr/sbin/dumpcap
tshark -i eth0 -w outfile
Por favor, tente.