- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to create or modify password to an new use...
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
06-16-2003 07:31 AM
06-16-2003 07:31 AM
how to create or modify password to an new user account
I would like do a script to create a new user account and a new password but I can not generate a password in my script.
Do you have any tips.
My server is on hp/ux 11.00 and 11.11
I am not under trusted mode.
cia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 07:36 AM
06-16-2003 07:36 AM
Re: how to create or modify password to an new user account
$passwd user
must ask for new password for the user
in your script
user=$1 (if you don't use shift)
...
..
..
passwd $user
must ask for pasword for the user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 07:39 AM
06-16-2003 07:39 AM
Re: how to create or modify password to an new user account
I would like enter that sequence :
creatuser $1 $2
where $1 is the login and $2 the password that I have choosen for the user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 07:40 AM
06-16-2003 07:40 AM
Re: how to create or modify password to an new user account
Have a look at the man pages (1M) for 'useradd'. Use this to create your new account. Use 'passwd' to create a password for the account which will have been created in a locked state.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 08:05 AM
06-16-2003 08:05 AM
Re: how to create or modify password to an new user account
will encrypt password with salt SA. This returns an encrypted password in the same format used in /etc/passwd.
Create a new user using useradd, then replace the locked password with the one from the perl crypt functions.
Or, generate the entire password record yourself, and append it to /etc/passwd. Create any home directories in your script, and set appropriate ownership.
In any case, be very careful and cautious with this. Slipping up can corrupt or destroy your password file, and the consequences are not pretty.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 08:07 AM
06-16-2003 08:07 AM
Re: how to create or modify password to an new user account
# useradd -u 201 -g user_group user_name
change user_name's password:
# passwd user_name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2003 09:41 AM
06-16-2003 09:41 AM