06-02-2009 06:12 AM
# echo passwillaa | /usr/lib/makekey
but other times it will return something with like the following.
I was taking the encrypted password and using it in the usermod.sam command as follows:
/usr/sam/lbin/usermod.sam -F -p `echo passwillaa | /usr/lib/makekey` username
It's working when I don't have the special character in there. How can I deal with this? Thanks in advance for your help.
06-02-2009 09:51 AM
When I tried that the passwd entry, for that user, looked like:
I get a new line after the a and the account won't work.
06-02-2009 10:14 AM
OK, from the manpages for 'makekey' you can note that input is expected to be ten (10) characters long.
# echo "passwillaa"|/usr/lib/makekey
...works; as does:
# echo "passwilla "|/usr/lib/makekey
# echo "passwilla"|/usr/lib/makekey
06-02-2009 10:57 AM
Ok, I just read that. So the makekey utility has restrictions that won't allow me to create what would be a valid password in HP UX? Is there another way for me to create an encrypted password?
06-02-2009 11:12 AM
Is there another way for me to create an encrypted password?
Yes, see my Perl script in this thread:
06-03-2009 06:45 AM
Thank you VERY much. That worked great for me. We now have a script that will change both our application server password, as well as an Oracle password. Now I have to come up with a way of having this script run when a password, on the HP UX system, expires. I'm going to search through the forums, but if someone can point me in the right direction it would be much appreciated.
06-06-2013 03:01 AM
I have tested the same and its working fine in untrusted systems,but unfortunately its not working trusted systems..
Could you please explain the reason what could be..