Skip to content
The Chat Archive
o4-mini-2025-04-16· OpenAI LMArena Human Preference 140K

i have a problem sharing videos from my pc to my phone via samba and vlc player. i did…

  1. User

    i have a problem sharing videos from my pc to my phone via samba and vlc player. i did create share of a external HDD (usb) and it is properly displayed in the vlc player (on the phone) but when i try to connect to it, the vlc player always ask for user credentials multiple time even thou i check the "remember password" checkbox. it also ask for the credentials for each directory i try to open (in vlc on the phone). any idea what is the problem?

  2. Assistant

    Here are the most common causes for VLC on Android repeatedly asking for Samba credentials—and how to fix or work around them.

    1. SMB-protocol mismatch
      • VLC’s Android smb client only speaks SMB1 (NT1) today, whereas modern Samba (v4.11+) defaults to SMB2 or SMB3 and may even disable NT1 entirely. Each directory‐list is a new SMB1 connection, so VLC keeps re-authenticating.
      • Solution A: re-enable SMB1 on your server by editing /etc/samba/smb.conf under the [global] section:
    [global]
      server min protocol = NT1
      # or, if you want to allow all:
      #   client max protocol = SMB3
      #   client min protocol = NT1
    

    Then sudo systemctl restart smbd. VLC will now speak NT1 → no more repeated prompts.

    • Solution B: turn on SMB2+ in VLC (if your VLC build supports it). In VLC’s sidebar under Network, tap the three dots ⋮ → “Legacy Network (SMB1)” → disable that. VLC will try SMB2/3 first (newer VLC nightly builds only).

    1. “Encrypted passwords” vs “plain”
      By default Samba 4 enforces encrypted passwords; older SMB1 clients sometimes try plain. If you see in /var/log/samba/log.smbd messages about NTLM password failed or unencrypted guest, you can:
    • confirm you’ve set
      [global]
        encrypt passwords = yes
        smb encrypt = disabled    # if you want no encryption
      
    • on the Android side, make sure you’re connecting with the exact Samba user/password you created with sudo smbpasswd -a youruser.
    1. VLC bug: per-folder re-prompts
      Some VLC Android versions simply don’t cache credentials across directory listings. You can work around this by:
      • mounting the share system-wide on Android (requires root) via an app like “CIFSManager” or “SMBManager,” then pointing VLC at the local mount point (e.g. /mnt/smb/myshare/video.mp4).
      • using a file-browser with builtin SMB (FE File Explorer, Solid Explorer, X-plore) that preserves your login, then “Open with VLC” on tap.

    2. Share-side tweaks for no-password access (guest)
      If you’d rather remove passwords entirely:

    [Media]
      comment     = External USB HDD
      path        = /media/usb
      browseable  = yes
      read only   = no
      guest ok    = yes
      public      = yes
      force user  = your_local_linux_user
      map to guest= Bad User
      security    = user
    

    – Restart Samba, and VLC will connect as guest (no auth prompt).

    — —
    Step-by-step to diagnose:

    1. On your PC, test from another client (say smbclient):

      smbclient //your-pc/Media -U youruser
      

      If it asks once and then you can ls subfolders without re-auth, the server is OK.

    2. If step 1 works, it’s VLC’s SMB client. Try toggling “Legacy (SMB1)” in VLC or use an external SMB-mount app.

    3. If step 1 also keeps asking per folder, tweak your /etc/samba/smb.conf as above (protocol or guest options), then systemctl restart smbd.

    Good luck—once your server’s allowing the right protocol or guest access, VLC should stop nagging you for credentials! 🙌

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.