- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: User password change script
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
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
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
03-10-2013 11:16 PM
03-10-2013 11:16 PM
User password change script
Hi Team ,
I need sample script for user password change.
my requirement
once i excute script -> ask user name -> after enter the username -> password change automaticaly.
kindly provide your value input ASAP.
Thanks
- Tags:
- Password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2013 01:11 AM
03-11-2013 01:11 AM
Re: User password change script
And what should the new password be?If it should be fixed, anyone who can read the script can easily uncover the password.
If it should be randomly generated, what do you want to do with it? Display it? Write it into a file? Or do you really want to create passwords that are not known to anyone at all?
The "/usr/sam/lbin/usermod.sam" command can be used to change a password automatically, but it will need the new password in hashed ("encrypted") form. Note: the hashed passwords can contain characters that are special to the shell, so you must use quotes or backslashes to prevent the shell from interpreting them.
/usr/lbin/makekey can be used to convert passwords to hashed form (see "man makekey"), but because it requires the password to be exactly 8 characters + 2 characters of salt, it is not the best possible choice.
The syntax for usermod.sam is:
/usr/sam/lbin/usermod.sam -F -p '<new hashed password>' <username>
- Tags:
- usermod.sam