Kodi Community Forum
Forgotten master lock code - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Forgotten master lock code (/showthread.php?tid=224101)



Forgotten master lock code - cgroth - 2015-04-11

Hi, I have created a master profile for all settings etc, and now I have of course forgotten what it is (or rather I think I remember, but KODI tells me I am wrong).

Is there some way to reset this? I have only tried twice, the exited, so I don't lock it.

Any help would be greatly appreciated!!

Christopher


RE: Forgotten master lock code - DaVu - 2015-04-11

Only as far as I understand kodi....

Each of the profiles you created should have an own 'userdata'-folder with an own 'guisettings.xml'. This xml file contains all the info which is set for the specific profile. You are able to access this folder without any problems or passwords (using the command line or a file browser). Copy the xml-file to a save place, delete the profile folder, restart kodi, create a new profile, put the xml file there (overwrite the existing guisettings.xml) and restart/reboot kodi. All settings, which you did, should be there again.

I think there is no way to reset the password if you forgot it. But maybe anyone else knows a better solution.


RE: Forgotten master lock code - cgroth - 2015-04-11

(2015-04-11, 21:42)David1977 Wrote: Only as far as I understand kodi....

Each of the profiles you created should have an own 'userdata'-folder with an own 'guisettings.xml'. This xml file contains all the info which is set for the specific profile. You are able to access this folder without any problems or passwords (using the command line or a file browser). Copy the xml-file to a save place, delete the profile folder, restart kodi, create a new profile, put the xml file there (overwrite the existing guisettings.xml) and restart/reboot kodi. All settings, which you did, should be there again.

I think there is no way to reset the password if you forgot it. But maybe anyone else knows a better solution.

Thanks David! I'll wait for a while to see if someone knows of a simple thing like a reset functionality, if not I'll try your suggestion! Smile


RE: Forgotten master lock code - Martijn - 2015-04-11

Look in the guisettings.xml file for the password or some other xml file


RE: Forgotten master lock code - DaVu - 2015-04-11

Ok...if the password is in this xml file, my suggestion wouldn't make any sense, as it would be restored and then it has to be used again. Wink


RE: Forgotten master lock code - DaVu - 2015-04-11

Ok...just set up a master lock for kodi on my tablet and took a look at guisettings.xml. The code isn't there, but it seems, that it is present in the profiles.xml:

Code:
<profiles>
    <lastloaded>0</lastloaded>
    <useloginscreen>false</useloginscreen>
    <autologin>-1</autologin>
    <nextIdProfile>1</nextIdProfile>
    <profile>
        <id>0</id>
        <name>Master user</name>
        <directory pathversion="1">special://masterprofile/</directory>
        <thumbnail pathversion="1"></thumbnail>
        <hasdatabases>true</hasdatabases>
        <canwritedatabases>true</canwritedatabases>
        <hassources>true</hassources>
        <canwritesources>true</canwritesources>
        <lockaddonmanager>false</lockaddonmanager>
        <locksettings>1</locksettings>
        <lockfiles>false</lockfiles>
        <lockmusic>true</lockmusic>
        <lockvideo>true</lockvideo>
        <lockpictures>true</lockpictures>
        <lockprograms>true</lockprograms>
        <lockmode>1</lockmode>
        <lockcode>81dc9bdb52d04dc20036dbd8313ed055</lockcode>
        <lastdate></lastdate>
    </profile>
</profiles>

It seems to be decrypted as my code was very difficult ("1234" Wink ) but I changed the entries to the following:

Code:
<profiles>
    <lastloaded>0</lastloaded>
    <useloginscreen>false</useloginscreen>
    <autologin>-1</autologin>
    <nextIdProfile>1</nextIdProfile>
    <profile>
        <id>0</id>
        <name>Master user</name>
        <directory pathversion="1">special://masterprofile/</directory>
        <thumbnail pathversion="1"></thumbnail>
        <hasdatabases>true</hasdatabases>
        <canwritedatabases>true</canwritedatabases>
        <hassources>true</hassources>
        <canwritesources>true</canwritesources>
        <lockaddonmanager>false</lockaddonmanager>
        <locksettings>0</locksettings>
        <lockfiles>false</lockfiles>
        <lockmusic>false</lockmusic>
        <lockvideo>false</lockvideo>
        <lockpictures>false</lockpictures>
        <lockprograms>false</lockprograms>
        <lockmode>0</lockmode>
        <lockcode></lockcode>
        <lastdate></lastdate>
    </profile>
</profiles>

and I dont have to enter a code anymore

So maybe this helps Wink

Edit:

What I noticed is, that you are able to change the 'max retries' for entering the code if you are not sure. This is in the guisettings.xml:

Code:
<masterlock>
        <maxretries default="true">3</maxretries>
        <startuplock default="true">false</startuplock>
    </masterlock>

Just FYI


RE: Forgotten master lock code - cgroth - 2015-04-12

(2015-04-11, 23:06)David1977 Wrote: <lockcode>81dc9bdb52d04dc20036dbd8313ed055</lockcode>

It seems to be decrypted as my code was very difficult ("1234" Wink ) but I changed the entries to the following:


So maybe this helps Wink

Is this your code: "81dc9bdb52d04dc20036dbd8313ed055" which decrypted reads "1234"? Is there a way to decrypt it using excel or something to calculate? I would very much like to be able to enter master mode 'correctly' using the right code, rather than removing the code, as I am still a bit worried I might loose something, or screw something up, that way.... Huh

Thanks for all your help guys! I really appreciate it Smile

Christopher


RE: Forgotten master lock code - ronie - 2015-04-12

http://www.md5-hash.com/md5-hashing-decrypt/81dc9bdb52d04dc20036dbd8313ed055


RE: Forgotten master lock code - cgroth - 2015-04-12

(2015-04-11, 22:03)Martijn Wrote: Look in the guisettings.xml file for the password or some other xml file

I have this text in my guisettings.xml file:

Quote:-<masterlock>

<maxretries default="true">3</maxretries>

<startuplock default="true">false</startuplock>

</masterlock>

If I set the startuplock default to "false", would that unlock master mode? If so, how do i treat the present ">false<" portion of the text? 1. Leave it, 2. Delete it or 3. Change it? If I should change it, should it be to ">true<" or something else? Huh


Edit, new info/question:

In another xml file, called "profiles" I found the following text:

Quote:<lockmode>3</lockmode>

<lockcode>e9945d630503f8af14ed47b46f2d7ca9</lockcode>

Can I do something to either of those to gain full access? I don't want to experiment here for fear of being locked out, that wy I ask the experts here rather that go for a try and fail approach... Blush

Thanks again for all help! Smile


RE: Forgotten master lock code - Ned Scott - 2015-04-12

http://kodi.wiki/view/Settings/System#Locked_out.3F

Edit profiles.xml


RE: Forgotten master lock code - DaVu - 2015-04-12

Well....I thought i explained it well in my previous posting #6


RE: Forgotten master lock code - Ned Scott - 2015-04-12

What I mean is, that line can just be deleted and Kodi won't ask for the code anymore. So that it says

Code:
<lockcode></lockcode>



RE: Forgotten master lock code - cgroth - 2015-04-15

(2015-04-12, 21:52)David1977 Wrote: Well....I thought i explained it well in my previous posting #6

Thanks David you did, and I'll use that method! Read your post on a smart phone and wasn't able to scroll the code windows, so I didn't see what you had done with the lock code, sorry! Blush