nckberry
Posts: 4
Joined: Wed Sep 12, 2018 5:51 pm

Pi Zero W - Samba issue (not seen by Win 8.1)

Wed Sep 12, 2018 6:41 pm

Hi,

I set up a print server using Pi Zero W. I use Splix as my printer is an old Samsung SCX-4100.
CUPS is set properly, printer is detected and configured properly.

I also configured Samba to work with CUPS, and also enabling win_support and added the workgroup. I also tried to share the home/pi folder, but still, my PC doesn't see it. I enabled SMB 1.0 and CIFS on my PC, it sees my Roku on the network.
I am stuck with my Win 8.1 machine doesn't see the Pi. I think the problem is with the Samba on Pi.

I am not sure what I missed.
I really appreciate any input regarding my Samba configuration. :)

hortimech
Posts: 174
Joined: Wed Apr 08, 2015 5:52 pm

Re: Pi Zero W - Samba issue (not seen by Win 8.1)

Thu Sep 13, 2018 7:24 am

What Samba configuration ?
You haven't posted anything that helped, such as the smb.conf from the pi, or what version of Samba it is running (probably 4.5.12, but who knows ?)

People need to get used to no network browsing, you need SMBv1 for that and this is turned off on the latest Windows versions and I wouldn't put it past Microsoft to totally remove it.

nckberry
Posts: 4
Joined: Wed Sep 12, 2018 5:51 pm

Re: Pi Zero W - Samba issue (not seen by Win 8.1)

Fri Sep 14, 2018 4:24 am

hortimech wrote:
Thu Sep 13, 2018 7:24 am
What Samba configuration ?
You haven't posted anything that helped, such as the smb.conf from the pi, or what version of Samba it is running (probably 4.5.12, but who knows ?)

People need to get used to no network browsing, you need SMBv1 for that and this is turned off on the latest Windows versions and I wouldn't put it past Microsoft to totally remove it.
Hi, my apologies.
Please find attached is the samba config (I need to zip it because .conf is unsupported in the attachment).

The Samba version is 2:4.5.12+dfsg-2+deb9u3.

Yes, I already enabled SMBv1 on my Windows. I thought being able to see it in the network is a good test to make sure it connects.
I just tried to enable VNC on Pi, and the VNC Viewer on my Windows was unable to connect. I disabled my Firewall, still no luck. I also turned off AP Isolation on my router, no luck either. :?

Thank you.
Attachments
smb.zip
(3.63 KiB) Downloaded 26 times

hortimech
Posts: 174
Joined: Wed Apr 08, 2015 5:52 pm

Re: Pi Zero W - Samba issue (not seen by Win 8.1)

Fri Sep 14, 2018 10:08 am

OK, If I take your smb.conf and remove all the comments and default lines, I am left with this:

Code: Select all

[global]
   workgroup = WORKGROUP
   wins support = yes
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   server role = standalone server
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user
   usershare allow guests = yes
   printing = CUPS

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

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

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   read only = no
   guest ok = yes

[PiShare]
   comment = Pi Home
   path = /home/pi
   read only = no
   create mask = 0777
   directory mask = 0777
   
Which tells me you are running Samba as a standalone server with SMBv1 turned off, try adding 'ntlm auth = yes' to the [global] section and restart Samba.

nckberry
Posts: 4
Joined: Wed Sep 12, 2018 5:51 pm

Re: Pi Zero W - Samba issue (not seen by Win 8.1)

Sat Sep 15, 2018 6:41 am

hortimech wrote:
Fri Sep 14, 2018 10:08 am
OK, If I take your smb.conf and remove all the comments and default lines, I am left with this:

Code: Select all

[global]
   workgroup = WORKGROUP
   wins support = yes
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   server role = standalone server
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user
   usershare allow guests = yes
   printing = CUPS

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

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

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   read only = no
   guest ok = yes

[PiShare]
   comment = Pi Home
   path = /home/pi
   read only = no
   create mask = 0777
   directory mask = 0777
   
Which tells me you are running Samba as a standalone server with SMBv1 turned off, try adding 'ntlm auth = yes' to the [global] section and restart Samba.
Thank you. I tried it, still didn't work.
Btw, could it be something with the network, considering that even the VNC won't connect either?
But the weird thing is my PC can see my Roku.

hortimech
Posts: 174
Joined: Wed Apr 08, 2015 5:52 pm

Re: Pi Zero W - Samba issue (not seen by Win 8.1)

Sat Sep 15, 2018 9:58 am

Have you created any users on the rpi ?

To connect to 'PiShare', Samba must know the user.

Try reading this: https://wiki.samba.org/index.php/Settin ... one_Server

nckberry
Posts: 4
Joined: Wed Sep 12, 2018 5:51 pm

Re: Pi Zero W - Samba issue (not seen by Win 8.1)

Sat Sep 15, 2018 11:41 pm

hortimech wrote:
Sat Sep 15, 2018 9:58 am
Have you created any users on the rpi ?

To connect to 'PiShare', Samba must know the user.

Try reading this: https://wiki.samba.org/index.php/Settin ... one_Server
I see, I haven't created a user. Ok I will try it.

Btw, my main goal setting up Samba is not for sharing folder (that PiShare is just for a test).
My main goal is to make a print server. I am not sure why in the instruction websites I didn't see any mentioning about creating a user.
How do I use this Samba user credential to connect to the print server later?

hortimech
Posts: 174
Joined: Wed Apr 08, 2015 5:52 pm

Re: Pi Zero W - Samba issue (not seen by Win 8.1)

Mon Sep 17, 2018 4:17 pm

However you run Samba you need users, unless you run with 'map to guest = bad user' and 'guest ok = yes'.

Try reading this:

https://wiki.samba.org/index.php/Settin ... int_Server

Return to “Networking and servers”