Difference between revisions of "Windows 10 samba share configuration"
(Created page with "Category:Windows Configure Windows 10 shares =Create a local account= You need to create a dedicated shared account with no privileges. This is a LOCAL account only. *...") |
|||
Line 1: | Line 1: | ||
[[Category:Windows]] | [[Category:Windows]] | ||
− | |||
− | |||
Line 49: | Line 47: | ||
* view local shares | * view local shares | ||
− | <syntaxhighlight lang="powershell">net view \\myServer | + | <syntaxhighlight lang="powershell">net view \\myServer |
− | ex: | + | #ex: |
− | + | net view \\xinxiongmao</syntaxhighlight> | |
* Connection test | * Connection test | ||
− | <syntaxhighlight lang="powershell">net use \\myServer /u:myServer\myUser | + | <syntaxhighlight lang="powershell">net use \\myServer /u:myServer\myUser |
− | ex: | + | #ex: |
− | + | net use \\xinxiongmao\divers /u:xinxiongmao\guillaume</syntaxhighlight> | |
Revision as of 07:37, 3 December 2015
Contents
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
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: