I'm a little stumped on this one. Our SFTP_LOGDIR settings in /<install>/sftp-server.sh are as follows:
--------------------------
# Setup a logfile if not set by the .rc profile
if [[ -z "$SFTP_LOGFILE" ]]
then
tdir=${TMPDIR:-/tmp}
logid=`echo $LOGNAME | tr "[:upper:]" "[:lower:]"`
dte=`date +%j.%H%M%S`
SFTP_LOGFILE=$tdir/sftp-server.$logid.$dte.$$.log
fi
--------------------------
But our log file names are 2 hours behind the creation date, e.g.:
-rw-r--r-- 1 USERIDAB GROUPABC 496 Feb 1 11:09 sftp-server.useridab.032.090939.50794366.log
Any thoughts?
SFTP Log file name two hours off
Re: SFTP Log file name two hours off
The z/OS Unix date command uses the TZ environment variable to determine the time zone.
If you don't have this set anywhere (correctly), then you many need to export TZ in your /etc/ssh/sftp-server.rc
If you don't have this set anywhere (correctly), then you many need to export TZ in your /etc/ssh/sftp-server.rc
Re: SFTP Log file name two hours off
Thanks again for the help on this - much appreciated!