[Samba] Can't Connect With New Install

Rowland penny rpenny at samba.org
Sun Jul 7 17:38:21 UTC 2019


On 07/07/2019 17:54, J Romans via samba wrote:
> Hello -
> I'm working on a project that when deployed I'll need wireless access for
> updates / configuration changes. I've installed Samba but can't get it to
> work. I can SSH and ping both the host name and IP, but no Samba.
> I've searched online for help and tried everything that sounded reasonable
> but I'm at a dead end. Here's some of the relevant info and I'd be glad to
> do any other troubleshooting recommended. If it's not obvious, I'm way out
> of my comfort zone so be gentle :-). Thanks.
>
> #smb.conf
> [global]
> protocol = SMB2
> workgroup = WORKGROUP
> log file = /var/log/samba/log.%m
> max log size = 1000
> log level = 2
> panic action = /usr/share/samba/panic-action %d
>
> server role = standalone server
> passdb backend = tdbsam
> obey pam restrictions = yes
> pam password change = yes
> map to guest = bad user
>
> [pihome]
> comment=pi home
> path=/home/pi/
> read only = no
> browsable = yes
> create mask = 0775
> directory mask = 0775
> valid users = %S
>
> share directory permissions:
> pi@<mypi>:/home $ ls -l
> total 4
> drwxrwsrwx 19 pi pi 4096 Jul  6 15:01 pi
>
> Win 10 when attempting to connect:
> Error code 0x80070035
> The network path was not found
>
> Win 10 Diagnostics:
> file and print sharing resource (<mypi>) is online but isn't responding to
> connection attempts. Detected Detected
>
> The remote computer isn’t responding to connections on port 445, possibly
> due to firewall or security policy settings, or because it might be
> temporarily unavailable. Windows couldn’t find any problems with the
> firewall on your computer.

Oh, how I hate the Raspberry pi Samba documentation, you should not be 
using a users homedirectory as a normal share.

Try this smb.conf:

[global]
     workgroup = WORKGROUP
     log file = /var/log/samba/log.%m
     max log size = 1000
     log level = 2
     panic action = /usr/share/samba/panic-action %d

     bind interfaces only = yes
     interfaces = lo wlan0
     unix password sync = yes

     server role = standalone server
     obey pam restrictions = yes
     pam password change = yes
     #map to guest = bad user

[homes]
     comment = Home Directories
     browseable = no
     read only = no
     create mask = 0700
     directory mask = 0700
     valid users = %S

[pishare]
     comment=pi home
     path=/home/pishare/
     read only = no
     browsable = yes
     create mask = 0775
     directory mask = 0775

Create the /home/pishare directory and users on the rpi, the users must 
be Unix and Samba users, see here for more info: 
https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server

Rowland





More information about the samba mailing list