[Samba] Can't Install Printer Drivers

Banks, David (db2d) db2d at virginia.edu
Fri Jun 14 13:54:45 UTC 2019


Hi All,

Wondering if anyone has seen this before. I have a new server set up with Ubuntu 18.04 with samba 4.7.6-Ubuntu and CUPS. Everything proceeds OK with connecting windows Print Manager until I try to install a driver, then I get unable to install driver error “The network name cannot be found.”

Watching the syslog on the server I get “_spoolss_AddPrinterDriverEx: move_driver_to_download_area failed - WERR_BAD_NET_NAME”.

After bumping the log level up to 10 I get no further info. So I can’t tell where it’s trying to move file to or what Net Name is bad.

Watching the path for print$ I can see a new folder created with a GUID type name — {XXXX-yy….}. This gets deleted after I hit OK on the error dialog.



testparm -
[global]
	bind interfaces only = Yes
	client ipc min protocol = SMB2
	client signing = if_required
	deadtime = 10
	dedicated keytab file = /etc/krb5.keytab
	disable netbios = Yes
	dns proxy = No
	keepalive = 60
	kerberos method = secrets and keytab
	log file = /var/log/samba/log.%m
	machine password timeout = 0
	map to guest = Bad User
	max log size = 1000
	obey pam restrictions = Yes
	pam password change = Yes
	panic action = /usr/share/samba/panic-action %d
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	passwd program = /usr/bin/passwd %u
	printcap name = /etc/printcap
	realm = {FULL_DOMAIN_NAME}
	restrict anonymous = 2
	security = ADS
	server min protocol = SMB2
	server role = member server
	server string = %h server (Samba, Ubuntu)
	smb ports = 445
	template homedir = /home/%U
	template shell = /bin/bash
	unix extensions = No
	usershare path = 
	winbind enum groups = Yes
	winbind enum users = Yes
	winbind nss info = rfc2307
	winbind refresh tickets = Yes
	winbind use default domain = Yes
	workgroup = {SHORT_DOMAIN_NAME}
	rpc_daemon:spoolssd = fork
	rpc_server:spoolss = external
	spoolss: architecture = Windows x64
	idmap config {short_domain_name} : unix_nss_info = yes
	idmap config {short_domain_name} : schema_mode = rfc2307
	idmap config {short_domain_name} : unix_primary_group = yes
	idmap config {short_domain_name} : range = 1000-999999
	idmap config {short_domain_name} : backend = ad
	idmap config * : range = 2000000-2999999
	idmap config * : backend = tdb
	include = /etc/samba/smb.conf.{SYSTEM_IP}
	lpq command = lpq -P'%p'
	lprm command = lprm -P'%p' %j
	print command = lpr -r -P'%p' %s
	printing = bsd

smb.conf.{IP}
##################
###   GLOBAL   ###
##################

[global]
        interfaces = lo {SYSTEM_IP}

        log file = /var/log/samba/log.%i
        max log size = 1000

        valid users = {Users SID}
        admin users = {Admin SID}

#################
###  Printing ###
#################

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

        acl_xattr:ignore system acl = yes

        write list = root, @lpadmin

[printers]
        comment = All Printers
        path = /var/spool/samba

        acl_xattr:ignore system acl = yes

        browsable = yes
        guest ok = no
        printable = yes
        read only = yes
        create mask = 0700



More information about the samba mailing list