- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to log telnet activity. (User used, maybe even...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 05:31 AM
06-03-2003 05:31 AM
I was wondering if you can tell me how I can log telnet connections comming in to my box. For example, if user1 connects, I'd like to know that user1 connected and not just that there was a telnet connection (in syslog.log).
All help is much appreciated!
B.T.W I'm using hp-ux 11.11 (not that it should matter).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 05:38 AM
06-03-2003 05:38 AM
Solutionthere are many other threads with this issue.
If you search with telnet and login you will find many more advice.
In a short:
- use "last" and "last -b" command to see last login attempts
- look in syslog.log for connections
- if you need deep tracking, there is a free software from HP, that is IDS (Intrusion detection system), you can find it in the application CD.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 05:40 AM
06-03-2003 05:40 AM
Re: How to log telnet activity. (User used, maybe even commands.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 05:42 AM
06-03-2003 05:42 AM
Re: How to log telnet activity. (User used, maybe even commands.)
Actually, if you log logins in '/var/adm/wtmp' you can track this.
If '/var/adm/wtmp' isn't present, touch it to create it. Set the permissions to 644 owned by root. When present, to analyze, use:
# last -R
...or:
# last -R username
See the 'last' man pages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 05:44 AM
06-03-2003 05:44 AM
Re: How to log telnet activity. (User used, maybe even commands.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 06:00 AM
06-03-2003 06:00 AM
Re: How to log telnet activity. (User used, maybe even commands.)
/etc/rc.config.d/acct
and then run
/sbin/init.d/acct start
This will enable a wealth of accounting statistics, including connect time, command usage and disk usage.
man 1m acct for more details. The commands are lcoated in /usr/sbin/acct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 06:41 AM
06-03-2003 06:41 AM
Re: How to log telnet activity. (User used, maybe even commands.)
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 04:15 PM
06-03-2003 04:15 PM
Re: How to log telnet activity. (User used, maybe even commands.)
1> You can either use "last" or "lastb" commands to find the login attempts.
2> In the /etc/inetd.conf file you can put entry of telnetd with loggin option. On my Solaris box a typical entry looks like
telnet stream tcp nowait root /usr/sbin/in.telnetd in.telnetd -l
Similar one for HP-UX should work.
3> For the commands history of users' you need to have the HISTORY variable in their environment, so that the .sh_history file in their home directory would give you the command history.
4> You may wish to configure the command "script" in the .profile of every user to log all the activity of the user in files with date-time stamp as their name. But this will consume a lot of disk space.
5> Symark's powerbroker could be a good choice if you really wish to log all the activities by the user at a secure and centralized location.
Hope this helps'
Regards'
Suhas.