[Samba] After update from 3.5.x to 3.6.23 all printers configured in CUPS they are no longer shared

Rowland Penny rowlandpenny241155 at gmail.com
Tue Oct 6 15:23:20 UTC 2015


On 06/10/15 16:00, Dario Lesca wrote:
> Il giorno mar, 06/10/2015 alle 15.14 +0100, Rowland Penny ha scritto:
>> Would you care to share your very secret smb.conf file ?
>>
>> Rowland
> [global]
> 	workgroup = DOM
> 	netbios aliases = s-software, s-print
> 	server string = %L
> 	interfaces = lo, eth0
> 	passdb backend = tdbsam:/etc/samba/account.tdb
> 	log file = /var/log/samba/log.%m
> 	max log size = 50
> 	smb ports = 139
> 	unix extensions = No
> 	printcap name = /etc/printcap
> 	add user script = /usr/sbin/useradd -m -c "Utente Samba (%u)" -g smbusers -d "/u/samba/home/%u" -s /sbin/nologin "%u"
> 	delete user script = test 0$(id -u "%u" 2>/dev/null) -gt 100 && /usr/sbin/userdel "%u"
> 	add group script = /usr/sbin/groupadd "%g"
> 	delete group script = test 0$(id -g "%g" 2>/dev/null) -gt 100 && /usr/sbin/groupdel "%g"
> 	add user to group script = /usr/bin/gpasswd -a "%u" "%g"
> 	delete user from group script = /usr/bin/gpasswd -d "%u" "%g"
> 	set primary group script = /usr/sbin/usermod -g "%g" "%u"
> 	add machine script = /usr/sbin/useradd -M -c "Computer di dominio (%u)" -g smbhosts -d /tmp/smbpc -s /sbin/nologin "%u"
> 	logon script = netlogon.bat
> 	logon path =
> 	logon drive = X:
> 	logon home = \\%L\%U
> 	domain logons = Yes
> 	os level = 83
> 	preferred master = Yes
> 	domain master = Yes
> 	wins support = Yes
> 	utmp directory = /var/log/samba/utmp
> 	wtmp directory = /var/log/samba/wtmp
> 	utmp = Yes
> 	winbind enum users = Yes
> 	winbind enum groups = Yes
> 	winbind use default domain = Yes
> 	winbind trusted domains only = Yes
> 	idmap config * : range = 16777216-33554431
> 	idmap config * : backend = tdb
> 	map archive = No
> 	map readonly = no
> 	store dos attributes = Yes
> 	wide links = Yes
>
> [homes]
> 	comment = Home Directories
> 	read only = No
> 	browseable = No
>
> [netlogon]
> 	comment = Network Logon Service
> 	path = /u/samba/netlogon
> 	write list = @admins
> 	guest ok = Yes
>
> [profiles]
> 	path = /u/samba/profiles
> 	read only = No
> 	create mask = 0600
> 	directory mask = 0700
> 	guest ok = Yes
> 	browseable = No
>
> [pubblica]
> 	comment = Cartella Pubblica x tutti
> 	path = /u/samba/pubblica
> 	read only = No
> 	force create mode = 0664
> 	force directory mode = 0775
> 	guest ok = Yes
>
> [documenti]
> 	comment = Cartella Documenti x tutti
> 	path = /u/samba/documenti
> 	read only = No
> 	guest ok = Yes
> 	vfs objects = recycle
> 	recycle:exclude = *.TMP,*.tmp,*.temp,*.o,*.obj,~$*
> 	recycle:versions = yes
> 	recycle:keeptree = yes
> 	recycle:maxsize = 10000000
> 	recycle:touch = yes
> 	recycle:repository = /u/samba/cestino/%U
>
> [cestino]
> 	comment = Cestino Personale
> 	path = /u/samba/cestino/%U
> 	read only = No
> 	guest ok = Yes
>
> [printers]
> 	comment = All Printers
> 	path = /var/spool/samba
> 	printable = Yes
> 	print ok = Yes
> 	browseable = No
>
> [aficio-fx200]
> 	path = /var/spool/samba/
> 	printable = Yes
> 	print ok = Yes
> 	printer name = aficio-fx200
>
> [aficio-mp161]
> 	path = /var/spool/samba/
> 	printable = Yes
> 	print ok = Yes
> 	printer name = aficio-mp161
>

OK, from the smb.conf manpage:

            To use the CUPS printing interface set printcap name = cups. 
This
            should be supplemented by an addtional setting printing = 
cups in
            the [global] section.  printcap name = cups will use the "dummy"
            printcap created by CUPS, as specified in your CUPS 
configuration
            file.

There is more in there about printing.

Rowland




More information about the samba mailing list