I would suggest, for this special case, merely: mv /etc/pam.d/login.pacnew /etc/pam.d/login (Performed as root)
It is working. Thanks a lot.
]]>We ship login(1) from util-linux now, which provides its own lastlog feature. The OP hasn't looked at their /etc/pam.d/login.pacnew. Their current /etc/pam.d/login still contains a reference to PAM's lastlog module.
Yes, you are right, there is login.pacnew. (I have not read a lot about pacman so far. So much new stuff for me...)
Advisable to simply replace the login configured with the pacnew as it takes advantage of pambase
Just because I am a newbie and still don't have this now I really know what to do feeling.
I should copy all these lines from pam.d/login.pacnew to pam.d/login?
auth required pam_securetty.so
auth requisite pam_nologin.so
auth include system-local-login
account include system-local-login
session include system-local-login
And in pam.d/login I am supposed to delete which lines then?
Just
session optional pam_lastlog.so
Or do more need to be deleted? And is the order important?
]]>I am very new to Arch so my question is maybe rubbish. But I googled a lot and could not find an answer...
When I log in I keep getting two lines giving information about the last login. The second giving the time of the current login...
nb login: root
Password:
Last login: Fri Jul 6 18:10:03 CEST 2012 on tty1
Last login: Fri Jul 6 19:10:50 on tty1
1. Having .hushlogin I still get the first one.
2. Using "# session optional pam_lastlog.so" in /etc/pam.d/login I get the one with the current time.
3. Just having 1. and 2. I get nothing.
Is that normal behaviour?
]]>