Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is mentioned in my /etc/inetd.conf file, but I know nothing about it. Sounds like its your boy though.
telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
#
# Use this one instead if you want to snoop on telnet users (try to use this
# for ethical purposes, ok folks?), and see 'man ttysnoop' and /etc/snooptab
# for further instructions:
# telnet stream tcp nowait root /usr/sbin/tcpd in.telnetsnoopd
This all seems to assume a couple of things that seem kinda impractical, IMHO:
--- You are on the machine when the person telnets into it.
--- You are aware that there's anyone on the machine at a given time.
I'm sure there's a way to put a shell wrapper or alias using the 'tee' command or something that will allow you to pass the whole session to a log. The additional info above would also be a big help in doing this.
Somebody slicker than myself may have a bit more thorough expansion on how to do this. If so, please send me a link!!!
Originally posted by #! This all seems to assume a couple of things that seem kinda impractical, IMHO:
--- You are on the machine when the person telnets into it.
--- You are aware that there's anyone on the machine at a given time.
I'm sure there's a way to put a shell wrapper or alias using the 'tee' command or something that will allow you to pass the whole session to a log. The additional info above would also be a big help in doing this.
Somebody slicker than myself may have a bit more thorough expansion on how to do this. If so, please send me a link!!!
True, but the request was to be able to see what the user sees, not what the user has been doing... If this were the case I imagine you would be better off getting the programs that are run during the telnet session to do the logging, rather than trying to capture all output/input...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.