I'm a relatively new user to Samba.? I'm running Linux Mint Silvia XFCE in a home environment on several machines and also have a Win10 machine that's my media server.? I'd like to be able to share files among all of the machines.? The office machine is my primary machine where I do most of my work.? I'd like to be able to put files I want to share in a shared location on the office machine and then access those files on the other machines. In the somewhat distant past (two or three years ago), I got Samba to work under Ubuntu and KDE doing what I described above, but I've not been able to reproduce it since moving to Mint and XFCE.? I've been able to find some guides on the web that I think I've followed carefully, but they haven't yielded success for me.? Part of my problem is a lack of understanding in regard to applying the right configuration to my situation.? I'm a fairly savvy computer guy, but not so much in the networking arena - I know enough to get myself into trouble, I suppose.? Reading the samba.org documentation, I'm just not sure where to start or which path to take to establish the correct configuration for my needs. So, If someone could help me understand the correct way to set up Samba to achieve my goals, I would be most appreciative.? Links to guides and/or tutorials would be great as would a beginner's explanation of how it works for the home user. Thanks in advance for the help. Bill Lugg
On 15/11/2019 21:09, William Lugg via samba wrote:> I'm a relatively new user to Samba.? I'm running Linux Mint Silvia > XFCE in a home environment on several machines and also have a Win10 > machine that's my media server.? I'd like to be able to share files > among all of the machines.? The office machine is my primary machine > where I do most of my work.? I'd like to be able to put files I want > to share in a shared location on the office machine and then access > those files on the other machines. > > In the somewhat distant past (two or three years ago), I got Samba to > work under Ubuntu and KDE doing what I described above, but I've not > been able to reproduce it since moving to Mint and XFCE. I've been > able to find some guides on the web that I think I've followed > carefully, but they haven't yielded success for me.? Part of my > problem is a lack of understanding in regard to applying the right > configuration to my situation.? I'm a fairly savvy computer guy, but > not so much in the networking arena - I know enough to get myself into > trouble, I suppose.? Reading the samba.org documentation, I'm just not > sure where to start or which path to take to establish the correct > configuration for my needs. > > So, If someone could help me understand the correct way to set up > Samba to achieve my goals, I would be most appreciative.? Links to > guides and/or tutorials would be great as would a beginner's > explanation of how it works for the home user. > > Thanks in advance for the help. > Bill Lugg >This all sort of depends on how you want to run Samba and partially on what the Win10 OS is, is it pro or home ? If you are setting up a new network, then, if it is Win 10 pro, you could set up an AD domain, see here: https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller If it is Win10 Home, then you are stuck with a workgroup, so see here: https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server I suggest you read those and then ask again ;-) Rowland
I have Win10 Home.> > I read through the corresponding link and followed the instructions > pretty much to the letter, just changing names, and removing guest > access because I don't want it.? When I test it using smbclient on the > server, I get "Connection to data_server failed (Error > NT_STATUS_UNSUCCESSFUL)". > > Here is my smb.conf: > [global] > ??? log file = /var/log/samba/%m > ??? log level = 1 > ??? workgroup = workgroup > > [guest] > ??? guest ok = no > > [data_server] > ??? path = /home/sambashare > ??? read only = no > Everything else was completed as described at > https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server. > > Any thoughts as to what I'm doing wrong or how I can troubleshoot this? > > Thanks > Bill Lugg > > > > On 11/15/19 3:53 PM, Rowland penny via samba wrote: >> On 15/11/2019 21:09, William Lugg via samba wrote: >>> I'm a relatively new user to Samba.? I'm running Linux Mint Silvia >>> XFCE in a home environment on several machines and also have a Win10 >>> machine that's my media server. I'd like to be able to share files >>> among all of the machines. The office machine is my primary machine >>> where I do most of my work.? I'd like to be able to put files I want >>> to share in a shared location on the office machine and then access >>> those files on the other machines. >>> >>> In the somewhat distant past (two or three years ago), I got Samba >>> to work under Ubuntu and KDE doing what I described above, but I've >>> not been able to reproduce it since moving to Mint and XFCE. I've >>> been able to find some guides on the web that I think I've followed >>> carefully, but they haven't yielded success for me.? Part of my >>> problem is a lack of understanding in regard to applying the right >>> configuration to my situation.? I'm a fairly savvy computer guy, but >>> not so much in the networking arena - I know enough to get myself >>> into trouble, I suppose.? Reading the samba.org documentation, I'm >>> just not sure where to start or which path to take to establish the >>> correct configuration for my needs. >>> >>> So, If someone could help me understand the correct way to set up >>> Samba to achieve my goals, I would be most appreciative. Links to >>> guides and/or tutorials would be great as would a beginner's >>> explanation of how it works for the home user. >>> >>> Thanks in advance for the help. >>> Bill Lugg >>> >> This all sort of depends on how you want to run Samba and partially >> on what the Win10 OS is, is it pro or home ? >> >> If you are setting up a new network, then, if it is Win 10 pro, you >> could set up an AD domain, see here: >> >> https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller >> >> >> If it is Win10 Home, then you are stuck with a workgroup, so see here: >> >> https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server >> >> I suggest you read those and then ask again ;-) >> >> Rowland >> >> >>
On 16/11/2019 01:20, William Lugg wrote:> I have Win10 Home. > > I read through the corresponding link and followed the instructions > pretty much to the letter, just changing names, and removing guest > access because I don't want it.? When I test it using smbclient on the > server, I get "Connection to data_server failed (Error > NT_STATUS_UNSUCCESSFUL)". > > Here is my smb.conf: > [global] > ??? log file = /var/log/samba/%m > ??? log level = 1 > ??? workgroup = workgroup > > [guest] > ??? guest ok = no > > [data_server] > ??? path = /home/sambashare > ??? read only = no > Everything else was completed as described at > https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server. > > Any thoughts as to what I'm doing wrong or how I can troubleshoot this? > > Thanks > Bill Lugg > > >OK, if I remove the default lines from your smb.conf, it becomes this: [global] ??? log file = /var/log/samba/%m ??? log level = 1 [guest] [data_server] ??? path = /home/sambashare ??? read only = no You may as well remove [guest], it is doing nothing. Did you create a Samba user with 'smbpasswd -a username' and did 'username' exist as a Unix user ? It is possible your problem is because, whilst your version of Samba is using ntlm auth, your Win10 machine isn't, turn on SMBv1 on your Win10 to confirm this. As your Linux Mint machine appears to be using Samba 4.3.11 (which is EOL as far as Samba is concerned), you might want to upgrade. Rowland
Yes, I created the unix user and a Samba user as instructed in the Wiki. According to the package manager, my Samba version is 4.7.6.? Would you say upgrading is still in order? The test I mentioned was entirely using Linux machines.? I first tried using smbclient from the Linux server machine (I'm not sure if this would actually work, but it seems like it should) and I also tried it from another Linux machine running the same version of Samba that yielded the same results.? After all that I did try the Win10 machine too and found it failed as well. Enabling SMB1 had no effect, the error is "The network path was not found."? Based on these errors, it really doesn't sound like a failure to log in, it sounds to me more like the share is simply not visible to the other machines on the network, regardless of the OS they are running.? I am stumped as to why this isn't working. FWIW, in doing some reading, I see that SMB1 is a security risk on Win10, so I'm disabling it for now.? I'd like to focus on getting Samba working on Linux to Linux communications first; Win10 would be the icing on the cake, so to speak. Thanks for the help. Bill Lugg On 11/16/19 1:30 AM, Rowland penny via samba wrote:> OK, if I remove the default lines from your smb.conf, it becomes this: > > [global] > ??? log file = /var/log/samba/%m > ??? log level = 1 > > [guest] > > [data_server] > ??? path = /home/sambashare > ??? read only = no > > You may as well remove [guest], it is doing nothing. > > Did you create a Samba user with 'smbpasswd -a username' and did > 'username' exist as a Unix user ? > > It is possible your problem is because, whilst your version of Samba > is using ntlm auth, your Win10 machine isn't, turn on SMBv1 on your > Win10 to confirm this. > > As your Linux Mint machine appears to be using Samba 4.3.11 (which is > EOL as far as Samba is concerned), you might want to upgrade. > > Rowland > >