Forum Discussion

Epi4Sym's avatar
Epi4Sym
Level 3
15 years ago
Solved

Hot is it possible recover the vcs admin password?

Hi,

I'm trying to connect with the Veritas Cluster manger Java console to administer my clusters, but the default login admin/password doesn't work.

The dialog box says that the login or password are wrong.

With the command hauser -list, I haven't found any user set, the output is blank, so it seems that there aren' users, but looking at:

/opt/VRTS/install/logs/installsf-GxstAR/installsf-GxstAR.log

It seems that a user a pwd was configured during the installation (just for info I have not executed the installation and I cannot find the people).

Here some raws about the log:


03:25:56 Do you want to set the username and/or password for the Admin user

(default username = 'admin', password='password')? [y,n,q] (n)

03:26:10 y

03:26:10 Enter the user name: [?] (admin)

3:26:46 exec /usr/bin/cat /var/tmp/installsf-GxstAR/userpasswd 2>&1

3:26:46

cNOgNInKOjOOmWOiNL

3:26:46 exit=0

03:26:46 Do you want to add another user to the cluster? [y,n,q] (y)

03:26:52 n

03:26:52 SF User verification:

03:26:53 User: admin Privilege: Administrators

03:26:53 Passwords are not displayed

03:26:53 Is this information correct? [y,n,q] (y)


Could someone help me to recovery the password or give me the rights, like administrator,

to access Veritas cluster manager and administer from GUI?

Thanks a lot

Epi

  • Login as root, and run the hauser command to add the admin user again:

     

    /opt/VRTSvcs/bin/hauser -add admin -priv Administrator

3 Replies

  • Login as root, and run the hauser command to add the admin user again:

     

    /opt/VRTSvcs/bin/hauser -add admin -priv Administrator

  • Hello Epi,

    Could send me the below outputs:

    #  hauser -list

    # hauser -display admin

    # cat /etc/VRTSvcs/conf/config/main.cf | head -15

     

    Regards

    Rajesh

  • Hi Kuna, thanks a lot!

    now is working.

     


    @Rajesh

    before the output of the commands were empty

    after I have added the user and execute the command haconf -dump makero

    in the main.cf the password was in:

    include "types.cf"

    include "VVRTypes.cf"

    include "SybaseTypes.cf"

    cluster osscluster-1 (

    UserNames = { admin = cpqIpkPmqLqqOyqKpn }

    ClusterAddress = "10.76.11.19"

    Administrators = { admin }

    )

    remotecluster osscluster-2 (

    ClusterAddress = "10.76.11.20"

    )

     

    and the output of the commands is the following:

    # hauser -list

    admin

    # hauser -display admin

    admin : ClusterAdministrator

     

    Best regards

    Epi