ronivay / XenOrchestraInstallerUpdater

Xen Orchestra install/update script
GNU General Public License v3.0
1.16k stars 189 forks source link

Default web account recovery #106

Closed vipex225 closed 2 years ago

vipex225 commented 2 years ago

Hi, I am trying to figure out if it's possible to recover the default admin@admin.net account for XO with it's default password, directly from cli in the host operating system (centos 8 in my case). Thanks!

ronivay commented 2 years ago

Hi,

Yeah it is. Run /opt/xo/xo-server/dist/recover-account-cli.mjs admin@admin.net and enter password you wish to use. This will either reset the password if user exists or create it with admin permissions if it doesn't.

Change path accordingly if you used some other INSTALLDIR variable in xo-install.cfg than default /opt/xo

E: had a typo in command. fixed

vipex225 commented 2 years ago

Works like a charm, thank you very much!