- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX Useradd clarification
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
02-06-2001 11:47 PM
02-06-2001 11:47 PM
HP-UX Useradd clarification
Is there any way in HP-UX 11.00 for adding a user and assinging the password for that by a single command.
Please clarify.
Thanks and Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2001 01:30 AM
02-07-2001 01:30 AM
Re: HP-UX Useradd clarification
you found some information on the forum
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x72bcd06ed8c8d4118fef0090279cd0f9,00.html
or search "useradd script"
rgds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2001 06:00 AM
02-07-2001 06:00 AM
Re: HP-UX Useradd clarification
#vipw
Go to the end of the file and add for a new line
#
save the file !
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2001 10:09 AM
02-07-2001 10:09 AM
Re: HP-UX Useradd clarification
No, there is not a HP-UX command line utility that will create a new account and set the passwd. If you want this, you will have to write your own utility.
As a starting point, you could have your script run useradd and then use the expect language to provide the passwd command with input or generate the encrypted password yourself with makekey. See the following thread for more information:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x47ae79bffde7d4118fef0090279cd0f9,00.html
--Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2001 11:47 AM
02-07-2001 11:47 AM
Re: HP-UX Useradd clarification
On Trusted Systems, you may have to run another command to actually activate the account, depending on which security features are active. (Specifying a password expiration period is one of those features.)
If you like C, you can use setprpwent to do just about whatever you'd like from the command line.