- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Activating users accounts from the command prompt
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-17-2002 05:09 AM
07-17-2002 05:09 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 05:13 AM
07-17-2002 05:13 AM
Re: Activating users accounts from the command prompt
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 05:26 AM
07-17-2002 05:26 AM
Re: Activating users accounts from the command prompt
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 05:27 AM
07-17-2002 05:27 AM
Re: Activating users accounts from the command prompt
To enable/unlock an existing account use
#modprpw -k username
To create a new account
#useradd -u xxxx -g yyyy -d /home/username -m -s /usr/bin/ksh -c "Any Comments Here" username
Then generate a random PW for the user's initial login - they should change it.
#modprpw -x username
HTH,
Jeff
Where xxxx is the user's ID & yyyy is the group ID. Of course shell other than ksh can be specified.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 05:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2002 05:42 AM
07-17-2002 05:42 AM
Re: Activating users accounts from the command prompt
/usr/lbin/getprpw -m lockout
The seven digits should all be 0. If any are a 1, the account is disabled. As mentioned before modprpw with the k option will enable it.
The different fields in the lockout entry mean:
password lifetime exceeded
time between logins execeeded
account lifetime exceeded
unsuccessful login attempts exceeeded
null password set and not allowed
admin lock
password is "*"
Hope this helps you.