Bug 61192 - /etc/hosts.deny documentation has bad examples for "booby traps"
/etc/hosts.deny documentation has bad examples for "booby traps"
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: tcp_wrappers (Show other bugs)
7.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Florian La Roche
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-03-14 23:07 EST by John Ha
Modified: 2014-08-04 18:13 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-03-14 23:07:34 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description John Ha 2002-03-14 23:07:30 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.0 (X11; Linux i686; U;) Gecko/20020311

Description of problem:
When I tried to use the example in the "booby traps" section of hosts.deny(5), I
get an error: "bad option name "(/usr/sbin/safe_finger".

Only when I read the hosts_options(5) manpage did I see the "spawn" argument to
run shell commands through hosts.deny.

So instead of:

in.tftpd: ALL: (/path/to/safe_finger ...)

It SHOULD read:

in.ftpd: ALL: spawn (/path/to/safe_finger ...)

Also, there are no references to hosts_options in the hosts.deny manpage, so I
had to do a google search before i found the right syntax.

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


How reproducible:
Always

Steps to Reproduce:
1.man hosts.deny
2.try the "booby trap" example in /etc/hosts.deny using plausible path to
safe_finger
3.tail -f /var/log/messages
4. test "denied" service connection on separate machine.

Actual Results:  xinetd[27718]: error: /etc/hosts.deny line 11: bad option name:
"(/usr/sbin/safe_finger"

Expected Results:  mail safe_finger output to root.

Additional info:
Comment 1 Florian La Roche 2002-06-11 16:37:31 EDT
Fixed in 7.6-22 or higher.

Thanks,

Florian La Roche

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