[SOLVED] Can use Windows10 shares but not printer

Kernels & Hardware, configuring network, installing services

[SOLVED] Can use Windows10 shares but not printer

Postby RogerTunnicliffe » 2020-09-18 23:56

Hi,

I have just installed Debian Buster after a number of years with other distributions. I am getting a problem (and I am guessing it's samba) where I can see (and use) our Windows10 box's shares, but I cannot access it's printer.
This has worked fine for a number of years using Mint but has often been the last problem solved when using a new distro.

The following is one error message of many (when I changed smb.conf)

smbclient -L //192.168.0.2 -U roger
Unable to initialize messaging context
Enter WORKGROUP\roger's password:

Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
Brother Printer HL-1110 series
C$ Disk Default share
Canon Printer Canon MX870 series Printer
IPC$ IPC Remote IPC
jessica Disk
print$ Disk Printer Drivers
roger Disk
Users Disk
Reconnecting with SMB1 for workgroup listing.
do_connect: Connection to 192.168.0.2 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
Failed to connect with SMB1 -- no workgroup available

smbtree
Unable to initialize messaging context
WORKGROUP
\\VIRTUAL-XP Virtual-XP Description
\\UPSTAIRS Samba 4.9.5-Debian
\\UPSTAIRS\IPC$ IPC Service (Samba 4.9.5-Debian)
\\UPSTAIRS\print$ Printer Drivers
\\UPSTAIRS\roger Home Directories
\\COMPUTERROOM COMPUTERROOM <---- This is the wondows 10 machine

Things I know so far.
We have a Windows/Apple/Linux home network.
Everything (non virtual) machine works fine
I have set Windows10 up to use SMB1
I have tried many smb.conf combinations
VirtualBox - Windows 10 - works fine
VirtualBox - Windows 7 - works fine
VirtualBox - XP - NOT fine [error: the credentials supplied are not sufficient to access the printer]

I am guessing it is some sort of security/access problem but cant confirm. One interesting thing is the extract from my config file:-
[printers]
comment = All Printers
browseable = yes
path = /var/spool/samba
printable = yes
guest ok = yes
read only = yes
create mask = 0700

and the output from testparm -s
[printers]
browseable = No
comment = All Printers
create mask = 0700
guest ok = Yes
path = /var/spool/samba
printable = Yes

browseable has gone from Yes to No ??

I have done a great deal of googling and have tried many things (but now too many to get anything other than confused).
I wonder if anyone here can help me.

Thanking you in advance
cheers
roger
Last edited by RogerTunnicliffe on 2020-09-25 22:32, edited 1 time in total.
RogerTunnicliffe
 
Posts: 3
Joined: 2020-09-18 23:07

Re: Can use Windows10 shares but not printer

Postby RogerTunnicliffe » 2020-09-20 01:21

further to this:-
I have enabled netBIOS over TCP on the windows machine
I have altered the Windows Group Policy to allow insecure logons.
The following looks kinda odd:- (Different results depending on if I use the IP address or the netBIOS name ??
the 2nd example does not error but it also does not show a server or a workgroup

Unable to initialize messaging context
Enter WORKGROUP\roger's password:

Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
Brother Printer HL-1110 series
C$ Disk Default share
Canon Printer Canon MX870 series Printer
IPC$ IPC Remote IPC
jessica Disk
print$ Disk Printer Drivers
roger Disk
Users Disk
Reconnecting with SMB1 for workgroup listing.
do_connect: Connection to 192.168.0.2 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
Failed to connect with SMB1 -- no workgroup available

roger@UPSTAIRS:~$ smbclient -L //COMPUTERROOM
Unable to initialize messaging context
Enter WORKGROUP\roger's password:

Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
Brother Printer HL-1110 series
C$ Disk Default share
Canon Printer Canon MX870 series Printer
IPC$ IPC Remote IPC
jessica Disk
print$ Disk Printer Drivers
roger Disk
Users Disk
Reconnecting with SMB1 for workgroup listing.

Server Comment
--------- -------

Workgroup Master
--------- -------
RogerTunnicliffe
 
Posts: 3
Joined: 2020-09-18 23:07

Re: [SOLVED] Can use Windows10 shares but not printer

Postby RogerTunnicliffe » 2020-09-25 22:33

As strange as this might seem this was actually a problem with a printer driver and not samba.
Having secured the "more" appropriate driver the printer installed correctly and is usable.
RogerTunnicliffe
 
Posts: 3
Joined: 2020-09-18 23:07


Return to System configuration

Who is online

Users browsing this forum: arzgi, Bernoot and 21 guests

fashionable