Bug 76876 - Check for root with [ -w /etc/passwd ] in a startup script for xinetd
Summary: Check for root with [ -w /etc/passwd ] in a startup script for xinetd
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: xinetd (Show other bugs)
(Show other bugs)
Version: 8.0
Hardware: i386 Linux
medium
medium
Target Milestone: ---
Assignee: Jay Fenlason
QA Contact: Brock Organ
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-10-28 16:14 UTC by Michal Jaegermann
Modified: 2014-08-31 23:24 UTC (History)
1 user (show)

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


Attachments (Terms of Use)

Description Michal Jaegermann 2002-10-28 16:14:37 UTC
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-29 04:00:46 UTC
initscripts are part of the particular package.

Comment 2 Jay Fenlason 2003-08-11 17:57:57 UTC
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.