Build with preset LibreELEC settings?

  • Help needed please:

    I’d like to build LibreELEC with preconfigured settings to allow users to access their device via SMB. They could then immediately copy a backup file and restore LE/Kodi completely configured with required add-ons, skin configuration, custom menu nodes etc.

    Currently LE does not have SMB password authentication enabled on initial install and recent Windows 11 refuse to connect.

    Is that possible? If so, how?

    If I could do this, a user would just have set their network access and setup library Sources. Far simpler for non technical users and first time LE users.

    Thanks

    Garry

  • It's not possible to force SMB auth on via buildsystem options or Kodi advancedsettings.xml controls but we should probably change the defaults (within the LE settings add-on code) to do that as Windows has required auth for a while now.

  • Thank you!!

    I'll take a look at that now and do so for my build


    The samba_secure setting is enabled by default in the LE Settings add-on.

    But its not enabled after an install...

    Edited once, last by HomerJau: Merged a post created by HomerJau into this post. (March 1, 2026 at 4:03 AM).

  • Does the system being tested with have a /storage/.cache/services/samba.conf or a samba.disabled file? If one is present, its settings will be taken before the addon's default.

  • It’s a LE 12.2 build from current 12.2 branch. Only changes: updated Python 3.11 latest 3.11 point release, Kodi package and a label change to identify the Kodi build. Nothing that affects LE settings.

    I will check and confirm .cache/services contents when I get on my dev PC and do a fresh NUC install (early morning here)

  • New install from USB. Immediately SSH in and there is a samba.conf in .cache/services with SMB password authentication disabled:

    SAMBA_WORKGROUP=WORKGROUP
    SAMBA_SECURE=false
    SAMBA_AUTOSHARE=true
    SAMBA_MINPROTOCOL=SMB2
    SAMBA_MAXPROTOCOL=SMB3
    SAMBA_USERNAME=\l\i\b\r\e\e\l\e\c
    SAMBA_PASSWORD=\l\i\b\r\e\e\l\e\c

  • Quote

    I'll take a look at that now and do so for my build

    Quote

    Nothing that affects LE settings.

    You need to clarify what was done to change the addon's default settings as these statements are in conflict.