>in my redhat 6.1
>last does not show telnet records anymore
>maybe it is due to deletion of /var/log/wtmpx
>I delete /var/log/wtmpx few weeks ago
>and touch this file then
>how can i re-enable the logs of telnet sessions?
You should never delete log files. Instead you should cp /dev/null to
them. But why would you delete this file anyway? The 4 AM daily cron
should clean things up if the files get too big. You can delete the
backup logs that are followed by a number.
I don't have a wtmpx, but I do have wtmp and backup files like wtmp.1. As
chgrp utmp wtmp (get the 'u' and 'w' right)
Then ls -l should show wtmp with owner 'root' group 'utmp'
Then you may want to reboot your system because I am not sure what would
need to be restarted for it to work. Note: I have RH 6.1 (Cartman).