- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disable Inactive User Account.
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
07-25-2001 10:11 AM
07-25-2001 10:11 AM
Disable Inactive User Account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 10:42 AM
07-25-2001 10:42 AM
Re: Disable Inactive User Account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 10:43 AM
07-25-2001 10:43 AM
Re: Disable Inactive User Account.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 10:48 AM
07-25-2001 10:48 AM
Re: Disable Inactive User Account.
One approach would be to scan the passwd file (or passwd map) and for all uid's > 100 determine if the user's .sh_history file has not been modified in the last 60 days. If so, change the encryted passwd field to '*'.
If you have csh users you would need to set savehist and then examine the .history file but the concept is the same.
Hope this gets you started, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 10:59 AM
07-25-2001 10:59 AM
Re: Disable Inactive User Account.
One thought that comes to mind is to leverage /var/adm/wtmp [login database]. This would assume that you do not null the file simply because it grows large, but rather manage it with 'fwtmp'. See the man pages for 'last' and for 'fwtmp (1M)'.
Thus, using the last login data on a per-user basis, you could create a script that would replace a user's password with an asterisk ("*") and thereby inactivate it.
Obviously, your process would need some verification steps to insure that the absence of login activity was "real" during the period in question and not due to inadvertant file trimming.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 11:12 AM
07-25-2001 11:12 AM
Re: Disable Inactive User Account.
.sh_history will work if the users are telnet or terminal, but it won't catch the users using things like ftp; last will.