- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Using Makekey and Usermod.sam
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
06-02-2009 06:12 AM
06-02-2009 06:12 AM
Using Makekey and Usermod.sam
# echo passwillaa | /usr/lib/makekey
aadfnZyCsuaF.
but other times it will return something with like the following.
x
3RmwumSorhg
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.
- Tags:
- makekey
- usermod.sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2009 06:30 AM
06-02-2009 06:30 AM
Re: Using Makekey and Usermod.sam
# /usr/sam/lbin/usermod.sam -F -p "$(echo passwillaa|/usr/lib/makekey)" username
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2009 09:51 AM
06-02-2009 09:51 AM
Re: Using Makekey and Usermod.sam
JRF,
When I tried that the passwd entry, for that user, looked like:
heidenp:a
JTxjqEpomkk:112:20:Peter Heiden,,,:/home/heidenp:/usr/bin/sh
I get a new line after the a and the account won't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2009 10:14 AM
06-02-2009 10:14 AM
Re: Using Makekey and Usermod.sam
OK, from the manpages for 'makekey' you can note that input is expected to be ten (10) characters long.
Hence:
# echo "passwillaa"|/usr/lib/makekey
...works; as does:
# echo "passwilla "|/usr/lib/makekey
...but "not":
# echo "passwilla"|/usr/lib/makekey
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2009 10:57 AM
06-02-2009 10:57 AM
Re: Using Makekey and Usermod.sam
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2009 11:12 AM
06-02-2009 11:12 AM
Re: Using Makekey and Usermod.sam
Is there another way for me to create an encrypted password?
Yes, see my Perl script in this thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1252591
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2009 06:45 AM
06-03-2009 06:45 AM
Re: Using Makekey and Usermod.sam
James,
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2013 03:01 AM
06-06-2013 03:01 AM
Re: Using Makekey and Usermod.sam
Hi,
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..
-Mahboob
- Tags:
- trusted mode