Reset Luanti admin password
For some reason, my authentication for my Luanti server was broken. The password was somehow incorrect; I was entirely unable to log in.
My auth backend is the default of sqlite. I found my entry:
sqlite> SELECT * FROM auth WHERE name = "bgstack15"; 1|bgstack15|#1#w3kv8dJqu7i0V4kVN1tj2Q#TimueGjuwAFAxuFpXBzotRwqj6K/A5GEJlK/c1P9vLDftBwYq4fKGoDsfc0ExamplennQ9sfcOYsJLLyurq1EDMCFBP5gkojBINsTExamplemgzNFuuZq08PL627UgExampleJ5yDy1Z/w3P/+wmFtExamplex16Vqf2+CjLJlbExamplemKmuJomD8e5K53C3IlXK8MtVhp9S7yQjVKc5IA8TveUwkUxExampleTsMlsh+6Mj93WE4ooDtExample2Wgat7qY1VsNiE7SYLPI/FJhExample6bWp3DNWm4kvIMCE02YpT2aF7HTzFGwrPWyXzoGwnhzQ9vVM9JKlm|1787079240
And then I deleted the entry.
sqlite> DELETE FROM auth WHERE name = "bgstack15";
Because my server minetest.conf "name" entry is my username, my user is automatically an admin. But I still had to register, so I did that without a password, then immediately used the Escape menu to change my password.
I also had to grant myself various privileges again, because the user_privileges table uses a foreign key to table auth. I suppose that means there are dangling entries in my sqlite database. I should have done an update, although maybe the "ON DELETE CASCADE" part worked. Eh, it's just one small list of privs for one account.
Comments