public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* ssh/telnet
@ 2002-12-05 12:54 Andrew DeFaria
  0 siblings, 0 replies; 9+ messages in thread
From: Andrew DeFaria @ 2002-12-05 12:54 UTC (permalink / raw)
  To: cygwin

I have Cygwin installed at home. I used to telnet to my home machine and 
it would say:

Last login: Fri Aug 23 12:02:56 2002 from <ip address>
$

I have since turned off telnet and switched to ssh. I still get that 
same line echoed out about when I last logged in. Cool, except it still 
says Fri Aug 23th! IOW telnet somehow updated something so that that 
last logged in date would be correct. Apparently ssh isn't updating 
anything. Is this a bug? (Though admittedly a minor bug).




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ssh/telnet
  2002-12-07  7:04       ` ssh/telnet Andrew Markebo
@ 2002-12-09 21:46         ` Andrew DeFaria
  0 siblings, 0 replies; 9+ messages in thread
From: Andrew DeFaria @ 2002-12-09 21:46 UTC (permalink / raw)
  To: cygwin

Andrew Markebo wrote:

> | Last login: Fri Aug 23 12:02:56 2002 from 206.184.204.2
> | Starbase:who am i
> | STARBASE!Andrew tty1 Dec 6 15:47
> | Starbase:who
> | Andrew tty1 Dec 6 15:47
> | Still get Fri Aug 23 for last login.
>
> Hmm what command does your ssh-deamon fire up on the 'remote' machine,

Ah, I'm running Cygwin's sshd as a service.

> either you have to tell your shell that it should act as "login", or
> maybe you even have given it the silent switch.. 

The parameters passed are: /usr/sbin/sshd -D and CYGWIN is set to ntsec 
in the environment.

> Which shell do you run, and so on? 

I run bash. The shell runs OK. Note that this last login thing happens 
before bash is started:

$ ssh andrew@defaria.com
andrew@defaria.com's password:
Last login: Fri Aug 23 12:02:56 2002 from 206.184.204.2
Starting /etc/profile...
Ending /etc/profile...

> Could it be something like ash in /etc/passwd is used.. 

Not for my account!




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ssh/telnet
  2002-12-06 17:09       ` ssh/telnet Abraham Backus
@ 2002-12-09 20:09         ` Andrew DeFaria
  0 siblings, 0 replies; 9+ messages in thread
From: Andrew DeFaria @ 2002-12-09 20:09 UTC (permalink / raw)
  To: cygwin

Abraham Backus wrote:

> After checking things out a little more, it looks like "last logged 
> in" type
> of data is in your wtmp database, which on my system is /var/log/wtmp. 
> This
> appears to be a log/history of past logins. To view the data in here, try
> the following command:
> $ who /var/log/wtmp

Well who didn't use to work all that good in eariler versions of Cygwin 
but appears to be working better now. Here's what I get:

who /var/log/wtmp | tail 
Andrew   tty4     Dec  9 15:12
Andrew   ftp1828  Dec  9 15:19
Andrew   ftp3884  Dec  9 15:20
Andrew   ftp2520  Dec  9 15:23
ftp      ftp3896  Dec  9 16:11
ftp      ftp4068  Dec  9 16:11
Andrew   tty4     Dec  9 18:19
Andrew   tty5     Dec  9 18:19
Andrew   tty4     Dec  9 18:40
Andrew   tty5     Dec  9 20:01

So I would expect that the last login should say something liek Dec 9!




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ssh/telnet
  2002-12-06 16:33     ` ssh/telnet Andrew DeFaria
  2002-12-06 17:09       ` ssh/telnet Abraham Backus
@ 2002-12-07  7:04       ` Andrew Markebo
  2002-12-09 21:46         ` ssh/telnet Andrew DeFaria
  1 sibling, 1 reply; 9+ messages in thread
From: Andrew Markebo @ 2002-12-07  7:04 UTC (permalink / raw)
  To: cygwin

>
| Last login: Fri Aug 23 12:02:56 2002 from 206.184.204.2
| Starbase:who am i
| STARBASE!Andrew   tty1     Dec  6 15:47
| Starbase:who
| Andrew   tty1     Dec  6 15:47
>
| Still get Fri Aug 23 for last login.

Hmm what command does your ssh-deamon fire up on the 'remote' machine,
either you have to tell your shell that it should act as "login", or
maybe you even have given it the silent switch.. 

Which shell do you run, and so on? 

Could it be something like ash in /etc/passwd is used.. 

      /Andy

-- 
 The eye of the beholder rests on the beauty!



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ssh/telnet
  2002-12-06 16:33     ` ssh/telnet Andrew DeFaria
@ 2002-12-06 17:09       ` Abraham Backus
  2002-12-09 20:09         ` ssh/telnet Andrew DeFaria
  2002-12-07  7:04       ` ssh/telnet Andrew Markebo
  1 sibling, 1 reply; 9+ messages in thread
From: Abraham Backus @ 2002-12-06 17:09 UTC (permalink / raw)
  To: cygwin

After checking things out a little more, it looks like "last logged in" type
of data is in your wtmp database, which on my system is /var/log/wtmp.  This
appears to be a log/history of past logins.  To view the data in here, try
the following command:
$ who /var/log/wtmp

Otherwise, I'm at a loss about what's happening on your system :)

-Abe

----- Original Message -----

> Last login: Fri Aug 23 12:02:56 2002 from 206.184.204.2
> Starbase:who am i
> STARBASE!Andrew   tty1     Dec  6 15:47
> Starbase:who
> Andrew   tty1     Dec  6 15:47
>
> Still get Fri Aug 23 for last login.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ssh/telnet
  2002-12-06 15:41   ` ssh/telnet Abraham Backus
@ 2002-12-06 16:33     ` Andrew DeFaria
  2002-12-06 17:09       ` ssh/telnet Abraham Backus
  2002-12-07  7:04       ` ssh/telnet Andrew Markebo
  0 siblings, 2 replies; 9+ messages in thread
From: Andrew DeFaria @ 2002-12-06 16:33 UTC (permalink / raw)
  To: cygwin



Abraham Backus wrote:

> I believe that this information is stored in the utmp database, which 
> appears to be in /var/run/utmp (a binary file) on my installation. If 
> you type the "who am i" command, it gives the information from utmp. 
> There are probably some tools for displaying what's in this file in a 
> textual/readable format. Anyway, does the output of "who am i" give 
> the same information as what you are getting or is it more accurate?

Last login: Fri Aug 23 12:02:56 2002 from 206.184.204.2
Starbase:who am i
STARBASE!Andrew   tty1     Dec  6 15:47
Starbase:who
Andrew   tty1     Dec  6 15:47

Still get Fri Aug 23 for last login.

>
>
> ----- Original Message -----
>
>> I did this last night. I'm now on Cygwin 1.3.17 and have openssh
>> 3.5p1-2. I run ssh as a service and am on Windows XP SP1. Still see Fri
>> Aug 23rd as the last login date. Where is this last login date stored?
>> How is it updated?
>
>
>
>




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ssh/telnet
  2002-12-06 13:20 ` ssh/telnet Andrew DeFaria
@ 2002-12-06 15:41   ` Abraham Backus
  2002-12-06 16:33     ` ssh/telnet Andrew DeFaria
  0 siblings, 1 reply; 9+ messages in thread
From: Abraham Backus @ 2002-12-06 15:41 UTC (permalink / raw)
  To: cygwin

I believe that this information is stored in the utmp database, which
appears to be in /var/run/utmp (a binary file) on my installation.  If you
type the "who am i" command, it gives the information from utmp.  There are
probably some tools for displaying what's in this file in a textual/readable
format.  Anyway, does the output of "who am i" give the same information as
what you are getting or is it more accurate?

----- Original Message -----
> I did this last night. I'm now on Cygwin 1.3.17 and have openssh
> 3.5p1-2. I run ssh as a service and am on Windows XP SP1. Still see Fri
> Aug 23rd as the last login date. Where is this last login date stored?
> How is it updated?



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ssh/telnet
  2002-12-05 14:03 ssh/telnet Abraham Backus
@ 2002-12-06 13:20 ` Andrew DeFaria
  2002-12-06 15:41   ` ssh/telnet Abraham Backus
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew DeFaria @ 2002-12-06 13:20 UTC (permalink / raw)
  To: cygwin

Abraham Backus wrote:

> Andrew,
> I tried with sshd running as its own NT service, and again with it running
> under inetd and my "last logged in" gets updated appropriately.
>
> Cygwin DLL verion 1.3.17
> openssh version 3.5p1-2
> Windows 2000 SP2
>
> Try updating your cygwin packages by running cygwin setup.exe and see if
> that remedies your troubles.

I did this last night. I'm now on Cygwin 1.3.17 and have openssh 
3.5p1-2. I run ssh as a service and am on Windows XP SP1. Still see Fri 
Aug 23rd as the last login date. Where is this last login date stored? 
How is it updated?

>
> -Abe
>
> "Andrew DeFaria" <ADeFaria@Salira.com> wrote in message
> news:<3DEFB5AE.4050400@Salira.com>...
>
>> I have since turned off telnet and switched to ssh. I still get that
>> same line echoed out about when I last logged in. Cool, except it still
>> says Fri Aug 23th! IOW telnet somehow updated something so that that
>> last logged in date would be correct. Apparently ssh isn't updating
>> anything. Is this a bug? (Though admittedly a minor bug).
>
>
>
>




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ssh/telnet
@ 2002-12-05 14:03 Abraham Backus
  2002-12-06 13:20 ` ssh/telnet Andrew DeFaria
  0 siblings, 1 reply; 9+ messages in thread
From: Abraham Backus @ 2002-12-05 14:03 UTC (permalink / raw)
  To: cygwin; +Cc: Andrew DeFaria

Andrew,
I tried with sshd running as its own NT service, and again with it running
under inetd and my "last logged in" gets updated appropriately.

Cygwin DLL verion 1.3.17
openssh version 3.5p1-2
Windows 2000 SP2

Try updating your cygwin packages by running cygwin setup.exe and see if
that remedies your troubles.
-Abe

"Andrew DeFaria" <ADeFaria@Salira.com> wrote in message
news:<3DEFB5AE.4050400@Salira.com>...
> I have since turned off telnet and switched to ssh. I still get that
> same line echoed out about when I last logged in. Cool, except it still
> says Fri Aug 23th! IOW telnet somehow updated something so that that
> last logged in date would be correct. Apparently ssh isn't updating
> anything. Is this a bug? (Though admittedly a minor bug).



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-12-10  4:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-05 12:54 ssh/telnet Andrew DeFaria
2002-12-05 14:03 ssh/telnet Abraham Backus
2002-12-06 13:20 ` ssh/telnet Andrew DeFaria
2002-12-06 15:41   ` ssh/telnet Abraham Backus
2002-12-06 16:33     ` ssh/telnet Andrew DeFaria
2002-12-06 17:09       ` ssh/telnet Abraham Backus
2002-12-09 20:09         ` ssh/telnet Andrew DeFaria
2002-12-07  7:04       ` ssh/telnet Andrew Markebo
2002-12-09 21:46         ` ssh/telnet Andrew DeFaria

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).