Snapshot report - ssh error
Karl M
karlm30@hotmail.com
Thu Feb 23 17:26:00 GMT 2006
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/
More information about the Cygwin
mailing list