Windows 10: Creating a samba share in windows 10

Discus and support Creating a samba share in windows 10 in Windows 10 Network and Sharing to solve the problem; I've been using unauthenticated samba share on my computer for well over a decade using windows 7, vista, and XP (and maybe even further back) to... Discussion in 'Windows 10 Network and Sharing' started by pmennen, Jan 12, 2017.

  1. pmennen Win User

    Creating a samba share in windows 10


    I've been using unauthenticated samba share on my computer for well over a decade using windows 7, vista, and XP (and maybe even further back) to network with various devices in another room via an ethernet cable. I believe Microsoft removed unauthenticated samba shares from windows 10 because they thought it was insecure. So since my computer updated automatically to windows 10 those other devices are no longer able to see anything on my network. I have seen that a few other windows 10 users have been able to re-enable such samba shares, although I have tried all the tricks they have used and have never been able to get it to work. Since my other devices have the ability to enter a CFIS username and password, another possibility would be to create an authenticated samba share in windows 10. Since this would be more secure, I wouldn't think Microsoft would remove such a feature, however I haven't been able to figure out how to do this either. Does anyone know if windows 10 includes support for this type of networking (which seems to be required to network with most linux devices) and if so, how do I enable such a share and define the CFIS username and password?

    Thanks
    ~Paul

    :)
     
    pmennen, Jan 12, 2017
    #1
  2. DavinF Win User

    Network shares can no longer be accessed after September 16th security update

    A couple of other updates:

    I tried creating HKLM\System\CurrentControlSet\Services\LanmanWorkstation\Parameters\AllowInsecureGuestAuth DWORD and setting it to 1, and it hasn't helped.

    Looks like
    this person
    might be having a related issue.

    It is a version 3.6 Samba server set up to appear as an NFS volume, and use anonymous authentication.
     
    DavinF, Jan 12, 2017
    #2
  3. EckiS Win User
    EckiS, Jan 12, 2017
    #3
  4. jimbo45 Win User

    Creating a samba share in windows 10

    Hi there

    @pmennen

    Not sure what Linux distro you've got - I'm using CENTOS 7

    For SAMBA ensure latest packages are installed - you need the SERVER (and the client as well if you want to see Shares on your Linux system from other Linux systems / Windows systems).

    On Windows and the Linux system create accounts (users) with passwords who can access the shares
    On the Linux system allow SAMBA through any firewall -- for testing I'd switch firewalls off on BOTH Linux and Windows to get the thing working

    once SAMBA is up and running

    on the Linux side -- first create your smb.config file -- will show that later in this post.

    Ensure the files are mounted on the Linux system. I'll share 2 entire HDD's which are /dev/sdb and /dev/sdc and I'll mount to mnt/DV1 and /mnt/DV2. ( Simply create READ / WRITE empty directories in /mnt.

    to mount

    mount /dev/sdb -t auto -o rw /mnt/DV1
    mount /dev/sdc -t auto -o rw /mnt/DV2

    now for the samba bits

    1) as root or sudo ---enter this commands
    smbpasswd -a user password where user = user and password = users password. This only needs to be done once.

    2) after each boot start the samba daemons -- service smb start, service nmb start. Note on some Linux distros the daemons might be smbd and nmbd and you might need systemctl service command rather than just service.

    3) use a smb.conf file similar to this -- has a very simple config and almost now security but easy for testing. Once you've got it all working you can then tighten up security. The file usually resides in /etc/samba


    #======================= Global Settings =====================================

    [global]
    max protocol = SMB3
    # can set it to SMB2 if you want experimental SMB2 support.
    #
    workgroup = WORKGROUP
    server string = Samba Server Version %v

    ; max protocol = SMB2

    log file = /var/log/samba/log.%m
    max log size = 50
    security = user
    passdb backend = tdbsam
    name resolve order = bcast host lmhosts wins

    load printers = yes
    cups options = raw

    ; printcap name = /etc/printcap
    # obtain a list of printers automatically on UNIX System V systems:
    ; printcap name = lpstat
    ; printing = cups


    #============================ Share Definitions ==============================

    [homes]
    comment = Home Directories
    browseable = yes
    writable = yes
    valid users = %S

    [printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    guest ok = no
    writable = no
    printable = yes

    [HDD1]
    comment HDD1
    path = /mnt/DV1
    guest ok = yes
    writeable = yes
    browseable = yes

    [HDD2]
    comment HDD2
    path = /mnt/DV2
    guest ok = yes
    writeable = yes
    browseable = yes


    On the Windows system you should see HDD1 and HDD2 under the computer when you map the network

    Mount these as network drives (file explorer --> connect network drive).

    I'd stop windows firewall to while testing -- both inbound and outbound.

    Note after SAMBA start Windows takes a few minutes before it sees the updated network.


    Creating a samba share in windows 10 [​IMG]


    Attachment 117217

    I'm using latest version of W10 PRO X-64. Latest updates applied too.

    On your Linux system you should be able to see the SAMBA connections in your file browser easily enough too.


    Creating a samba share in windows 10 [​IMG]


    Cheers
    jimbo
     
    jimbo45, Jan 14, 2017
    #4
  5. pmennen Win User
    Hi Jimbo45. Thanks a lot for your reply, although maybe you misinterpreted my question. I think you were showing me how to share a disk on the Linux system with my windows 10 system (although I didn't understand your answer very will, so perhaps I am mistaken). But what I asked in my email was the other way around. I want to share a disk on my windows system with the other device. I should have said what the other device was (A bluray player) because although I am almost certain it is running linux internally I have no access to that. The only relevant thing I can configure relating to this device is that I can enter a CFIS username and password (which I have never needed before.)

    If I hook up an old laptop I have running windows XP, the bluray player can see the disks on that laptop (no CFIS password required). But I really want it to see the disks on my desktop computer as it used to. Now that windows has updated itself (to windows 10) this no longer works. I was hoping I could simply create a samba share for one of my disks on the desktop computer so that the bluray player can browse (and play) the files and folders on that disk. An unauthenticated share would be the most convenient since then I don't have to enter a CFIS username and password on the bluray player, however I think I have to give up on that since I have been trying that approach for many months with no success. The next best thing would be an authenticated share. Perhaps you were telling me how to do that, although I'm not sure. (There is no samba folder under windows\system32\drivers\etc).

    ~Paul
     
    pmennen, Jan 14, 2017
    #5
  6. clam1952 Win User
    Should be working out of the box? Just check you have smb1.0/CIFS File sharing support enabled in Control Panel\All Control Panel Items\Programs and Features > Windows Features, should be ticked by default however worth checking.
    If it needs enabling you may need to reboot for it to kick in.

    Might also be worth turning all the networked stuff off and making sure the PC starts first.
     
    clam1952, Jan 14, 2017
    #6
  7. bro67 Win User
    Did you go in and finish installing the rest of Samba? The Linux distros do not always load the complete package of Samba. The default smb.conf will work fine. Just make sure that you create a Samba User and Password.
     
    bro67, Jan 15, 2017
    #7
  8. pmennen Win User

    Creating a samba share in windows 10

    Thanks for the suggestion clam1952, but it seems that there must be more to it than that, because I see that the checkbox in front of samba/CIFS file sharing is already checked yet that is not enough. With my winXP computer, all that was necessary was to set the disk to shared with permissions to "everyone", and then right away the bluray player (linux device) could see the computer and the shared disk. I do the same thing on my win10 computer but the linux device can't see the win10 computer. I'm guessing windows 10 wants me to set up a CIFS username and password, but if so I have never seen a method of doing this, nor has anybody been able to tell me how it is done.

    (BTW, thanks for the reply bro67 but I don't think you have been reading the whole thread. I'm trying to configure windows 10, not linux.)
     
    pmennen, Jan 15, 2017
    #8
  9. bro67 Win User
    You have to make sure that the full Samba package is installed in your Linux Distro. The default smb.conf will work. Jimbo spelled it out on the way he has his network setup and it works. CIFS you can toss that out of your head, since it does not work with SAMBA, because CIFS is Microsoft only. They wrote their own version of Samba that is actually running on code from early 3.0 code, but will work if you make sure as I stated, that the full Samba package is installed.

    Be careful on what tools you use if you are using a GUI version of Linux. It will wreck havoc with the smb.conf. You may want to reset the network services on the Windows 10 machine by using Farbar's minitoolbox and Service Scanner. Also third party security software can cause issues, along with the network adapter not set for Private network.

    Jimbo has been doing this a little longer than I have with Linux. That is only because I took a break from computers for about three years while I was in the Navy and was working with AS/400 systems onboard for the stuff that we had to deal with.

    I use a Synology NAS for all sharing and never had an issue with connecting to it with any version of Windows 10. You could just be dealing with a layer of problems, especially if you did a in place upgrade and not a clean install of Windows 10.
     
    bro67, Jan 15, 2017
    #9
  10. jimbo45 Win User
    Hi there

    @pmennen

    It's absolutely "Easy Peasy" sharing Windows with Linux and accessing Windows files which is what I believe you want to do.

    Note - check though package ntfs-3g is installed on the Linux system - most distros have it installed by default --I'm using CENTOS 7 which need me to install if from the repository. This package adds the READ / WRITE element for NTFS into the linux kernel as module fuse. Ensures you have READ / WRITE ability on NTFS.

    1) ensure the Windows HDD's are SHARED


    2) You still need SAMBA on the Linux system as I mentioned on the previous post - just have an smb.conf file with no shares defined (or a "dummy share"). You will need the Global section and ensure the search order is as I've done it in my smb.conf file. Also add user and password with the smbpasswd command (as root / sudo).

    You need to start services smb and nmb or smbd and nmbd depending on your distro as well.

    3) then on your Linux system you should see something like this when accessing the Windows drives

    (The initial connection will ask for User and password --enter Windows user and password)

    Here I've got Drive "C" as shared -- Linux sees it with no problems. Ensure passwords and users match on both systems -- it's the easiest way to do it.

    Samba is by far the simplest way instead of using import / export / NFS and all the other ways Windows can hose up networking.

    If you leave most of the "Business end" of networking to Linux - even Windows can connect easily enough.

    Allow though your firewall to allow connections (Windows) both in and outbound depending on what you want to do.

    Here's the images from SAMBA on Linux --Drive "C" is the Windows shared HDD on the HP server I've named Blackdog. (That's the Windows computer name on the windows system - both computers in the same workgroup - called workgroup).


    Creating a samba share in windows 10 [​IMG]



    Creating a samba share in windows 10 [​IMG]


    Cheers
    jimbo
     
    jimbo45, Jan 15, 2017
    #10
  11. clam1952 Win User
    Have a look here? [SOLVED] Windows 10 and SMB

    @bro67 I don't think the OP is using a Linux distro but devices with embedded Linux Operating systems which are not usually editable.
     
    clam1952, Jan 15, 2017
    #11
  12. jimbo45 Win User
    Hi there

    @clam1952

    The OP wants to access Windows shares FROM the Linux boxes - not the other way around which is what the link refers to --accessing his Linux files FROM Windows !!!!.

    If using an Android phone / tablet try installing ES file explorer (on the android device) --- this will scan a LAN and pick up Windows systems --you'll have to log in with User / Password the first time.

    You need to ensure firewalls (on Windows) have permissions to handle in / outbound connections.

    If using a smart TV then your system will be able to handle WINDOWS locally attached devices - but NOT network shared drives on that Windows system networked from other Linux systems.

    If using things like Chrome / Amazon Fire sticks etc PLEX media server will be able to handle any network attached devices to the windows system as well as local drives. Things like VLC though running on the Amazon fire stick / Chromecast device won't be able to see network attached devices on Windows but no problem accessing local drives.

    It really depends on what you want to do with Windows files when accessing from other devices.

    Using a NAS is the easiest and most flexible of course --especially if you install your own Linux system on your NAS --some of those cheap "Cube" type servers are ideal for that purpose --you don't need a huge amount of CPU power for simple file sharing. I find the HP micro server Proliant 8's just fine --you can load up to 4 HDD's on the cube and a separate half size graphics card -- also built in RAID 1 / 0.

    Even a Celeron CPU is normally just fine - transcoding won't kill the CPU and of course these servers are built to run 24 hrs a day 7 days a week consuming little power --far superior to any domestic laptop / desktop for this stuff.

    I'm not in favour of a "dedicated" NAS box with a proprietary OS in it for obvious reasons - however on some of these you can install a few things such as SAMBA and PLEX. If you can handle Linux - using your OWN distro on a small server IMO is the simplest and most productive way of both file and multi-media serving to a whole slew of devices (and Linux Networking usually works first time straight out of the box).

    Like all these things YMMV but without knowing exactly the OP's setup and what he actually wants to do it's harder to give any more help.

    Cheers
    jimbo
     
    jimbo45, Jan 15, 2017
    #12
  13. pmennen Win User

    Creating a samba share in windows 10

    Ok, I tried that on my phone with ES file explorer and it does connect and is able to see the files on my desktop computer. One confusing thing was that if the computer is using a microsoft account for the password, when another windows computer asked for the credentials you can use both the microsoft username (usually an email address) and the microsoft password. However with an android device, you still use the microsoft password, but you must use the user name of the local account. Otherwise it doesn't work. (Couldn't find this documented, but found out by trial and error).

    Anyway what this leads me to is that authenticated samba/cifs (or whatever it's called) works fine on windows 10, so my only conclusion is that the bluray player I'm trying to interface with does not support authenticated samba/cifs. It does have a menu to enter the cifs username and password, but that doesn't mean it actually works. So I either need to swap that device out with one that works properly, or a cheaper way would be to use unauthenticated sharing (which I know works because I have used that before with windows 7 and winXP).

    clam1952 wrote>Had this problem too - it's because Win10 insists on an authenticated SMB login.>You can disable it by creating the following value (a DWORD):>HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters\AllowInsecureGuestAuth>S et the value to 1 , it should work straight away then.

    Yes, I had seen clam1952's suggestion before and I have already entered that key. (See attached image).
    However windows 10 still seems to require authentication with a username and password. So I'm still have not found
    any luck with that approach.

    Creating a samba share in windows 10 [​IMG]
     
    pmennen, Jan 18, 2017
    #13
  14. bro67 Win User
    You have to go into the settings for that Windows login by pressing the i in the circle. Then turn on "Show Admin Shares". I have mine set to also show Hidden Files. Support DFS is turned off, since it is for my Synology NAS. On my iPhone I use Net Analyzer to show all devices on my network and the Speed test is pretty spot on.
     
    bro67, Jan 18, 2017
    #14
  15. pmennen Win User
    Are you on my last topic (i.e. how to enable unauthenticated shares)? [That's the main thing I now want to get out of this thread.]
    What windows login are you talking about? I don't think I have a windows login since I have disabled using passwords for login. When I turn on the computer, it goes immediately to my desktop. Also what does "i in the circle" refer to? I don't ever remember seeing anything that looks like an i in a circle. Also I don't know what Admin shares are. When I access my computer from the Android ES file manager, in addition to (for example) drive E (which has all my work files and folders in it) I also see something called E$. Is that the Admin share? If so, what is its value? When I select it from ES file manager it doesn't show anything in it.
    Sorry for all the stupid questions, but I don't speak "network" ... just plain old English.
     
    pmennen, Jan 18, 2017
    #15
Thema:

Creating a samba share in windows 10

Loading...
  1. Creating a samba share in windows 10 - Similar Threads - Creating samba share

  2. Connecting to a Samba Share

    in Windows 10 Network and Sharing
    Connecting to a Samba Share: I am trying to connect to a samba share. There are two users on the machine. user1 was able to access the share drive and map the share on the machine. user2 was able to access the folders. the next day user1 could not access the drives that were mapped nor could they...
  3. XP to NAS / SAMBA shares

    in Windows 10 Virtualization
    XP to NAS / SAMBA shares: Hi folks If you have XP VM's and you want to access SAMBA type shares then you'll need to add these 2 lines in the global section of the samba.conf file. (Note on the NAS / SAMBA server file. There's nothing extra to do on the XP system. (The NAS can usually by default...
  4. Cannot access Samba share

    in Windows 10 Network and Sharing
    Cannot access Samba share: Hi, I have a few Windows 10 computers and some linux computers on my network. I use Samba to enable sharing between the Windows and Linux computers. On one of the Windows computer I have a Storage Spaces drive set up as a Samba share. I can access some of the folders on this...
  5. Linux Samba settings to display Windows shares

    in Windows 10 Virtualization
    Linux Samba settings to display Windows shares: Hi folks Samba needs a different setting to display Windows or any of the SAMBA shares - especially if its version of Linux / NAS server needs / uses SMB1 You still need to set the SMB1 option in Add features to windows of course. also in the samba config file ensure this...
  6. Samba share doesn't work

    in Windows 10 Network and Sharing
    Samba share doesn't work: Hi, I have Vbox with Ubuntu Server 14.04 LTS installed on it. My host is Win 10 (Version 10.0.10240 Build 10240). I've tried to get my samba share working for the whole day. I asked in #Windows, #ubuntu, #samba, #php, everywhere. I've googled and googled and googled.......
  7. Unable to See Samba Share

    in Windows 10 Network and Sharing
    Unable to See Samba Share: Hi everyone, I'll try to keep it short. I have a headless ubuntu server that has a samba server. It's connected to the network with a cable (not wifi) and has a static IP. My desktop (also wired with static IP) is unable to see the samba share at all: not when I go to the...
  8. Cannot connect to SAMBA shares on CENTOS7

    in Windows 10 Network and Sharing
    Cannot connect to SAMBA shares on CENTOS7: Hello everyone, I'm having this very annoying issue with samba shares. The server is running on a CentOS 7 distro with samba-4.1.12-23.el7_1.x86_64. My Windows 10 build is 10240. The shares are visible but when I try to connect it waits a while and then gives me this...
  9. Samba shares TO Windows 10 now working OK (finally !!!!!)

    in Windows 10 Network and Sharing
    Samba shares TO Windows 10 now working OK (finally !!!!!): Hi there after trying all of the zillion suggestions on the Forum about getting an INBOUND connection from SAMBA (NAS Server) to access W10 shares (the OTHER way around from W10 TO the NAS wasn't a problem) it's finally working. What I did was: 1) delete the W10 clean...
  10. Can't access Samba shares on 10049

    in Windows 10 Network and Sharing
    Can't access Samba shares on 10049: I just reinstalled after I was having issues. Everything seems to be working smoothly, except that I can't access the shares on all but one of my other computers for some reason. Most devices that aren't running either some flavor of Windows or Samba show up just fine. I...

Users found this page by searching for:

  1. create samba share on windows

    ,
  2. create a samba share on windows 10

    ,
  3. how to create samba share windows 10

    ,
  4. win10 pro allow unauthenticated shares