- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Lock 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
Discussions
Discussions
Discussions
Forums
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
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
тАО02-01-2011 07:48 PM
тАО02-01-2011 07:48 PM
Lock User
I am a novice in HP-UX. Please help me.
How to find the user status? Whether it is locked or not? How to lock the user and unlock the user? Any differences are there in command among the OS releases?
Thanks in advance...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2011 09:51 PM
тАО02-01-2011 09:51 PM
Re: Lock User
you can lock the user by below command in untrusted system.
Use the following command to lock the user account:
# passwd -l
lock/unlock account user id on HP-UX trusted system
/usr/lbin/getprpw useraccount
unlock / enable / reactivate:
/usr/lbin/modprpw -k useraccount
lock/expire password:
/usr/lbin/modprpw -e useraccount
Do not use a capital E, as it will expire the password on all user accounts.
Also you can find the user status through SAM. when you select the user and go in action, will get the option unlock if user is currently locked and option lock if user is active in present.
Rgds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2011 10:11 PM
тАО02-01-2011 10:11 PM
Re: Lock User
How to convert from trusted to untrusted, and untrusted to trusted system?
Thanks...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2011 10:24 PM
тАО02-01-2011 10:24 PM
Re: Lock User
# /usr/lbin/tsconvert -r
Trusting
# /usr/lbin/tsconvert
Unexpiring all passwords (all passwords are automatically expired when trusting a system):
# /usr/lbin/modprpw -V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2011 10:25 PM
тАО02-01-2011 10:25 PM
Re: Lock User
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2011 11:00 AM
тАО02-02-2011 11:00 AM
Re: Lock User
> How to find the user status?
By user status , I am guessing account status. Execute # passwd -sa. This will give you if the account is locked or passworded. It will give you this output.... PS for passworded and LK for locked. You can also see per user if account is locked by giving the user as the argument. If your sytem is UNTRUSTED {by that i mean is not a trusted system} a * would also say that the account is locked. However on TS you would see all the accounts having a * in the encrypted password field { the second field when you execute cat /etc/passwd }. The other commands mentioned by the other forumers modprpw/getprpw are specific to trusted systems.
Regards
Ismail Azad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2011 12:04 PM
тАО02-02-2011 12:04 PM
Re: Lock User
Note pretty much all the functionality that was available only in trusted mode on older versions of HP-UX is available in standard mode on HP-UX11iv3.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2011 07:36 PM
тАО02-02-2011 07:36 PM
Re: Lock User
/usr/lbin/modprpw -m alock=yes -k username
to unlock
/usr/lbin/modprpw -m alock=no -k username
regards
MC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2011 08:48 PM
тАО02-02-2011 08:48 PM
Re: Lock User
@Madhu :
# /usr/lbin/modprpw -m alock=yes -k apple
modprpw: invalid value - usrpick=yes
---think it should be like this :
# /usr/lbin/modprpw -l -m alock=YES apple ##lock the account of apple
# /usr/lbin/getprpw -r -m lockout apple ##check if lock,
0000010 ##a "1" indicates it's locked(at different position ,
it means lockout due to differnt reason)
#/usr/lbin/modprpw -l -m alock=NO apple ##to unlock
(or simply /usr/lbin/modprpw -k apple)
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2011 12:32 AM
тАО02-03-2011 12:32 AM
Re: Lock User
# passwd -s user_name
To see all user status;
# passwd -sa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2011 01:09 AM
тАО02-03-2011 01:09 AM
Re: Lock User
in trusted system u can also lock user by
/usr/lbin/modprpw -m alock=yes -k username
------------------------------>
mistyped the option:::::
@deaffrog try this
/usr/lbin/modprpw -k -m alock=YES username
regards
MC