Bug 426956

Summary: defaultshared defaults to no
Product: [Fedora] Fedora Reporter: Sujay D'Souza <sad>
Component: cupsAssignee: Tim Waugh <twaugh>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-10 13:06:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sujay D'Souza 2007-12-28 21:30:42 UTC
Description of problem:

On FC6 (fedora) - if defaultshared is not present in cupsd.conf  it defaults to
no, inspite of the documentation stating that it should be shared by default.

Version-Release number of selected component (if applicable): 1.2.12


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Tim Waugh 2008-01-07 16:40:05 UTC
Are you using lpadmin to create queues, or some other method?

Comment 2 Sujay D'Souza 2008-01-09 18:36:42 UTC
yes lpadmin is used to create the queues. If no shared parameter is specified,
it should default to the parameter in cupsd.conf defaultshared=yes (even if that
is not present in the cupsd.conf). It does not behave as described though unless 
either is explicitly stated. Please refer to the following url.

http://www.cups.org/documentation.php/ref-cupsd-conf.html

Examples

DefaultShared yes
DefaultShared no

Description

The DefaultShared directive specifies whether printers are shared (published) by
default. The default is Yes.

Comment 3 Tim Waugh 2008-01-10 11:15:28 UTC
Seems to work fine in Fedora 8:

# grep -i defaultshared /etc/cups/cupsd.conf
# lpadmin -p test -v /dev/null
# lpoptions -p test
finishings=3 copies=1 job-hold-until=no-hold job-priority=50 number-up=1
auth-info-required=none job-sheets=none,none printer-info=test
printer-is-accepting-jobs=0 printer-is-shared=1 printer-location
printer-make-and-model='Local Raw Printer' printer-state=5
printer-state-change-time=1199963652 printer-state-reasons=paused
printer-type=524292
[root@cyberelk ~]# rpm -q cups
cups-1.3.5-1.fc8

Note 'printer-is-shared=1' in the output.

What do you get when you try those commands?

Comment 4 Sujay D'Souza 2008-01-10 13:00:25 UTC
Yes its fine on FC6, I just realized that these configs were generated on
FC2/cups-1.1.20-11.11.2.legacy and defaultshared was introduced in 1.2