Display Last Login message for users
I've installed Redhat 9 and I found that only root has the last login message like "Last login: <when> from <where>" but not the users.
How can I enable this for all the users?
Must be a setting in /etc/login.defs.
Check man login.defs, especially this part:
Thanks very much!!
I've put that in login.defs after your kind instructions, but it is still not effective yet. What should I do next?
Ar.... I forgot to tell u one thing. I'm now trying to let the users to login via SSH. I found that only root has the Last login message but not the other users.
However, when I use the normal telnet, the message is there whoever logs in.
It seems that the login.defs isn't the one to control the appearance of that message in my system. Is it the special feature RH9? Then where can I control the login behaviour?
Thanks very much again!
If telnet shows the information and ssh does not, then login.defs is ok. You probably need to look at the ssh config files.
Change this entry in /etc/ssh/sshd_config:
That should do the trick for ssh.
|All times are GMT -5. The time now is 01:03 AM.|