Professional Web Applications Themes

How can I log every login via telnet? - FreeBSD

Is there a way to log every login via telnet? -- Anthony...

  1. #1

    Default How can I log every login via telnet?

    Is there a way to log every login via telnet?

    --
    Anthony


    Anthony Guest

  2. #2

    Default Re: How can I log every login via telnet?

    >>>>> On Thu, 7 Apr 2005 20:42:25 +0200, [/ref][/ref]
     

    Check /var/log/auth.log. They should be logged there by default. You
    could also use tcpwrappers for better control over access and
    logging. See /etc/hosts.allow and "man 5 hosts_options".

    Sandy
    Sandy Guest

  3. #3

    Default Re: How can I log every login via telnet?

    On Thu, 7 Apr 2005, Anthony Atkielski wrote:
     

    Anthony,
    have a look at /etc/syslog.conf In addition, see the man page
    also. It's pretty to the point.


    Best regards,
    Chris

    It is better for civilization to be going down the drain,
    than to be coming up it.
    Chris Guest

  4. #4

    Default Re: How can I log every login via telnet?

    On Thu, 7 Apr 2005, Chris wrote:
     
    >
    > Anthony,
    > have a look at /etc/syslog.conf In addition, see the man page also.
    > It's pretty to the point.[/ref]

    Actually, man 8 syslogd

    Best regards,
    Chris

    It is better for civilization to be going down the drain,
    than to be coming up it.
    Chris Guest

  5. #5

    Default Re: How can I log every login via telnet?


    On Thu, 7 Apr 2005, Anthony Atkielski wrote: 

    The system already records all logins in /var/log/auth.log.
    You could pull out the telnet entries with grep if those are the only ones
    you're interested in.
    If you're wanting to build your own log then I don't know.
    LukeD@pobox.com Guest

  6. #6

    Default Re: How can I log every login via telnet?

    On Thu, 7 Apr 2005 com wrote:
     
    >
    > The system already records all logins in /var/log/auth.log.
    > You could pull out the telnet entries with grep if those are the only ones
    > you're interested in.
    > If you're wanting to build your own log then I don't know.[/ref]

    something like this in /etc/syslog.conf

    !telnetd
    *.* /var/log/telnet.log

    Best regards,
    Chris

    Some come to the fountain of knowledge to drink,
    some prefer to just gargle.
    Chris Guest

  7. #7

    Default Re: How can I log every login via telnet?

    Chris wrote: 
    >>
    >>
    >> The system already records all logins in /var/log/auth.log.
    >> You could pull out the telnet entries with grep if those are the only
    >> ones you're interested in.
    >> If you're wanting to build your own log then I don't know.[/ref]
    >
    >
    > something like this in /etc/syslog.conf
    >
    > !telnetd
    > *.* /var/log/telnet.log
    >
    > Best regards,
    > Chris
    >
    > Some come to the fountain of knowledge to drink,
    > some prefer to just gargle.
    > _______________________________________________
    > org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > To unsubscribe, send any mail to
    > "org"
    >[/ref]

    Could I do something similar for logging scponly? I have scponly
    installed and would like to log everyones logins and all files that get
    transferred. I cannot fins any features in the program itself to do the
    logging so I think that syslog is the choice.

    Is that all there is to implementing syslog logging or do i need to make
    sure that scponly spits out info that can be logged?

    -Bob
    Bob Guest

  8. #8

    Default Re: How can I log every login via telnet?

    Sandy Rutherford writes:
     

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

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

    Also, securing the traffic over the telnet session is unimportant
    (including passwords), because none of the telnet use would involve
    anything confidential. I mainly want to ensure that only a select
    handful of users can actually log in through telnet, and that those uses
    cannot escape to a shell by any means or otherwise stray outside the
    program that I want to run immediately upon login. I've tweaked my test
    program to eliminate possible buffer overflows on input and it has no
    facility for escaping to a shell, and it does virtually no file I/O and
    only to hard-coded paths, so hopefully it's not too much of a risk.

    --
    Anthony


    Anthony Guest

  9. #9

    Default Re: How can I log every login via telnet?

    Anthony,

    On Fri, 8 Apr 2005 you wrote:
     [/ref]
     
     [/ref]
     

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

    Sandy
    Sandy Guest

  10. Moderated Post

    Default Re: How can I log every login via telnet?

    Removed by Administrator
    Anthony Guest
    Moderated Post

  11. Moderated Post

    Default Re: How can I log every login via telnet?

    Removed by Administrator
    Chris Guest
    Moderated Post

Similar Threads

  1. Net::Telnet login problem
    By Ramprasad in forum PERL Beginners
    Replies: 2
    Last Post: June 11th, 03:48 PM
  2. Replies: 1
    Last Post: July 29th, 03:16 AM
  3. Telnet - no prompt after login
    By ch3ris in forum Linux / Unix Administration
    Replies: 1
    Last Post: July 25th, 04:42 PM
  4. Odd ENV variables passed from telnet to login.
    By Chad Johnson in forum Sun Solaris
    Replies: 2
    Last Post: July 11th, 01:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139