X-Spam-Check-By: sourceware.org Date: Mon, 27 Feb 2006 11:37:50 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: ssh-host-config (/var/log/lastlog) Message-ID: <20060227103750.GD30238@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/