Re: [arch-general] Login Statistics Similar to Centos

2017-09-01 Thread Leonid Isaev via arch-general
On Fri, Sep 01, 2017 at 08:38:24PM +0200, William Gathoye wrote: > > > On 09/01/2017 08:26 PM, brent s. wrote: > > > You don't execute pam_lastlog.so directly. > > > As shown, pam is calling the pam_lastlog.so object (which is why you > > can't execute it; it's not an executable, it's a Shared

Re: [arch-general] Login Statistics Similar to Centos

2017-09-01 Thread brent s.
On 09/01/2017 02:38 PM, William Gathoye wrote: > I already did knew about this PrintLastLog feature but I wasn't aware > this was PAM responsible of that (I thought this was sshd looking in > wtmp or lastlog manually). > > Btw, do you know how to achieve the same behavior but on TTY or in GUI >

Re: [arch-general] Login Statistics Similar to Centos

2017-09-01 Thread Ralf Mardorf
On Fri, 1 Sep 2017 14:26:24 -0400, brent s. wrote: >it's not an executable Good point! I was half asleep when I replied. Anyway, the advice how to build with debug symbols could be useful for the future ;).

Re: [arch-general] Login Statistics Similar to Centos

2017-09-01 Thread William Gathoye
On 09/01/2017 08:26 PM, brent s. wrote: > You don't execute pam_lastlog.so directly. > As shown, pam is calling the pam_lastlog.so object (which is why you > can't execute it; it's not an executable, it's a Shared Object). Ok. Actually, I saw this was a shared object, and I wondered this is

Re: [arch-general] Login Statistics Similar to Centos

2017-09-01 Thread Ralf Mardorf
On Fri, 1 Sep 2017 20:11:29 +0200, William Gathoye wrote: >I cannot debug further since it hasn't been build with gdb debug >symbols Hi, you need to build it and probably, not necessarily, one or the other dependency yourself: [rocketmouse@archlinux tmp]$ pacman -Qo

Re: [arch-general] Login Statistics Similar to Centos

2017-09-01 Thread brent s.
On 09/01/2017 02:11 PM, William Gathoye wrote: > > > On 08/30/2017 12:19 AM, Leonid Isaev via arch-general wrote: >> >> man 8 pam_lastlog > For your kind info, calling pam_lastlog.so like described in the man > pages is segfaulting on my side. > > $ /usr/lib/security/pam_lastlog.so >

Re: [arch-general] Login Statistics Similar to Centos

2017-09-01 Thread William Gathoye
On 08/30/2017 12:19 AM, Leonid Isaev via arch-general wrote: > > man 8 pam_lastlog For your kind info, calling pam_lastlog.so like described in the man pages is segfaulting on my side. $ /usr/lib/security/pam_lastlog.so Segmentation fault (core dumped) I cannot debug further since it hasn't