delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/27/14:38:25

X-Spam-Check-By: sourceware.org
Message-ID: <BAY108-F18A30EDC565726E6C5D0CAB5F60@phx.gbl>
X-Sender: karlm30 AT hotmail DOT com
In-Reply-To: <20060227103750.GD30238@calimero.vinschen.de>
From: "Karl M" <karlm30 AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ssh-host-config (/var/log/lastlog)
Date: Mon, 27 Feb 2006 11:38:10 -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 fun while it lasted 8-)

Perhaps the permissions/owner for lastlog as a file should be 
644/system.none

It works for me and protects the log a bit better.

Thanks,

...Karl

>From: Corinna Vinschen Subject: Re: ssh-host-config (/var/log/lastlog)
>Date: Mon, 27 Feb 2006 11:37:50 +0100
>
>On Feb 24 08:02, Karl M wrote:
> > Hi All...
> >
> > I set up lastlog as a directory and it works great  8-)
> >
> > In the case where ssh-host-config detects that /var/log/lastlog esists 
>and
> > is a directory, it sets the permissions on the directory to 0777. It 
>seems
> > like it should set the sticky-bit here (1777) to protect the individual
> > files in /var/log/lastlog.
>
>Hmm, yes, you're right.  I'll change that in the script.  However, while
>sshd works fine with a lastlog directory, it's not quite right to allow
>both variations (file/dir) on Cygwin.
>
>I don't know off-hand which applications make use of lastlog, but I'm
>pretty sure you'll end up with some problems.  I just had a quick look
>and it seems that uucpd in inetutils uses a lastlog file and has no idea
>how to handle a lastlog directory...
>
>So, even if it works in sshd, you're moving on thin ice.  You have been
>warned ;-)
>
>
>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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019