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
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: xinetd
Version: 8.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jay Fenlason
QA Contact: Brock Organ
URL:
Whiteboard:
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:
Clone Of:
Environment:
Last Closed: 2003-08-11 17:57:57 UTC
Embargoed:


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.