- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Listing inactive users
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
10-02-2006 08:45 PM
10-02-2006 08:45 PM
Listing inactive users
Is there any way to get the list of dormant users who have never logged into the system for a certain period of time (eg: 30 days.
I know that we can get this information using last command. However, my wtmp file got truncated and hence I am unable to use this command. Is there any alternate way in hp-ux?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2006 08:57 PM
10-02-2006 08:57 PM
Re: Listing inactive users
option 1) retain wtmp records for at least 30 days
option 2) put something in system wide profile that would create a record somewhere each time an interactive shell is started for a user, then you could use it for your checks (basically a very primitive paralel wtmp log)
and surely there are other ways
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2006 09:01 PM
10-02-2006 09:01 PM
Re: Listing inactive users
Thanks for the reply. However, I am trying to see some native option available for getting the information at present. I can not use my wtmp file as it is refreshed one.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2006 09:18 PM
10-02-2006 09:18 PM
Re: Listing inactive users
ls -lt /home/*/.sh_history
Yang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2006 09:20 PM
10-02-2006 09:20 PM
Re: Listing inactive users
if your system is trusted, can't you use getprpw to get last login details.
Or use 'find' to check on the time of the users .profile file in their home directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2006 09:31 PM
10-04-2006 09:31 PM
Re: Listing inactive users
could you please update this thread with your latest status.
Were any of the answers useful?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2006 06:54 PM
10-09-2006 06:54 PM
Re: Listing inactive users
Since there is no direct way for systems that are not trusted, I will have to go with suggestion given to check timestamp of .sh_history.
Thanks