Difference between revisions of "Windows 10 samba share configuration"
Line 70: | Line 70: | ||
− | References | + | =References= |
* https://www.maketecheasier.com/create-guest-account-windows-10/ | * https://www.maketecheasier.com/create-guest-account-windows-10/ | ||
* http://www.dedoimedo.com/computers/windows-10-network-share-access.html | * http://www.dedoimedo.com/computers/windows-10-network-share-access.html | ||
* http://superuser.com/questions/1006725/what-happens-to-a-guest-account-when-upgrading-from-windows-7-to-windows-10 | * http://superuser.com/questions/1006725/what-happens-to-a-guest-account-when-upgrading-from-windows-7-to-windows-10 |
Latest revision as of 07:38, 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