Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
`last` log always containing every login twice (pts/%d, ssh)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
kokyu
n00b
n00b


Joined: 22 Dec 2011
Posts: 13

PostPosted: Wed Jan 11, 2012 3:15 pm    Post subject: `last` log always containing every login twice (pts/%d, ssh) Reply with quote

Hey all,

I cannot remember since when I am having this, I also checked the configs in /etc/pam.d/ to hopefully find
what might have been causing this, but wasn't succeeding yet.

I am having a `last` output like this:

Code:
# last
kokyu   pts/5        192.168.2.21     Wed Jan 11 14:58   still logged in   
kokyu   ssh          192.168.2.21     Wed Jan 11 14:58 - 15:08  (00:10)   
kokyu   pts/0        192.168.2.21     Wed Jan 11 11:42    gone - no logout
kokyu   ssh          192.168.2.21     Wed Jan 11 11:42 - 14:58  (03:15)   
kokyu   pts/0        192.168.2.21     Fri Jan  6 14:43 - 14:46  (00:03)   
kokyu   ssh          192.168.2.21     Fri Jan  6 14:43 - 14:46  (00:03)   
kokyu   pts/0        192.168.2.21     Thu Jan  5 11:59 - 12:22  (00:23)   
kokyu   ssh          192.168.2.21     Thu Jan  5 11:59 - 12:22  (00:23)   
[...]


Does anyone know why ssh is making its way into here, or, pts/N, and whether (and how) it is
wise / possible to reduce this to a single line (/event) per login?

Many thanks,
Kokyu.
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3200

PostPosted: Wed Jan 11, 2012 3:54 pm    Post subject: Reply with quote

Does this solve your issue? http://forums.gentoo.org/viewtopic-p-5306165.html#5306165
Back to top
View user's profile Send private message
kokyu
n00b
n00b


Joined: 22 Dec 2011
Posts: 13

PostPosted: Wed Jan 11, 2012 5:09 pm    Post subject: Reply with quote

mikegpitt wrote:
Does this solve your issue? http://forums.gentoo.org/viewtopic-p-5306165.html#5306165


yay, yes, commenting out the
Code:
#session                optional        pam_lastlog.so

in the /etc/pam.d/system-login now solved the issue of having all login sessions DUPed in the lastlog. :)

Many thanks,
Kokyu.
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Thu Jan 12, 2012 7:37 pm    Post subject: Reply with quote

Moved from Other Things Gentoo to Duplicate Threads, please see the post mentioned by mikegpitt.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum