- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- identifying locked users, locking & unlocking user...
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-24-2007 02:35 AM
07-24-2007 02:35 AM
identifying locked users, locking & unlocking users
How do I check if a particular user's account has been locked?
Also how do I lock and unlock accounts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 02:40 AM
07-24-2007 02:40 AM
Re: identifying locked users, locking & unlocking users
How to report inactive (locked) user accounts on a trusted system
There is also a script attached to perform task.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 02:45 AM
07-24-2007 02:45 AM
Re: identifying locked users, locking & unlocking users
Plan A.
logins | awk '{print $1}' | while read U
do
/usr/lbin/getprpw -m lockout ${U}
done
Locked users will have a '1' in at least one location in the lockout string.
Plan B.
logins -x
Locled accounts will display "LK".
To unlock a trusted account, /usr/lbin/modprpw -k user.
To unlock a standard system, replace the bogus password hash (typically '*') with a valid passwd hash. (i.e. run the passwd command).
Man logins, getprpw, modprpw for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 02:47 AM
07-24-2007 02:47 AM
Re: identifying locked users, locking & unlocking users
/usr/lbin/modprpw -e useraccount
To lock an account.
/usr/lbin/modprpw -k useraccount
to unlock.
Link to above doc.
Europe
http://www8.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01031510-2
US
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01031510-2
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2007 02:53 AM
07-24-2007 02:53 AM
Re: identifying locked users, locking & unlocking users
modprpw and getprpw is available only for trusted server.
logins -x would report details of all users, and you should be looking for "LK"
-USA..