On Sun, September 15, 2013 14:42, Ian McWilliam wrote: > On 15/09/2013 6:54 AM, Kirill Bychkov wrote: >> On Sat, September 14, 2013 18:10, Ian McWilliam wrote: >>> On 14/09/2013 6:46 PM, Kirill Bychkov wrote: >>>> On Sat, September 14, 2013 03:01, Ian McWilliam wrote: >>>>> On 14/09/2013 3:27 AM, Kirill Bychkov wrote: >>>>>> Hi. >>>>>> By default samba is using cups for printing, so it starts to flood in >>>>>> logfiles >>>>>> with: >>>>>> smbd[12245]: [2013/09/13 21:03:48.595183, 0] >>>>>> printing/print_cups.c:151(cups_connect) >>>>>> smbd[12245]: Unable to connect to CUPS server localhost:631 - >>>>>> Connection >>>>>> refused >>>>>> smbd[14345]: [2013/09/13 21:03:48.613769, 0] >>>>>> printing/print_cups.c:528(cups_async_callback) >>>>>> smbd[14345]: failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL >>>>>> >>>>>> I suggest to change printing system from cups to bsd to prevent this >>>>>> annoying >>>>>> messages in logs. >>>>>> >>>>>> Change MASTER_SITES while here. >>>>> No issue with changing master sites but the change in config file >>>>> CHANGES THE DEFAULT to BSD not CUPS. Your own admission is "By default >>>>> samba is using cups for printing". I don't see the issue that people >>>>> wanting bsd style printing actually edit their config file and change it. >>>> Yes, my thought is to set BSD by default to get rid of messages about >>>> refused >>>> connection to CUPS on a fresh setup of samba. >>>> printing = cups is hardcoded somewhere, so even if this line is commented >>>> out >>>> in config file, samba still trying to connect to cups. The easyiest way to >>>> override it is to set printing = bsd in config. >>>> >> cups is not started by default and many of samba users doesn't use it's >> printing support at all. So why not change hardcoded cups and spam in logs >> to >> bsd without spam? > > If many users are not using printing then why not disable printing by > default all together instead?
Is it possible to do at runtime, I think it's not. If noone is interested in changing printing defaults, I can just commit MASTER_SITES chunk and remove trailing whitespace in DESCR. > > >>> Yes, except that samba now ships with cups for all flavours, therefore >>> cups is the default. If you want a non default, you need to edit the >>> config file. >>> >>> Ian McWilliam >>> >> >> > Ian McWilliam >