Bug 160643 - pcap user is not added while installing tcpdump/arpwatch
pcap user is not added while installing tcpdump/arpwatch
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: tcpdump (Show other bugs)
4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Martin Stransky
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-16 05:24 EDT by Kir Kolyshkin
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-06-21 05:22:45 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch to tcpdump.spec adding prereq: /usr/sbin/{user,group}add to tcpdump and arpwatch (681 bytes, patch)
2005-06-16 05:24 EDT, Kir Kolyshkin
no flags Details | Diff

  None (edit)
Description Kir Kolyshkin 2005-06-16 05:24:58 EDT
Description of problem:

tcpdump and arpwatch tries to create user and group 'pcap' with UID/GID of 77 in
preinstall script, using /usr/sbin/useradd and /usr/sbin/groupadd.

In some situations it fails because useradd/groupadd binaries (from shadow-utils
rpm) is not yet installed. Proper fix would be to add
Prereq: /usr/sbin/useradd /usr/sbin/groupadd
to appropriate places of tcpdump.spec

Version-Release number of selected component (if applicable):
tcpdump-3.8.2-12


How reproducible:
Use yum to install tcpdump in a clean chroot environment. Say,

mkdir chrooted
yum --installroot chrooted tcpdump

Yum will pick up all dependencies correctly (including shadow-utils which is
required by some other rpm) and install everything. The problem is installation
order is not correct and tcpdump gets installed before shadow-utils.

I have checked that adding prereq for useradd and groupadd fixes the problem.
Patch to tcpdump.spec is attached.
Comment 1 Kir Kolyshkin 2005-06-16 05:24:58 EDT
Created attachment 115528 [details]
patch to tcpdump.spec adding prereq: /usr/sbin/{user,group}add to tcpdump and arpwatch

Note You need to log in before you can comment on or make changes to this bug.