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. Some entries from log.smbd (level 2 - I could bump this up of course): [2019/07/07 08:50:40.961243, 2] ../source3/lib/interface.c:345(add_interface) added interface wlan0 ip=w.x.y.z bcast=w.x.y.255 netmask=255.255.255.0 [2019/07/07 08:50:40.961485, 1] ../source3/profile/profile_dummy.c:30(set_profile_level) INFO: Profiling support unavailable in this build. [2019/07/07 08:50:40.992733, 0] ../lib/util/become_daemon.c:124(daemon_ready) STATUS=daemon 'smbd' finished starting up and ready to serve connections [2019/07/07 08:50:40.996164, 1] ../source3/printing/printer_list.c:234(printer_list_get_last_refresh) Failed to fetch record! [2019/07/07 08:50:40.996397, 2] ../source3/smbd/server.c:1388(smbd_parent_loop) waiting for connections [2019/07/07 08:50:41.004359, 2] ../lib/util/tevent_debug.c:66(samba_tevent_debug) samba_tevent: EPOLL_CTL_DEL EBADF for fde[0x17186e0] mpx_fde[(nil)] fd[15] - disabling Thanks in Advance J. Hal Romans Equipment Engineer Nano3 Cleanroom Facility University of California San Diego ReplyForward
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
Thanks for your help. I followed your suggestions and I'm getting basically the same thing. I used your suggested smb.conf and created /home/pishare: <mypi>:/ $ ls -l -d /home/pishare drwxrwsr-x 2 root root 4096 Jul 7 12:17 /home/pishare "pi" is a Unix and a Samba user. Attempting to logon from Win 10 gives the same error messages. Testing the connection as suggested in the wiki.samba reference you mentioned produces: <mypi>:/ $ smbclient -U pi //home/pishare Enter pi's password: Connection to home failed (Error NT_STATUS_IO_TIMEOUT)> 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 > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >