Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 76876 - Check for root with [ -w /etc/passwd ] in a startup script for xinetd
Check for root with [ -w /etc/passwd ] in a startup script for xinetd
Product: Red Hat Linux
Classification: Retired
Component: xinetd (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jay Fenlason
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2002-10-28 11:14 EST by Michal Jaegermann
Modified: 2014-08-31 19:24 EDT (History)
1 user (show)

See Also:
Fixed In Version: xinetd-2.3.11-1.8.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-08-11 13:57:57 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Michal Jaegermann 2002-10-28 11:14:37 EST
Description of Problem:

There are too many situations when such test may give both false positive
and false negative results for this thing to be reliable.  True, an installation
has to be modified for that but this may happen and why create weird surprises?
[ "$(id -u)" = 0 ] || exit 1
should do the job instead.

This bug shows up also, at least, in initscripts-6.67-1 used in RH 7.3 distro.
See also #76612 for a related gotcha.
Comment 1 Bill Nottingham 2002-10-28 23:00:46 EST
initscripts are part of the particular package.
Comment 2 Jay Fenlason 2003-08-11 13:57:57 EDT
This was fixed in xinetd-2.3.11-1.8.0 

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