|
|
login time
Is there any command I can run to give me the last login date/time of a
user?
Thanks,
Dave
|
|
0
|
|
|
|
Reply
|
dacooley (120)
|
11/23/2005 3:29:26 PM |
|
Dave wrote:
> Is there any command I can run to give me the last login date/time of a
> user?
Yes. The last command:
$ last -1 root
root console Wed Nov 16 12:25 - 12:40 (00:15)
$
--chris
|
|
0
|
|
|
|
Reply
|
Chris
|
11/23/2005 3:35:21 PM
|
|
In article <dm22gc$kjh$1@new-usenet.uk.sun.com>,
Chris Gerhard <Chris.Gerhard@sun.com> wrote:
> Dave wrote:
> > Is there any command I can run to give me the last login date/time of a
> > user?
>
> Yes. The last command:
>
> $ last -1 root
> root console Wed Nov 16 12:25 - 12:40 (00:15)
> $
>
>
> --chris
But only if you haven't recycled wtmp, which grows with every
login/logout.
--
DeeDee, don't press that button! DeeDee! NO! Dee...
|
|
0
|
|
|
|
Reply
|
Michael
|
11/23/2005 8:08:45 PM
|
|
Michael Vilain <vilain@spamcop.net> wrote:
> In article <dm22gc$kjh$1@new-usenet.uk.sun.com>,
> Chris Gerhard <Chris.Gerhard@sun.com> wrote:
>
>> Dave wrote:
>> > Is there any command I can run to give me the last login date/time of a
>> > user?
>>
>> Yes. The last command:
>>
>> $ last -1 root
>> root console Wed Nov 16 12:25 - 12:40 (00:15)
>> $
>>
>>
>> --chris
>
> But only if you haven't recycled wtmp, which grows with every
> login/logout.
>
And if you cycle wtmp you can use /usr/sbin/acct/runacct just before, to
make a /var/adm/acct/sum/loginlog file, which has the last login date
of every local user. You need to have proces-accounting installed for this
to work
HTH, Erik
|
|
0
|
|
|
|
Reply
|
news
|
11/27/2005 6:00:00 PM
|
|
|
3 Replies
918 Views
(page loaded in 0.062 seconds)
Similiar Articles: login time - comp.unix.solarisIs there any command I can run to give me the last login date/time of a user? Thanks, Dave ... User Login Time - comp.sys.sun.adminHello, I'm using the Sun ONE Directory Server 5.2. Is there any plugin, which stores the last logon time of the user? I would like to check every we... ntpd log file displays error - comp.protocols.time.ntp/var/log/ntpd.log contains many lines... 5 Mar 21:28:40 ntpd[28893]: can't open /var/lib/ntp.drift.TEMP: Permission denied Actually, from the time s... How to calculate "elapsed time" and "functions execution time" in ...Hi, How can I calculate "elapsed time" since the start of my script as well as "execution time" of each command. I need to use this in writing log file. Slow response times for telnet - comp.unix.solarisWhen I telnet to my system running Solaris 10, I get very slow initial response times, and instead of the "login" prompt, the first prompt I see is ... /usr/sbin/quota causes login delay - comp.unix.solarislogin time - comp.unix.solaris /usr/sbin/quota causes login delay - comp.unix.solaris Garmin 18lvc working (finally!) - comp.protocols.time.ntp ... /usr/sbin/quota causes ... Net::SSH::Expect SSHAuthenticationError Login timed out. - comp ...password no echo in bash script - comp.unix.shell... when the user types it in. Identical to when you login ... Users on Solaris 10 - comp.unix.solaris Maybe next time ... login fail block IP - comp.sys.sun.adminOperation not permitted when trying to contact time server - comp ... login fail block IP - comp.sys.sun.admin Operation not permitted when trying to contact time server ... Howto synchronize a ntp client (Linux) with a server running ...My ntp.conf looks like: server ntp1.belbone.be Each time the service starts, I get the following error in the windows application log: sendto(195.13.23.5): Une op ... the last login of a user to the database - comp.databases.oracle ...Unable to login as oracle user - comp.unix.shell the last login of a user to the database - comp.databases.oracle ... Oracle: last login time of user - database.itags.org ... How to display last login time? | drupal.orgHi All, Just wondering if there was any module/snippet that I can use to display the last login time of a user. I looked at the tracker module, but I can't see that ... TIME - Login ***A2E***Password: I acknowledge I have read the below Security Warning and choose to log into the eTIME System. I am logging in from a ... 7/21/2012 4:02:24 AM
|
|
|
|
|
|
|
|
|