Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
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
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: xinetd
Version: 8.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jay Fenlason
QA Contact: Brock Organ
Depends On:
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:
Last Closed: 2003-08-11 17:57:57 UTC

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.