This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: sshd "PrintLastLog yes"
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: cygwin at cygwin dot com
- Cc: Fermin Sanchez <fermin at fermin dot ch>
- Date: Sun, 7 Sep 2003 14:40:59 -0400 (EDT)
- Subject: RE: sshd "PrintLastLog yes"
- References: <5.1.0.14.0.20030907142823.0468a3d8@127.0.0.1>
- Reply-to: cygwin at cygwin dot com
On Sun, 7 Sep 2003, Larry Hall wrote:
> At 05:30 AM 9/7/2003, Fermin Sanchez you wrote:
> >Hello Corinna
> >
> >> > I added/uncommented "PrintLastLog yes" in /etc/sshd_config and
> >> > restarted
> >> PrintLastLog defaults to yes so that shouldn't be necessary.
> >
> >Yes, I just wanted to be sure.
> >
> >> > Any hints where I should start looking (rtfm didn't bring
> >> > any results,
> >> > neither did a quick google).
> >> I'm using 3.6.1p2, too, obviously and I'm getting the last
> >> log message.
> >> Any chance you have a problem with /var/log/lastlog? Did you
> >> delete it after starting sshd? Permissions?
> >
> >ls -l /var/log/lastlog shows:
> >-rw-r--r-- 1 Administ Domain U 0 Sep 6 17:52 lastlog
> >
> >I did a chmod 664 on /var/log/lastlog, now it works. Thank you again!
> >One good side effect: I'm going to put all this information into a "how
> >to install and run cygwin and sshd on a Windows Server 2003 Domain
> >Controller" ;-)
>
> It would be great to see this as an addition to the Cygwin docs and/or
> automated by the post-install script too. Just a thought.
>
> Larry Hall
Please, please, please don't put this in a postinstall script. I, for
one, would not want any postinstall script to muck around with my
directory and file permissions (as I don't have any control over whether
that script runs). I'd suggest putting it into ssh-host-config instead
(and, of course, the README file for those who prefer to configure sshd
manually).
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
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/