How can I log every login via telnet?

Sandy Rutherford sandy at krvarr.bc.ca
Sat Apr 9 21:01:31 PDT 2005


Anthony,

On Fri, 8 Apr 2005 you wrote:

 > Sandy Rutherford writes:
 >> Check /var/log/auth.log.  They should be logged there by default.

 > Thanks, that's just what I was looking for.

 >> You could also use tcpwrappers for better control over access and
 >> logging.  See /etc/hosts.allow and "man 5 hosts_options".

 > I'd be mainly interested in restricting which user names can log on from
 > the Net through telnet, rather than which IP addresses.

See login.access(5) and login.conf(5).  Both provide this
functionality.

Sandy


More information about the freebsd-questions mailing list