- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- user log in report script ..
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
Forums
Discussions
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
02-20-2002 11:00 AM
02-20-2002 11:00 AM
user log in report script ..
Hope everyone is having a great Hump Day ..
I have been asked to generate a user log in report. My boss wants to know who and when people have been loggging into our server so we can look for activity that is just not right. We mainly want ftp and telnet.Does anyone have any suggestion as to what extra logging I need to turn on or what logs I need to go though to get this?
Thanks
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 11:03 AM
02-20-2002 11:03 AM
Re: user log in report script ..
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 11:12 AM
02-20-2002 11:12 AM
Re: user log in report script ..
You can also use lastb to see bad logins.
I was asked to do something similar to what you are asking about. In my case, I needed to log the IP address that each user logging in was coming from. What I did was the following:
1. Edit the /etc/profile file, as it is run whenever someone logs on.
2. Added code to gather this data and log to a file:
who -m | read -r VAR1 VAR2 VAR3
who -a | grep $VAR2 >> /var/adm/ttmp
Hope this helps!
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 12:06 PM
02-20-2002 12:06 PM
Re: user log in report script ..
man acctsh for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 01:11 PM
02-20-2002 01:11 PM
Re: user log in report script ..
#inetd -l
It will give you the IP address and the Machine Name (If the IP Add is resolved through DNS, otherwise it will give unknown)from where the user had logged in. You will get the PID No. also.
Hope this will solve your Problem.
Sorry I have not mentioned the file where you will get the output. It is /var/adm/syslog/syslog.log
Sandip