tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: WScates () amc ! jccbi ! gov
To: tru64-unix-managers
Subject: [SUMMARY:]questions about hosts.deny
Date: Mon, 16 Jul 2001 18:35:31 +0000	[thread overview]
Message-ID: <102653652421877.tru64-unix-managers.marc@archive.invalid> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01C10E26.17B6B300", Size: 4775 bytes --]

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C10E26.17B6B300
Content-Type: text/plain;
	charset="iso-8859-1"

Thanks for all the replies I received.  
 
The solution was proved by Frank Wortner, who suggested I use /bin/Mail and
not /bin/mail (which does not support the -s subject).
 
-Will

-----Original Message----- 
 From: WScates@amc.jccbi.gov [mailto:WScates@amc.jccbi.gov]
Sent: Monday, July 16, 2001 11:42 AM
To: tru64-unix-managers@ornl.gov
Subject: questions about hosts.deny



Hello everyone, 

I have a quick question about spawning executables in the /etc/hosts.deny
file. 

I know that on a Sun box I can preform the following, and receive the
correct responce: 

/ect/hosts.deny : 

ALL:ALL: spawn ( echo -e " Attempted connection from %c for %d (pid %p)" |
mail -s "From ghost@$(uname -n) \: %d" ghostd@ids )

On Linux (specifically Slackware) I can preform the same thing with the
following: 

ALL:ALL: spawn /bin/echo -e " Attempted connection from %c for %d (pid %p)"
| /bin/mail -s "From ghost@$(uname -n)\ : %d" ghostd@ids

I have tried both ways (and variants between) on my alpha testing box, which
is a DEC 3000 running v4.0g, with no luck. 

Could someone point me in the right direction?  Wheither it's documents or
personal experience. 


Thanks, 

William Scates 
SMF UNIX Systems Administrator 
OAO / FAA @ MMAC 
wscates@amc.jccbi.gov 


------_=_NextPart_001_01C10E26.17B6B300
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>questions about hosts.deny</TITLE>
<XETA 
CONTENT="text/html; charset=iso-8859-1" HTTP-EQUIV="Content-Type"><XETA 
CONTENT="MS Exchange Server version 5.5.265312" NAME="Generator">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=904333418-16072001><FONT face=Arial color=#0000ff size=2>Thanks 
for all the replies I received.&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=904333418-16072001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=904333418-16072001><FONT face=Arial color=#0000ff size=2>The 
solution was proved by Frank Wortner, who suggested&nbsp;I use /bin/Mail and not 
/bin/mail (which does not support the -s subject).</FONT></SPAN></DIV>
<DIV><SPAN class=904333418-16072001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=904333418-16072001><FONT face=Arial color=#0000ff 
size=2>-Will</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader><FONT face="Times New Roman" 
  size=2>-----Original Message-----<SPAN class=904333418-16072001><FONT 
  face=Arial color=#0000ff>&nbsp;</FONT></SPAN></FONT></DIV>
  <DIV class=OutlookMessageHeader><FONT face="Times New Roman" size=2><SPAN 
  class=904333418-16072001>&nbsp;</SPAN><B>From:</B> WScates@amc.jccbi.gov 
  [mailto:WScates@amc.jccbi.gov]<BR><B>Sent:</B> Monday, July 16, 2001 11:42 
  AM<BR><B>To:</B> tru64-unix-managers@ornl.gov<BR><B>Subject:</B> questions 
  about hosts.deny<BR><BR></DIV></FONT>
  <P><FONT face=Arial size=2>Hello everyone,</FONT> </P>
  <P><FONT face=Arial size=2>I have a quick question about spawning executables 
  in the /etc/hosts.deny file.</FONT> </P>
  <P><FONT face=Arial size=2>I know that on a Sun box I can preform the 
  following, and receive the correct responce:</FONT> </P>
  <P><FONT face=Arial size=2>/ect/hosts.deny :</FONT> </P>
  <P><FONT face=Arial size=2>ALL:ALL: spawn ( echo -e " Attempted connection 
  from %c for %d (pid %p)" | mail -s "From ghost@$(uname -n) \: %d" ghostd@ids 
  )</FONT></P>
  <P><FONT face=Arial size=2>On Linux (specifically Slackware) I can preform the 
  same thing with the following:</FONT> </P>
  <P><FONT face=Arial size=2>ALL:ALL: spawn /bin/echo -e " Attempted connection 
  from %c for %d (pid %p)" | /bin/mail -s "From ghost@$(uname -n)\ : %d" 
  ghostd@ids</FONT></P>
  <P><FONT face=Arial size=2>I have tried both ways (and variants between) on my 
  alpha testing box, which is a DEC 3000 running v4.0g, with no luck.</FONT> 
</P>
  <P><FONT face=Arial size=2>Could someone point me in the right 
  direction?&nbsp; Wheither it's documents or personal experience.</FONT> 
  </P><BR>
  <P><FONT face=Arial size=2>Thanks,</FONT> </P>
  <P><FONT face=Arial size=2>William Scates</FONT> <BR><FONT face=Arial 
  size=2>SMF UNIX Systems Administrator</FONT> <BR><FONT face=Arial size=2>OAO / 
  FAA @ MMAC</FONT> <BR><FONT face=Arial size=2>wscates@amc.jccbi.gov</FONT> 
</P></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C10E26.17B6B300--

                 reply	other threads:[~2001-07-16 18:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox