5 Replies Latest reply on Apr 25, 2018 10:18 PM by aiya0933

    How to change password for mgmt-users.properties?

    aiya0933

      Hi all,

       

      I have created an administrator user in the mgmt-users.properties and set a password. Can i check what is the command to change the password of the administrator?

      Appreciate any kind advice.

       

      Tks

      Angela

        • 1. Re: How to change password for mgmt-users.properties?
          dlofthouse

          Just execute the add-user script and 'add' the user again, it will detect the user already exists and allow you to change the password.

          1 of 1 people found this helpful
          • 2. Re: How to change password for mgmt-users.properties?
            vamshi1413

            what dlofthouse said is correct, see below highlighted.

             

            What type of user do you wish to add?
            a) Management User (mgmt-users.properties)
            b) Application User (application-users.properties)
            (a): a

            Enter the details of the new user to add.
            Using realm 'ManagementRealm' as discovered from the existing property files.
            Username : admin
            User 'admin' already exists and is enabled, would you like to...
            a) Update the existing user password and roles
            b) Disable the existing user
            c) Type a new username
            (a):

            1 of 1 people found this helpful
            • 3. Re: How to change password for mgmt-users.properties?
              aiya0933

              Hi,

               

              When I execute the above command, i choose option (a) to update the existing user password and roles. After which, I restarted the Wildfly server and tried to access the management console through http://localhost:9990/console/App.html#home, it does not recognize the updated password. Rather i was able to login using the old password. Can you advise if i have missed out any step?

               

              Tks

               

              Angela

              • 4. Re: How to change password for mgmt-users.properties?
                dlofthouse

                When the utility updates the password it outputs which files it wrote the user to, I would suggest firstly double check the files under the server installation are the ones being modified.

                 

                Secondly I am assuming you are using the default security realm settings, have any changes been made either to the realms or to the management interfaces referencing the realms?

                1 of 1 people found this helpful
                • 5. Re: How to change password for mgmt-users.properties?
                  aiya0933

                  Hi Darran,

                   

                  Yes, I have done some changes to the management realms. Hence, the update to the mgmt-users.properties and mgmt-groups.properties are still in the default security realm settings. I tried to copy out the files from default configuration folder and override the properties files in my changed directory, and it works now. Thank you for your advice!