delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <BAY108-F128D390039EE2FB0CE4F57B5F20@phx.gbl> |
X-Sender: | karlm30 AT hotmail DOT com |
In-Reply-To: | <20060223111631.GB31794@calimero.vinschen.de> |
From: | "Karl M" <karlm30 AT hotmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Snapshot report - ssh error |
Date: | Thu, 23 Feb 2006 08:54:18 -0800 |
Mime-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hi All... It was a permissions problem with /var/run/utmp. But that got me looking...back in Nov 2003, Corinna made the following change to ssh-host-config # Create /var/log and /var/log/lastlog if not already existing -if [ -f /var/log ] +if [ -f ${LOCALSTATEDIR}/log ] then - echo "Creating /var/log failed\!" + echo "Creating ${LOCALSTATEDIR}/log failed!" else - if [ ! -d /var/log ] + if [ ! -d ${LOCALSTATEDIR}/log ] then - mkdir -p /var/log + mkdir -p ${LOCALSTATEDIR}/log fi - if [ -d /var/log/lastlog ] + if [ -d ${LOCALSTATEDIR}/log/lastlog ] then - echo "Creating /var/log/lastlog failed\!" - elif [ ! -f /var/log/lastlog ] + chmod 777 ${LOCALSTATEDIR}/log/lastlog + elif [ ! -f ${LOCALSTATEDIR}/log/lastlog ] then - cat /dev/null > /var/log/lastlog + cat /dev/null > ${LOCALSTATEDIR}/log/lastlog + chmod 666 ${LOCALSTATEDIR}/log/lastlog fi fi And I am curious why set the permissions to 777 on /var/log/lastlog if it is a directory? Thanks, ...Karl >From: Corinna Vinschen Subject: Re: Snapshot report - ssh error >Date: Thu, 23 Feb 2006 12:16:31 +0100 > >On Feb 22 20:51, Karl M wrote: > > Hi All... > > > > With the latest snapshots (2/22, 2/20 and possible 2/19, not sure about > > 2/19 and have not tried any before that) I get an error in my >application > > log like the following after each interactive ssh session loggs off. > > > > sshd: PID 2928: syslogin_perform_logout: logout() returned an error. > >A permission problem with /var/log/wtmp or /var/run/utmp? > > >Corinna > >-- >Corinna Vinschen Please, send mails regarding Cygwin to >Cygwin Project Co-Leader cygwin AT cygwin DOT com >Red Hat > >-- >Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple >Problem reports: http://cygwin.com/problems.html >Documentation: http://cygwin.com/docs.html >FAQ: http://cygwin.com/faq/ > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |