This should be easily done by add entry in /etc/inetd.conf and
/etc/services
then restart inetd (or send a SIGHUP).
-----cut----------/etc/inetd.conf----------cut---------
lazytail stream tcp nowait root /usr/sbin/tcpd /bin/tail -f \
/var/log/messages
------cut---------/etc/services-----------cut--------
lazytail 999999/tcp        # tail messages port
For some security concern, i'd do the following:
1. provide over restricted www.
REASON: you are not going to sit there watch it second after second anyway
how: copy the file to a www dir frequently as a cron; reload your page
manually; prepend some html header to the file after copying so that the
file will refresh automatically
crude security: let the dir .htaccess controlled.
config the dir to be access through strong SSL connection
2. down the inetd road
a) restrict access through tcpwrapper conf
b) set up a special user to tail the file instead of root and set up
/etc/inetd.conf entry accordingly.
3. don't do it :-)
Jerry Yu
----------------------------------------------------------------------------
Systems Engineer        | ">zyu@tc.net
Premiere Technologies        | 404-262-8544(O)
Atlanta, GA 30326        | ae.tc.net/dept/engineering/op/public/developer/zyu
On Tue, 15 Feb 2000, David Hamm wrote:
#I'd like tto telnet to a specified port on a server and start a
#"tail -f /var/log/messages" with no login and have the output displayed on the
#client. Can I do this with existing tools in inetd or must I break out perl or
#c?
#
# ---------------------------------
#David Hamm
#Systems Analyst
#Imaging Technologies Services Inc.
#email: ">dhamm@itrepro.com
#voice: 404-870-6663
#---------------------------------
#--
#To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.
#
--
To unsubscribe: mail ">majordomo@ale.org with "unsubscribe ale" in message body.