Re: can't get lastlogin info wen loging in trough ssh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Laurent CARON wrote:
| Matías López Bergero wrote:
|
|> -----BEGIN PGP SIGNED MESSAGE-----
|> Hash: SHA1
|>
|> Hi,
|> I can't get lastlogin info wen login in trough ssh no mater where I
|> login from.
|> I have enabled the PrintLastLog option in sshd_config, but the lastlogin
|> date doesn't appears. It does appears wen I login from the box itself,
|> but not via ssh.
|>
|> Any ideas on how can I get this to work?
|> I have a RedHat 8, Linux 2.4.27, OpenSSH_3.4p1.
|>
| Hello,
|
| have a look in /etc/pam.d/ssh
|
| Laurent
|

Hello,
Thanks for the answer Laurent,

I am not very sure of what to look for.. or add.
Everything looks ok there. I compare it to another system that displays
the lastlogin date on the ssh login process.

This is how the sshd file in pam.d look like:

#%PAM-1.0
auth       required     /lib/security/pam_stack.so service=system-auth
auth       required     /lib/security/pam_nologin.so
account    required     /lib/security/pam_stack.so service=system-auth
password   required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_limits.so
session    optional     /lib/security/pam_console.so

Suggestions?

Best Regards,
Matías.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBNNiMRB0HKLRQp/gRAuBeAKCm9ErBPNGpg/kkIp6G9mKGEQJJQACgx23K
VjWabl3yPWFINU/th1xO0/k=
=m+YN
-----END PGP SIGNATURE-----

-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux