How do I reset the administrator password of COMSOL Server?

Solution Number: 1219
Title: How do I reset the administrator password of COMSOL Server?
Platform: All Platforms
Applies to: COMSOL Server
Versions: 5.2
Categories:
Keywords: COMSOL Server adminstrator password

Problem Description

How do I reset the administrator password of COMSOL Server?

Solution

How to reset the administrator password of COMSOL Server depends on if it was installed with a shared working directory or not, and if not, whether it was installed as a Windows service (default for Windows) or as a regular executable.

Note: this operation will delete all regular users from the User Database.

Windows Service

  1. Stop the COMSOL Server service using the Stop COMSOL Server shortcut on the Start menu.
  2. Delete the login.properties and service\roles.properties files from the v52server directory, which is typically located at
    C:\Windows\ServiceProfiles\LocalService\.comsol\v52server
    (The location depends on the Service account specified while installing; by default, it is LocalService). To remove the files, you may need to take ownership of them and have the right permissions.
    Right-click each file, choose Properties, open the Security tab, click the Advanced button, and open the Owner tab. Click the Edit button, and change Owner to your own login name to change ownership. Click OK.
    Click the Permissions tab. Click the Change Permissions button, click the Add button, enter you own username or domain user name, click OK. Click the Full Control check box in the Allow column. Click OK four times.
  3. Run the COMSOL Server installer in Repair mode and enter a new Default local administrative user.
  4. Normally the COMSOL Server service is configured to start automatically; otherwise, start it again using Start COMSOL Server.

Regular Executable

  1. Stop the COMSOL Server executable by typing close in the console window, or kill the process.
  2. Delete the login.properties and service\roles.properties files from the v52server directory, which is typically located at
    %USERPROFILE%\.comsol\v52server (Windows)
    ~/.comsol/v52server (Linux)
    ~/Library/Preferences/COMSOL/v52aserver (Mac OS X)
  3. Run the COMSOL Server installer in Repair mode and enter a new Default local administrative user. (If COMSOL Server will never be run using the -service parameter, you can skip this step.)
  4. Start COMSOL Server again.

Shared Working Directory

This option in available with Support running COMSOL Server on multiple computers selected during installation.

  1. Stop the primary COMSOL Server process. (See Step 1 above for the two cases of a Windows Service or Regular Executable.)
  2. Run the COMSOL Server installer in Repair mode and enter a new Default local administrative user.
  3. If not configured to start automatically, start COMSOL Server again.

Disclaimer

COMSOL makes every reasonable effort to verify the information you view on this page. Resources and documents are provided for your information only, and COMSOL makes no explicit or implied claims to their validity. COMSOL does not assume any legal liability for the accuracy of the data disclosed. Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark details.