ADMIN was disabled and how can I regain superuser access?

Dumidu 8 years ago

I accidentally disabled the admin account and lost access to the admin functions.
Can someone please tell how I can enable admin account.

I am trying to read the database with h2 console with no luck. Please provide the steps if possible.

I also think the logic is wrong having the function to disable the superuser account.

Thanks very much

Anton Tananaev 8 years ago

Why do you think it's a wrong logic? It's not foolproof, but only admin can do it, so it's not something that a dumb user can break.

Dumidu 8 years ago

Sorry I did not mean it like that. Just thought, even an admin can fiddle with it and then they to go the database level to fix it. Wouldn't it be better disabled function was grayed out for admin? It is just dumb user point view sorry.

Anton Tananaev 8 years ago

I think admin should be able to do anything. I don't see much point in restricting anything for him.

Jonas 7 years ago

Hi. Ups! I set the admin account to inactiv too. Is there a possibility to get it back to activ. Thx for your help.

Anton Tananaev 7 years ago

You would need to modify database directly and then restart service.