#! /bin/sh # Simplest pidentd (rfc1413), usefull for Irc servers (E1) # 1995/10 by Laurent Demailly - L@Demailly.com - http://www.demailly.com/~dl/ # Installation: add # ident 113/tcp auth # to /etc/services # ident stream tcp nowait nobody /usr/local/etc/identd identd # to /etc/inetd.conf # (replace 'nobody' by any user id) # and put this file 755 in /usr/local/etc/ # kill -1 inetd process and you are done ! CTRLM=" " IFS=",$CTRLM" read pin pout /bin/echo "$pin,$pout : USERID : OTHER : no-ident-$CTRLM"