My opensuse 15.6 cups server on IPP works perfectly. I would like to use the old method as well, going through samba. Below is my smb.conf file.
Just cannot see my share printers. The smb.conf is my personal file.
preferred master = yes
local master = yes
workgroup = WORKGROUP
passdb backend = tdbsam
usershare allow guests = yes
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
use client driver = yes
load printers = yes
map to guest = Bad User
logon path = \%L\profiles.msprofile
logon home = \%L%U.9xprofile
logon drive = P:
netbios name = opensuse-pc
os level = 33
name resolve order = bcast host lmhosts wins
wins support = Yes
public = yes
unix password sync = Yes
server min protocol = SMB2_10
obey pam restrictions = yes
pam password change = yes
usershare owner only = false
usershare path = /var/lib/samba/usershares
[homes]
valid users = %S,%D%w%S
browseable = no
inherit acls = Yes
comment = Home Directories
read list = %S,%D%w%S
;[profiles]
; comment = Network Profiles Service
; path = %H
; read only = No
; store dos attributes = Yes
; create mask = 0600
; directory mask = 0700
;[users]
; comment = All users
; path = /home
; read only = No
; inherit acls = Yes
; veto files = /aquota.user/groups/shares/
;[groups]
; comment = All groups
; path = /home/groups
; read only = No
; inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
On another server. I have managed to see the printers. But Windows 11 will not add the printer, when I’m using the method
Add Printer
Select a shared printer by name. I can select the printer but Windows 11 will not continue adding the printer and complete the process of making it work.
I assume you are aware of the fact that Leap 15.6 is end of life and that not many users here will still have one running. Thus comparing their configuration with your’s will always be hampered by possible version differences.
For Windows 11 the preferred approach is to se IPP directly (what you already have working).
Or rather than relying on discovery, you could try adding the samba-hosted printer manually: Add printer > “The printer that I want isn’t listed” > “Add a local printer” > Create new port > Local Port > Port name: \\opensuse-pc\printername
Your smb.conf file seems incomplete, or at least you didn’t post if complete. The top part should be under the '[global]` section. In general, please always post such output as pre-fomatted text (refer to the </> button in the forum editor.
A good idea to share the results from testparm -s smbclient -L localhost -N lpstat -t
This information will show whether Samba is actually exporting the printers correctly.
Regarding the use client driver = yes directive, this tells Windows to use its own local drivers. That is usually the correct choice nowadays. But it also means Windows must already have a compatible driver available locally. So make sure that is true with respect to your Windows host(s).
I am testing the new Leap 16.0. I do prefer YAST gui, I do like to show the Windows World that Linux also has Graphical Wizards. I do also run Kubuntu.
testparm -s
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)
Server role: ROLE_STANDALONE
# Global parameters
[global]
logon drive = P:
logon home = \\%L\%U\.9xprofile
logon path = \\%L\profiles\.msprofile
map to guest = Bad User
name resolve order = bcast host lmhosts wins
obey pam restrictions = Yes
os level = 33
pam password change = Yes
preferred master = Yes
printcap name = cups
server min protocol = SMB2
unix password sync = Yes
usershare allow guests = Yes
usershare owner only = No
wins support = Yes
idmap config * : backend = tdb
cups options = raw
guest ok = Yes
use client driver = Yes
[homes]
browseable = No
comment = Home Directories
inherit acls = Yes
read list = %S %D%w%S
valid users = %S %D%w%S
[printers]
browseable = No
comment = All Printers
create mask = 0600
path = /var/tmp
printable = Yes
[print$]
comment = Printer Drivers
create mask = 0664
directory mask = 0775
force group = ntadmin
path = /var/lib/samba/drivers
write list = @ntadmin root
smbclient -L localhost -U%
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
tmp Disk
drives Disk
onedrive Disk
IPC$ IPC IPC Service (Samba 4.19.9-git.435.78ced6cf30d150600.3.21.1SUSE-oS15.0-x86_64)
SMB1 disabled -- no workgroup available
smbclient -L localhost -N
Anonymous login successful
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
tmp Disk
drives Disk
onedrive Disk
IPC$ IPC IPC Service (Samba 4.19.9-git.435.78ced6cf30d150600.3.21.1SUSE-oS15.0-x86_64)
SMB1 disabled -- no workgroup available
lpstat -t
scheduler is running
system default destination: LBP3100-LBP3108-LBP3150
device for Canon-LBP3100-CAPT: ccp://localhost:59687
device for Deskjet-2510-series: hp:/usb/Deskjet_2510_series?serial=CN34P37JYW05TX
device for LBP3100-LBP3108-LBP3150: ccp://localhost:59787
device for LBP3100-LBP3108-LBP3150-2: usb://Canon/LBP3100/LBP3108/LBP3150?serial=0000A1A3M5hp
device for TE200: usb://TSC/TE200?serial=000001
Canon-LBP3100-CAPT accepting requests since Sat 16 May 2026 10:46:57 SAST
Deskjet-2510-series accepting requests since Mon 29 Dec 2025 16:20:41 SAST
LBP3100-LBP3108-LBP3150 accepting requests since Tue 17 Mar 2026 06:37:34 SAST
LBP3100-LBP3108-LBP3150-2 accepting requests since Sat 16 May 2026 17:38:51 SAST
TE200 accepting requests since Tue 21 Apr 2026 17:05:59 SAST
printer Canon-LBP3100-CAPT is idle. enabled since Sat 16 May 2026 10:46:57 SAST
printer Deskjet-2510-series is idle. enabled since Mon 29 Dec 2025 16:20:41 SAST
printer LBP3100-LBP3108-LBP3150 is idle. enabled since Tue 17 Mar 2026 06:37:34 SAST
printer LBP3100-LBP3108-LBP3150-2 is idle. enabled since Sat 16 May 2026 17:38:51 SAST
printer TE200 disabled since Tue 21 Apr 2026 17:05:59 SAST -
Paused
[global]
preferred master = yes
local master = yes
workgroup = WORKGROUP
passdb backend = tdbsam
usershare allow guests = yes
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
use client driver = yes
load printers = yes
map to guest = Bad User
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
netbios name = opensuse-pc
os level = 33
name resolve order = bcast host lmhosts wins
wins support = Yes
public = yes
unix password sync = Yes
server min protocol = SMB2_10
obey pam restrictions = yes
pam password change = yes
usershare owner only = false
usershare path = /var/lib/samba/usershares
[homes]
valid users = %S,%D%w%S
browseable = no
inherit acls = Yes
comment = Home Directories
read list = %S,%D%w%S
;[profiles]
; comment = Network Profiles Service
; path = %H
; read only = No
; store dos attributes = Yes
; create mask = 0600
; directory mask = 0700
;[users]
; comment = All users
; path = /home
; read only = No
; inherit acls = Yes
; veto files = /aquota.user/groups/shares/
;[groups]
; comment = All groups
; path = /home/groups
; read only = No
; inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
I don’t normally do samba printing, but in an effort to assist I did sudo cupsctl --share-printers
and then sudo systemctl restart smb
I get
~> smbclient -L localhost -N
Anonymous login successful
Sharename Type Comment
--------- ---- -------
profiles Disk Network Profiles Service
users Disk All users
print$ Disk Printer Drivers
IPC$ IPC IPC Service (Samba 4.23.6-git.466.1a6b75cb2081.0.2.2.sr20260402SUSE-oS16.9-x86_64)
Fax-test Printer
Brother_DCP-7055 Printer Brother DCP-7055
Ricoh Printer
nobody Disk Home Directories
SMB1 disabled -- no workgroup available
This suggests Samba is happily auto-exporting whatever CUPS marks as shared.
I reposed my smb.conf with the above formatting
The strange thing if you look at my smb.conf settings those lines of text are there. Why testparm would show it was missing is a mystery.
Still not showing printers when I do smbclient -L localhost -N