Operating System - HP-UX
1834210 Members
2362 Online
110066 Solutions
New Discussion

can remshd log into syslog?

 
Jeff Kilgore
New Member

can remshd log into syslog?

I need to know if it is possible to get the remshd to log info into the
syslog. I have alot of files being rcp'ed into one server, and I need to know
what filenames are being rcp'ed in, which server any particular file is coming
from, and what remote user is sending the file. Right now, the inetd is
logging incoming connections only by server name and date. The man pages are
pretty blank on this, and nothing else is out on the web. Any help out there?

Thanks
-Jeff Kilgore
1 REPLY 1
Anthony Goonetilleke_1
Regular Advisor

Re: can remshd log into syslog?

If the amount of info you want is more than syslog can give you (in this case
file names etc sounds like it is) you can do something like what I once did to
ftp. Its a bit messy but it works and you can use it as a starying point

#!/bin/sh
# Desc: Logs all ftp commands and time
LOGFILE=/var/adm/ftp/ftp.log
echo "`whoami` on `uname -n` opts : $@ \nStart ftp : `date`">> $LOGFILE
/usr/bin/ftp $@
echo "End ftp : `date`">> $LOGFILE
echo "\n">> $LOGFILE

You should add some traps and make it a bit smarter but you can get the general
jist of it I think. basically its just a wrapper for the command and you can
store some or all the info issued to it. Just replace the original command
with this one and rename the original command.

regards,
AG