i have a problem sharing videos from my pc to my phone via samba and vlc player. i did…
- 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?
- Assistant
Here are the most common causes for VLC on Android repeatedly asking for Samba credentials—and how to fix or work around them.
- 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.confunder the[global]section:
[global] server min protocol = NT1 # or, if you want to allow all: # client max protocol = SMB3 # client min protocol = NT1Then
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).
- “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.smbdmessages aboutNTLM password failedorunencrypted 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.
-
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. -
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:-
On your PC, test from another client (say
smbclient):smbclient //your-pc/Media -U youruserIf it asks once and then you can
lssubfolders without re-auth, the server is OK. -
If step 1 works, it’s VLC’s SMB client. Try toggling “Legacy (SMB1)” in VLC or use an external SMB-mount app.
-
If step 1 also keeps asking per folder, tweak your
/etc/samba/smb.confas above (protocol or guest options), thensystemctl restart smbd.
Good luck—once your server’s allowing the right protocol or guest access, VLC should stop nagging you for credentials! 🙌
- SMB-protocol mismatch
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.