This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ssh-host-config (/var/log/lastlog)


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]