HPE Storage Users Group
https://3parug.com/

HP 3par 3paradm user's password change
https://3parug.com/viewtopic.php?f=18&t=2743
Page 1 of 1

Author:  novelkumar [ Thu Dec 14, 2017 7:36 am ]
Post subject:  HP 3par 3paradm user's password change

Hi All,

Is there a method to change the password of 3paradm user from a remote host . for eg a linux server which has a normal user connectivity to 3par storage [using a script ...].

If not, is it possible through 3paradm user itself, remotely .

Regards,
Novel

Author:  MammaGutt [ Thu Dec 14, 2017 1:14 pm ]
Post subject:  Re: HP 3par 3paradm user's password change

If you got SSH connectivity you can change it with setuser - p comand.

Author:  novelkumar [ Fri Dec 15, 2017 4:57 am ]
Post subject:  Re: HP 3par 3paradm user's password change

Thank you MammaGutt,

setuser does not have a -p option. From help page, we see it can only edit the domain and role of a user.

<snip>

root@Ubuntu:~# ssh -l cghelion x.x.x.x "showuser"
Password:

root@Ubuntu:~# ssh -l cghelion x.x.x.x "setuser -p 123456 -u user1"
Password:
setuser: Syntax error.
SYNTAX
setuser [options] <user>
root@Ubuntu:~# ssh -l cghelion x.x.x.x "setuser -p 123456 user1"
Password:
setuser: Syntax error.
SYNTAX
setuser [options] <user>
root@Ubuntu:~# ssh -l cghelion x.x.x.x "setuser user1 -p 123456"
Password:
setuser: Syntax error.
SYNTAX
setuser [options] <user>

<snip>

The following command is working..

setpassword -u user1

BUT

our script requirement is to give the password along with the command like when we create a user as follows:

createuser -c 123456 user1 testdomain edit

Author:  MammaGutt [ Fri Dec 15, 2017 6:22 am ]
Post subject:  Re: HP 3par 3paradm user's password change

Yes, sorry. I mixed up the commands.

I don't know any way you can pass the new password in clear text.

Author:  Morbid [ Sat Dec 16, 2017 1:46 am ]
Post subject:  Re: HP 3par 3paradm user's password change

And what is the impact of changing the 3paradm password ?

Does we need to adapt it on the SP/VSP ? ... ?

Author:  jazse [ Mon Dec 25, 2017 5:16 am ]
Post subject:  Re: HP 3par 3paradm user's password change

novelkumar wrote:
Thank you MammaGutt,

The following command is working..

setpassword -u user1

BUT

our script requirement is to give the password along with the command like when we create a user as follows:

createuser -c 123456 user1 testdomain edit


How about forget passwords and use ssh keys?

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/