Samba (File Server) - Disable Printers

by
Jeremy Canfield |
Updated: January 08 2023
| Samba (File Server) articles
By default, /etc/samba/smb.conf has the following, which is used to share printers.
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
Updating /etc/samba/smb.conf to have the following will make it so that Samba does not share printers.
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
Did you find this article helpful?
If so, consider buying me a coffee over at