I've inherited an UAG system where I'm unable to login. I've just successfully reset the root password by following these doc:
I don't know what version this UAG gatway is and I've so far been unable to reset the admin password. I've tried this kb article:
..but it doesn't recognize the adminpwd command. "-bash: adminpwd: command not found"
I've also tried to configure the firstboot file as described here:
It does however give the following message instead of resetting the password: "System settings already created. No need to initialize."
Anyone have an idea how get through this? I have a certificate that should be replaced within a few days.
Try the following:
echo ‘adminPassword=<Password>’ > /opt/vmware/gateway/conf/firstboot.properties
chown gateway /opt/vmware/gateway/conf/firstboot.properties
supervisorctl restart admin
I tried doing that, but the log said it was already configured.
Have you had a look to see if the firstboot.properties file exists in your deployment under the path specified above, it was deprecated from newer versions of the UAG.
If it does, can you take a look inside to see what values are currently set for adminPassword - I'm assuming its in clear text?
The file did not exist, so i tried creating it. It got deleted when restarting the service.
It's UAG version 188.8.131.52-1.
Sorry to bring up an old topic, but did you ever get around this? I am seeing the exact same thing.
The adminpwd is only an alias.
alias adminpwd='sudo /opt/vmware/gateway/scripts/adminPasswordChange.sh'
I have the same problem - no one knows the admin password. I have follows the instructions for version 3.3. After restarting admin, the firstboot.properties file is gone, but nothing about the adminPassword is logged in admin.log and the new password is not working, so I am still looking to find a way to break in.
If the adminpwd command don't work, you can use the following command instead: 'sudo /opt/vmware/gateway/scripts/adminPasswordChange.sh'
the scripts does not exist on 3.3
From what I understand you can connect in ssh with the root user.
Have you tried to change the Admin password with the classic linux "passwd admin" command?
On 3.3 I never had the need but it could work. 🙂
There is nothing you can do at this version unfortuantly, you need to redeploy, and had the same issue. I forgot what version they added the password reset but even the early version resets didn't always work. I'd look at creating powershell scripts to automatically deploy them for you if your not already, that way if there is an issue you can quickly delete these if there are any problem and run the powershell script to recreate it.
I plan to deply the latest release. its just that I wanted to export the settings from the current one - and I can't. The system was set long before I took over and no one recalls the admin password...
I know this is a pretty old thread, but I just faced this issue in my lab and here's how I was able to get over it. Posting it here just in case I forget what I did or if someone else stumbles on the same. 😉
1. Reset the root password using the procedure mentioned in the article below. The important thing to note is that you have to make sure the GNU GRUB menu looks exactly like it is shown in the menu screenshot embedded in the article. Without this, I kept getting the hv_balloon... floor reached messages and the root prompt never showed up. This was the second time that I had to do the root password reset, but the first time I did not hit the hv_balloon messages issue. So, keep this handy in case you do.
2. Next step is simpler actually. Reset the VM and let it come back to the blue VMware EUC Unified Access Gateway screen. Then, just hit enter and login with root. The adminpwd command should work from here. Even I could not fully understand what changes that allows the command to work from here, but it does work! That's how I reset my admin password.