- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Login Reporting and Log Files Maintenance
Operating System - HP-UX
1821630
Members
3141
Online
109633
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-08-2008 05:16 AM
тАО12-08-2008 05:16 AM
Login Reporting and Log Files Maintenance
Hi everyone,
I am curious as to how everyone handles login monitoring and corresponding system logs. By this I mean...
- has anyone developed a script that reports last login information such that you can easily and readily read any accounts that have been inactive for 30 days, 60 days, etc.
- a script for wtmp, btmp, etc file maintenance and cleanup. do you use the tools in /usr/sbin/acct and if so what is optimal for archiving and CYA (cover your a$$) purposes?
- password aging. do you have a script to notify users that their passwords are going to expire and have a script help them with the process, or do you just use the standard?
Thank you all for your input in advance!!! You know how much I love your innovatative suggestions and script writing!!!
I am curious as to how everyone handles login monitoring and corresponding system logs. By this I mean...
- has anyone developed a script that reports last login information such that you can easily and readily read any accounts that have been inactive for 30 days, 60 days, etc.
- a script for wtmp, btmp, etc file maintenance and cleanup. do you use the tools in /usr/sbin/acct and if so what is optimal for archiving and CYA (cover your a$$) purposes?
- password aging. do you have a script to notify users that their passwords are going to expire and have a script help them with the process, or do you just use the standard?
Thank you all for your input in advance!!! You know how much I love your innovatative suggestions and script writing!!!
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2008 05:39 AM
тАО12-08-2008 05:39 AM
Re: Login Reporting and Log Files Maintenance
> a script that reports last login information...
You can touch a file in the user's home directory as part of the /etc/profile (/etc/login) script or put in that file the output of the date command. Then refer to that file later on when you do your user accounting.
> wtmp, btmp, etc file maintenance...
They can be rolled over every so often
> archiving and CYA...
You should have your management or the business dept that you cater to provide requirements for these and act accordingly. there is usually a cost/effort associated with every requirement.
> password aging...
Same as CYA. This should go under IT/business policy and set up accordingly
> a script to notify users
This can be easily implemented based on the pw-aging policy you use. Again, does the business require it?
You can touch a file in the user's home directory as part of the /etc/profile (/etc/login) script or put in that file the output of the date command. Then refer to that file later on when you do your user accounting.
> wtmp, btmp, etc file maintenance...
They can be rolled over every so often
> archiving and CYA...
You should have your management or the business dept that you cater to provide requirements for these and act accordingly. there is usually a cost/effort associated with every requirement.
> password aging...
Same as CYA. This should go under IT/business policy and set up accordingly
> a script to notify users
This can be easily implemented based on the pw-aging policy you use. Again, does the business require it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2008 06:28 AM
тАО12-08-2008 06:28 AM
Re: Login Reporting and Log Files Maintenance
Hi TTr,
I guess I should have put that info in there. I'm not looking for anything to change as far as company policy would mandate. Just looking for tools to help make things easier for administrators and users.
I know that if wtmp gets too large it can have problems. A lot of companies will archive old entries to prevent this and to keep it tidy. Just looking for "best" solutions for handling.
Password aging is already in place in accordance to company policy. Just looking for inventive ways to make it easier on users to go through the password change process. No changes in policy.
Thanks.
> a script that reports last login information...
You can touch a file in the user's home directory as part of the /etc/profile (/etc/login) script or put in that file the output of the date command. Then refer to that file later on when you do your user accounting.
> wtmp, btmp, etc file maintenance...
They can be rolled over every so often
> archiving and CYA...
You should have your management or the business dept that you cater to provide requirements for these and act accordingly. there is usually a cost/effort associated with every requirement.
> password aging...
Same as CYA. This should go under IT/business policy and set up accordingly
> a script to notify users
This can be easily implemented based on the pw-aging policy you use. Again, does the business require it?
I guess I should have put that info in there. I'm not looking for anything to change as far as company policy would mandate. Just looking for tools to help make things easier for administrators and users.
I know that if wtmp gets too large it can have problems. A lot of companies will archive old entries to prevent this and to keep it tidy. Just looking for "best" solutions for handling.
Password aging is already in place in accordance to company policy. Just looking for inventive ways to make it easier on users to go through the password change process. No changes in policy.
Thanks.
> a script that reports last login information...
You can touch a file in the user's home directory as part of the /etc/profile (/etc/login) script or put in that file the output of the date command. Then refer to that file later on when you do your user accounting.
> wtmp, btmp, etc file maintenance...
They can be rolled over every so often
> archiving and CYA...
You should have your management or the business dept that you cater to provide requirements for these and act accordingly. there is usually a cost/effort associated with every requirement.
> password aging...
Same as CYA. This should go under IT/business policy and set up accordingly
> a script to notify users
This can be easily implemented based on the pw-aging policy you use. Again, does the business require it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2008 07:45 AM
тАО12-08-2008 07:45 AM
Re: Login Reporting and Log Files Maintenance
Hi,
To create any null for any file just give
> filename
Suraj
To create any null for any file just give
> filename
Suraj
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP