Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] [samba] printer & cups

12 views
Skip to first unread message

root

unread,
Oct 30, 2012, 8:20:02 PM10/30/12
to
my samba is working good, only a problem with the classic pdf printer

I get this message from testparm

Warning: Service pdf-printer defines a print command, but print command parameter is ignored when using CUPS libraries.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions


and this is my .conf

[global]
workgroup = RSA
netbios name = RSA-INTRANET
server string = RSA-INTRANET
map to guest = Bad User
passdb backend = tdbsam
log file = /var/log/samba/log.%m
dns proxy = No

[pubblico]
comment = condivisione pubblica
path = /var/pubblico
read only = No

[pdf-printer]
path = /var/pubblico/
create mask = 0700
guest ok = Yes
printable = Yes
print command = /usr/bin/printpdf.sh %s
printer name = lp

everyt hings works ok, but the print command isn't executed altough the printer is shared and visible on the lan.

thanks for any help

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Moray Henderson

unread,
Nov 1, 2012, 7:50:02 AM11/1/12
to
> From: root [mailto:ro...@server-ready.aghezzi.it]
> Sent: 30 October 2012 17:47
We had "printing = bsd" when we had a PDF printer script like yours.
Because we are running SELinux, we also had to label our script
samba_unconfined_script_exec_t to allow Samba to run it.

However, we found that Samba was not really happy with both real CUPS
printer shares and a virtual PDF printing script, so we have moved to
PDFCreator (www.pdfforge.org) on the clients instead. It lets you use more
features than the server-side script too.

[It's better English to say "working well" than "working good"]



Moray.
"To err is human; to purr, feline."
0 new messages