[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: hosts.allow & hosts.deny



> ALL: ALL: (/usr/sbin/wall test) &
> 
> Of course, this does not do anything but broadcast "test" to all of the 
> consoles, but it should have executed the command when i tried to telnet 
> into my machine, which it did not.  Furthermore, it did not even allow me 
> into the machine using telnet.  (when i commented out the "(/usr/sbin/wall 
> test) &" part it does let me in)

ALL: ALL: spawn ( /bin/echo -e "%s Connection attempt blocked" | \
        /bin/mail -s "Connect attempt to %d blocked" admin )

There's a handful of documentation covering this subject on
http://www.linuxsecurity.com/docs

dave






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]