Post-installation wizard bug

If I am logged in an an ordinary user I get this error:

You are not allowed to run the post-installation wizard

Steps to reproduce:

  1. Log in as a non-root user.
  2. Click "File Manager".
  3. Click the "Virtualmin" tab at the top.

Doing so loads https://example.net:10000/virtual-server/wizard.cgi?xnavigation=1 .

  • Webmin: 1.900
  • Virtualmin: 6.05
  • Authentic theme: 19.21

Craig

Status: 
Closed (fixed)

Comments

I should add that this is not during installation. This is on a server that has been running for a couple of years.

What does the wizard_run= line in /etc/webmin/virtual-server/config contain?

wizard_run=1

I can't reproduce this, but I'm pretty sure that changing this to wizard_run=1 will fix it.

Umm, I answered that wizard_run is already set to 1. Do you mean set it to 0?

Sorry I misread that! In that case, nobody (even root) should be prompted to see the install wizard.

When logged in as non-root, do you see a link to re-run the wizard on the left menu under System Settings?

Jamie, my sincere apologies for dropping the ball on this ticket. I'm going to blame Christmas, as it surely couldn't be my own fault. :)

I still see this behaviour. When logged is as NON-root I do not see a System Settings option, at least not in the top-level menu options on the left in the Authentic theme or anywhere on the dashboard. As the ROOT user I do see this option, and "Re-Run Install Wizard" does show in the sub-menu.

Craig

Assigned: Unassigned »

I tested this again, and was able to re-produce this by doing the same thing you did (logging in as root, opening the file manager, then clicking on the Webmin or Virtualmin tab).

Ilia, does the theme ever redirect users to wizard.cgi? I can't see how this would happen in the core Virtualmin code, as the redirect never happens for non-root users.

Ilia's picture
Submitted by Ilia on Fri, 02/22/2019 - 00:44

So, the problem is that redirect happens for non-root user, while should only happen for root, correct?

It sounds like a theme bug, if the above is correct, because theme does redirect new installations to the wizard page.

Ilia's picture
Submitted by Ilia on Fri, 02/22/2019 - 01:11

Okay, I confirm that it was a bug in 19.21 but was fixed in @45c438e on Decemeber 18.

It's fixed now in upstream Git version of the theme, and also should be fixed in version 19.22. You can upgrade the theme to the latest stable/development version, using theme configuration.

Thank you very much for reporting anyway!

Ilia's picture
Submitted by Ilia on Fri, 02/22/2019 - 01:11

Status: Active » Fixed (pending)

Hi Jamie,

Odd that you seem able to reproduce this following a different work flow. This does NOT happen when I log in as root. It only happens when I log in as a NON-root user, whether I log in directly as that user or log in first as root, switch to a domain, then use Administration Options -> Switch To Server's Admin.

Either way, if it's fixed in a future version, that's great. Thanks.

Craig

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.