Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Originating-IP: [24.0.161.175] From: "Karl M" To: cygwin AT cygwin DOT com Subject: Re: /var/log/lastlog Date: Sun, 10 Jun 2001 08:21:19 -0700 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_1958_7266_764c" Message-ID: X-OriginalArrivalTime: 10 Jun 2001 15:21:20.0022 (UTC) FILETIME=[002BB360:01C0F1C1] ------=_NextPart_000_1958_7266_764c Content-Type: text/plain; format=flowed Hi All... The patch is attached ...Karl >From: Corinna Vinschen >To: cygwin AT cygwin DOT com >Subject: Re: /var/log/lastlog >Date: Fri, 8 Jun 2001 17:27:44 +0200 > >On Fri, Jun 08, 2001 at 07:46:26AM -0700, Karl M wrote: > > Hi All... > > > > When /var/log/lastlog exists (as an empty file initially), sshd "login" > > correctly displays the last login time and location for the current >user. > > > > Can this directory and file creation be included in the ssh-host-config > > script? > >Sure. Do you want to send a patch? > >Corinna > >-- >Corinna Vinschen Please, send mails regarding Cygwin to >Cygwin Developer mailto:cygwin AT cygwin DOT com >Red Hat, Inc. > >-- >Want to unsubscribe from this list? >Check out: http://cygwin.com/ml/#unsubscribe-simple > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com ------=_NextPart_000_1958_7266_764c Content-Type: text/plain; name="shc-patch"; format=flowed Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="shc-patch" --- ssh-host-config.orig Wed Mar 7 01:38:20 2001 +++ ssh-host-config Sun Jun 10 08:12:21 2001 @@ -433,16 +433,35 @@ echo 'ssh stream tcp nowait root /usr/sbin/sshd -i' >> "${_inetcnf}" else echo '# ssh stream tcp nowait root /usr/sbin/sshd -i' >> "${_inetcnf}" fi echo "Added ssh to ${_inetcnf}" fi fi +# Create /var/log and /var/log/lastlog if not already existing + +if [ -f /var/log ] +then + echo "Creating /var/log failed\!" +else + if [ ! -d /var/log ] + then + mkdir /var/log + fi + if [ -d /var/log/lastlog ] + then + echo "Creating /var/log/lastlog failed\!" + elif [ ! -f /var/log/lastlog ] + then + cat /dev/null > /var/log/lastlog + fi +fi + if [ "${old_install}" = "1" ] then echo echo "Note: If you have used sshd as service or from inetd, don't forget to" echo " change the path to sshd.exe in the service entry or in inetd.conf." fi echo ------=_NextPart_000_1958_7266_764c Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple ------=_NextPart_000_1958_7266_764c--