- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Log telnet session username
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
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
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
тАО05-16-2004 11:54 PM
тАО05-16-2004 11:54 PM
Log telnet session username
Inted -l logs only the hostname in the syslog but not the username, like:
May 17 13:50:28 aaenwh2 inetd[29548]: telnet/tcp: Connection from unknown (10.117.243.242) at Mon May 17 13:50:28 2004
As I see telnetd don't offer a logging capability in HPUX 11.X.
How to do then?
Thanks in advance...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 12:08 AM
тАО05-17-2004 12:08 AM
Re: Log telnet session username
By adding some code in /etc/profile. Detect wether the session is telnet (the father of your shell process should be a telnetd). In that case, use logger to log aline in syslog.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2004 12:22 AM
тАО05-17-2004 12:22 AM
Re: Log telnet session username
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 12:57 AM
тАО05-18-2004 12:57 AM
Re: Log telnet session username
A user that logs in via telnet has a TTY of pts/t** as viewed in ps -ef, who -a, or last output.
Hope that helps a little,
-> Brian Hackley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 01:05 AM
тАО05-18-2004 01:05 AM
Re: Log telnet session username
See if
# who -R
Helps in any way.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 05:47 AM
тАО05-18-2004 05:47 AM
Re: Log telnet session username
last -R | head -1
Best regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 06:04 AM
тАО05-18-2004 06:04 AM
Re: Log telnet session username
# Set up logging
HISTFILE=${HOME}/.sh_history_`who am i|awk '{ print $1}'`
export HISTFILE
date >>$HISTFILE
HISTSIZE=500
export HISTSIZE
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 06:30 AM
тАО05-18-2004 06:30 AM
Re: Log telnet session username
To find out who is accessing the system remotely (ftp, telnet, secure shell), I simply do:
# last -R |grep -v console
Very simple, hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 06:47 AM
тАО05-18-2004 06:47 AM
Re: Log telnet session username
Like you want to allow ftp to all, the
/etc/hosts.allow will ike follows
ftp:ALL
Then whoever does ftp gets logged in syslog.log with username
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2004 05:55 PM
тАО05-18-2004 05:55 PM
Re: Log telnet session username
who -mR|awk '{if(match($2, "pts\/t")) print}'>>/tmp/telnet.log
Thanks for the help...