1820592 Members
1922 Online
109626 Solutions
New Discussion юеВ

chpasswd command on HP??

 
SOLVED
Go to solution
Richard Ross
Regular Advisor

chpasswd command on HP??

Guys .. Both AIX and Linux have a command 'chpasswd' that allows you to change a user's password utilizing standard input .. Is there such a command for HP? (Does not need to be native)

Thanks
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: chpasswd command on HP??

passwd


Pete

Pete
RAC_1
Honored Contributor
Solution

Re: chpasswd command on HP??

Yes, not very similar, but should server your purpose.

/usr/sam/lbin/usermod.sam

You use it as follows.

usermod.dam -p "encrypted_pass" "user_name"

The pass has to be 10 chars long-8 chars as passwd and two salt chars. you can use /usr/lbin/makekey to prepeare encryoted pass.

Anil
There is no substitute to HARDWORK
Richard Ross
Regular Advisor

Re: chpasswd command on HP??

Anil,

Thanks .. That will do just fine ;-)

Pete .. passwd does not utilize standard in which leaves you to responding to the prompts.
Richard Ross
Regular Advisor

Re: chpasswd command on HP??

Anil,

Is there any documentation on usermod.sam?

Thanks
RAC_1
Honored Contributor

Re: chpasswd command on HP??

I think NO. I think it is just SAM that uses it and it is linked to /usr/sbin/usermod.

Apart from that you can also use "except" tool. You can also directly paste encrypted password in password field-no a good way though.

Anil
There is no substitute to HARDWORK