- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- monitoring user login in period of days
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
12-23-2001 04:19 AM
12-23-2001 04:19 AM
I think a lot of my user in the unix os not login from long time before;I want to see the user who loged in from specific dat;which file contains these logs information?and how i can edit it if it is text or how to convert it to a text file?is there any unix comand to sort the result by date?
I hope to recieve reply fast
ahmed
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2001 05:29 AM
12-23-2001 05:29 AM
Re: monitoring user login in period of days
here an interesting Thread about command "last -R" which by default sort output by date:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf35d039599eed5118ff40090279cd0f9,00.html
g'd luck.
T++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2001 06:23 AM
12-23-2001 06:23 AM
Re: monitoring user login in period of days
last displays when users logged in by date
lastb displays the last failed login for users
Both commands accept a loginid as an argument. See the man pages.
The who command can also be used against /var/adm/wtmp. I like who -a /var/adm/wtmp. Again, see the man page.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2001 10:37 PM
12-23-2001 10:37 PM
Re: monitoring user login in period of days
I tried using last or who /var/adm/wtmp commands but both commands givig me only todays date so i am not aple to trace user from old date ;i tried using fwtmp command but it is still running from two houres ago ;so is there any way to spicify old dat?
ahmed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2001 06:09 AM
12-24-2001 06:09 AM
SolutionIt appears your wtmp file has been truncated because you only see entries for "todays date". Do you have a cron job truncating wtmp?
If wtmp has been truncated then you will not be able to get the login info using last or who /var/adm/wtmp.
Concerning the long running fwtmp command: it reads from standard input so you would run it like:
/usr/sbin/acct/fwtmp < /var/adm/wtmp
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2001 06:48 AM
12-24-2001 06:48 AM
Re: monitoring user login in period of days
Take a look at this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1cd9f715edc6d5118ff10090279cd0f9,00.html
live free or die
harry