-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
Lock User
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-01-2011 07:48 PM
02-01-2011 07:48 PM
Lock User
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-01-2011 09:51 PM
02-01-2011 09:51 PM
Re: Lock User
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-01-2011 10:11 PM
02-01-2011 10:11 PM
Re: Lock User
Re: Lock User
How to convert from trusted to untrusted, and untrusted to trusted system?
Thanks...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-01-2011 10:24 PM
02-01-2011 10:24 PM
Re: Lock User
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-01-2011 10:25 PM
02-01-2011 10:25 PM
Re: Lock User
Re: Lock User
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-02-2011 11:00 AM
02-02-2011 11:00 AM
Re: Lock User
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-02-2011 12:04 PM
02-02-2011 12:04 PM
Re: Lock User
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
HTH
Duncan
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-02-2011 07:36 PM
02-02-2011 07:36 PM
Re: Lock User
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-02-2011 08:48 PM
02-02-2011 08:48 PM
Re: Lock User
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-03-2011 12:32 AM
02-03-2011 12:32 AM
Re: Lock User
Re: Lock User
# passwd -s user_name
To see all user status;
# passwd -sa
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-03-2011 01:09 AM
02-03-2011 01:09 AM
Re: Lock User
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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP