Gentoo Archives: gentoo-user

From: Bob Young <RKY@×××××.Net>
To: Gentoo-user List <gentoo-user@l.g.o>
Subject: [gentoo-user] Wireshark won't run except as root
Date: Thu, 01 May 2008 17:02:55
Message-Id: 007001c8abad$2cb9dfd0$05200a0a@Cyor.Lan
1 I've emerged wireshark, and made myself a member of both the wireshark
2 group, and the tcpdump group, but still wireshark refuses to capture packets
3 if executed as a non root user. The error message is: "Couldn't run dumpcap
4 as a child process: Permission denied."
5
6 A little research indicated that dumpcap should be installed suid root and
7 It appears that it is, but I still can't execute it as a non-root user:
8
9
10 [ 23:16:38 ] Wed Apr 30 /usr/bin $ : ./dumpcap
11 bash: ./dumpcap: Permission denied
12 [ 09:29:50 ] Thu May 01 /usr/bin $ : ls /usr/bin/dump*
13 52 -r-sr-s--- 1 root wireshark 50876 Apr 27 15:49 /usr/bin/dumpcap
14 [ 09:29:52 ] Wed Apr 30 /usr/bin $ : su
15 Password:
16 [ 09:29:55 ] Thu May 01 /usr/bin $ : ./dumpcap
17 File: /tmp/etherXXXXJ8STmt
18 Packets: 7 Packets dropped: 0
19 [ 09:32:15 ] Thu May 01 /usr/bin $ : chown root:root ./dumpcap
20 [ 09:32:19 ] Thu May 01 /usr/bin $ : chmod g+s ./dumpcap
21 [ 09:32:29 ] Thu May 01 /usr/bin $ : chmod u+s ./dumpcap
22 [ 09:32:38 ] Thu May 01 /usr/bin $ : ls /usr/bin/dump*
23 52 -r-sr-s--- 1 root root 50876 Apr 27 15:49 /usr/bin/dumpcap
24 [ 09:32:47 ] Thu May 01 /usr/bin $ : exit
25 exit
26 [ 09:33:01 ] Thu May 01 /usr/bin $ : whoami
27 Cyor
28 [ 09:33:06 ] Thu May 01 /usr/bin $ : ./dumpcap
29 bash: ./dumpcap: Permission denied
30 [ 09:33:10 ] Thu May 01 /usr/bin $ :
31
32 I'm sure it's probably something simple that I'm unaware of or not seeing
33 for some reason. Can anybody point out what I'm doing wrong.
34
35 Thanks,
36 Bob Young
37 San Jose, CA.
38
39 --
40 gentoo-user@l.g.o mailing list

Replies