HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Listing Deactivated users on a trusted system
Operating System - HP-UX
1836357
Members
2143
Online
110100
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
Forums
Discussions
Discussions
Discussions
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
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
02-12-2004 12:39 PM
02-12-2004 12:39 PM
Listing Deactivated users on a trusted system
Hi.
Just a couple of quick questions.
1. Is there a way I can list only deactivated users?
2. Is it possible to tell how long a before a user-id will be automatically deactivated (due to inactivity)?
Thanks greatly.
Regards. Ang.
Just a couple of quick questions.
1. Is there a way I can list only deactivated users?
2. Is it possible to tell how long a before a user-id will be automatically deactivated (due to inactivity)?
Thanks greatly.
Regards. Ang.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 02:40 PM
02-12-2004 02:40 PM
Re: Listing Deactivated users on a trusted system
Yes you could,
1. You can list the deactivated users by writing a script that gets the info of all users and compares if its deactivated or not and if yes buts those users in other file. use /usr/lbin/getprpw to get the information and look at "lockout" value.
2. You can get the exact date when a users password will expire. This is calculated from the last password change and the expiry time set (say 60 days). This can be easily done in C.
Let me know if you need help in writing both the scripts.
1. You can list the deactivated users by writing a script that gets the info of all users and compares if its deactivated or not and if yes buts those users in other file. use /usr/lbin/getprpw
2. You can get the exact date when a users password will expire. This is calculated from the last password change and the expiry time set (say 60 days). This can be easily done in C.
Let me know if you need help in writing both the scripts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 06:40 PM
02-12-2004 06:40 PM
Re: Listing Deactivated users on a trusted system
You can get both infos you want usinh the command
/usr/lbin/getprpw
Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2004 06:48 PM
02-12-2004 06:48 PM
Re: Listing Deactivated users on a trusted system
Hi Ang..
My answers
1. #who -T
2. You can do it to add the next line in /etc/profile.
In case of Ksh or sh
TMOUT=60; export TMOUT
(The unit of 60 is a second unit)
In case of csh
set autologout=1
(The unit of 1 is a minute unit)
Good day^^
From Korea
My answers
1. #who -T
2. You can do it to add the next line in /etc/profile.
In case of Ksh or sh
TMOUT=60; export TMOUT
(The unit of 60 is a second unit)
In case of csh
set autologout=1
(The unit of 1 is a minute unit)
Good day^^
From Korea
I think I am a specialist in IT Korea^^. I am a programmer and SE and DBA
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP