Windows 10 samba share configuration


Create a local account

You need to create a dedicated shared account with no privileges. This is a LOCAL account only.

  • Control Panel > User accounts
  • Manage another account
  • Add a new user in PC settings
  • Other users: add someone else to this PC
  • I don't have this person sign-in information
  • Add a user without a microsoft account


Allow insecure authentication

This will allow guest authentication + insecure connections. In other words: this is required for Ubuntu to connect because the Samba package on 14.04 is not yet as secure as Windows 10

  • Run regedit
  • HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters
  • new parameter 32-bit DWORD
    • name: AllowInsecureGuestAuth
    • value: 1


Enable share on target folder(s) / drive(s)

Do the following on each folder / drive you'd like to share:

  • Right click > properties > sharing tab
  • Advanced sharing
  • Permissions
  • Add:
    • guest
    • guests
    • local account (ex: guillaume)
  • For each access set rights (ex: Full control if local PC only)


Test connection

Open a new command line (Windows run > cmd)

  • See all available accounts
net user


  • view local shares
net view \\myServer

#ex:
net view \\xinxiongmao


  • Connection test
net use \\myServer /u:myServer\myUser

#ex:
net use \\xinxiongmao\divers /u:xinxiongmao\guillaume


Enable guest account

This step is optional. Only do it to enable the guest account (not recommended)

  • Run cmd as administrator
  • net user guest /active:yes


References