HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- which accounts are disabled?
Operating System - HP-UX
1834621
Members
2432
Online
110069
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
Go to solution
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
01-08-2003 08:47 AM
01-08-2003 08:47 AM
How can I tell which accounts are disabled on a trusted system?
thanks
Carol Livingston
thanks
Carol Livingston
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 09:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 09:25 AM
01-08-2003 09:25 AM
Re: which accounts are disabled?
Hi Carol,
This is not a very clean way, especially if you have lots of users, but you could do something like:
# for i in $(cat /etc/passwd|awk -F: '{print $1}')
> do
> echo "$i: \c"
> getprpw -m lockout $i
> done
For each user this will print out a bit field like:
james: lockout=0000000
oracle: lockout=0000001
All fields being 0 means the account is still active, the position of the 1 tells you why it was deactivated. See "man getprpw" for a list of the field values.
I'm sure you would use auditing or accounting to do this normally, try this link to find out more:
http://www.docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
Regards,
James.
This is not a very clean way, especially if you have lots of users, but you could do something like:
# for i in $(cat /etc/passwd|awk -F: '{print $1}')
> do
> echo "$i: \c"
> getprpw -m lockout $i
> done
For each user this will print out a bit field like:
james: lockout=0000000
oracle: lockout=0000001
All fields being 0 means the account is still active, the position of the 1 tells you why it was deactivated. See "man getprpw" for a list of the field values.
I'm sure you would use auditing or accounting to do this normally, try this link to find out more:
http://www.docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
Regards,
James.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2003 09:31 AM
01-08-2003 09:31 AM
Re: which accounts are disabled?
In ITO there is something called list of suspended users (The actual executable is 'listsusp') You can configure your ITO template to send you an e-mail of list of disabled users.
Infact the script gets info from getprpw command.
Try /usr/lbin/getprpw -l username and look for lockout bit. If lockout value is other than zero then account is disabled. Man page for getprpw would give you more information on this.
-USA..
Good Luck..
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