[cups.bugs] Cups/printers.conf cannot be edited. It re-writesitself. Need help!
Michael R Sweet
msweet at apple.com
Mon Apr 20 13:19:11 PDT 2009
Well, it could be that the Windows system isn't allowing guest
printing, so the smb backend is telling CUPS that it needs a username
and password.
Aside from that, I don't have any other suggestions to offer, sorry...
On Apr 20, 2009, at 10:03 AM, George Ross wrote:
>>
>> --Apple-Mail-5--58993006
>> Content-Transfer-Encoding: 7bit
>> Content-Type: text/plain;
>> charset=us-ascii;
>> format=flowed;
>> delsp=yes
>>
>> On Apr 19, 2009, at 2:12 PM, George Ross wrote:
>>>>
>>>> --Apple-Mail-2--127053923
>>>> Content-Transfer-Encoding: quoted-printable
>>>> Content-Type: text/plain;
>>>> charset=windows-1252;
>>>> format=flowed;
>>>> delsp=yes
>>>>
>>>> Standard CUPS won't do this if you have actually stopped cupsd and
>>>> it =20=
>>>>
>>>> is no longer running. Try:
>>>>
>>>> lpadmin -p printer -o auth-info-required=3Dnone
>>>>
>>>> which makes the change to the running cupsd.
>>>
>>> Mike. Thanks, I appreciate you trying to help. I have a lack of
>>> computer knowledge so please be patient.
>>> Are you saying to use the terminal & type;
>>> lpadmin -p printer -o auth-info-required=3Dnone
>>
>> Just this command (with "printer" replaced with the name of your
>> printer).
>>
>>> Then type in changes;
>>> sudo /etc/init.d/cups stop
>>> sudo gedit /etc/cups/printers.conf
>>> Change line to #AuthInfoRequired username,password
>>> Save/close
>>> sudo /etc/init.d/cups start
>>
>> Don't use these commands at all.
>>
>> ________________________________________
>> Michael R Sweet, Senior Printing System Engineer
>>
>>
>> --Apple-Mail-5--58993006
>> Content-Transfer-Encoding: quoted-printable
>> Content-Type: text/html;
>> charset=us-ascii
>>
>> <html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode:
>> space; =
>> -webkit-line-break: after-white-space; "><div><div>On Apr 19, 2009,
>> at =
>> 2:12 PM, George Ross wrote:</div><blockquote =
>> type=3D"cite"><div><blockquote type=3D"cite"><br></
>> blockquote><blockquote =
>> type=3D"cite">--Apple-Mail-2--127053923<br></blockquote><blockquote =
>> type=3D"cite">Content-Transfer-Encoding: =
>> quoted-printable<br></blockquote><blockquote type=3D"cite">Content-
>> Type: =
>> text/plain;<br></blockquote><blockquote type=3D"cite"><span =
>> class=3D"Apple-tab-span" style=3D"white-space:pre"> =
>> </span>charset=3Dwindows-1252;<br></blockquote><blockquote =
>> type=3D"cite"><span class=3D"Apple-tab-span" style=3D"white-
>> space:pre"> =
>> </span>format=3Dflowed;<br></blockquote><blockquote
>> type=3D"cite"><span =
>> class=3D"Apple-tab-span" style=3D"white-space:pre"> =
>> </span>delsp=3Dyes<br></blockquote><blockquote =
>> type=3D"cite"><br></blockquote><blockquote type=3D"cite">Standard
>> CUPS =
>> won't do this if you have actually stopped cupsd and it =
>> =3D20=3D<br></blockquote><blockquote =
>> type=3D"cite"><br></blockquote><blockquote type=3D"cite">is no
>> longer =
>> running. Try:<br></blockquote><blockquote =
>> type=3D"cite"><br></blockquote><blockquote type=3D"cite"> =
>> lpadmin -p printer -o =
>> auth-info-required=3D3Dnone<br></blockquote><blockquote =
>> type=3D"cite"><br></blockquote><blockquote type=3D"cite">which
>> makes the =
>> change to the running cupsd.<br></blockquote><br>Mike. Thanks, I =
>> appreciate you trying to help. I have a lack of computer knowledge
>> so =
>> please be patient.<br>Are you saying to use the terminal & =
>> type;<br>lpadmin -p printer -o =
>> auth-info-required=3D3Dnone<br></div></blockquote><div><br></
>> div>Just =
>> this command (with "printer" replaced with the name of your =
>> printer).</div><div><br><blockquote type=3D"cite"><div>Then type in =
>> changes;<br>sudo /etc/init.d/cups stop<br>sudo gedit =
>> /etc/cups/printers.conf<br>Change line to #AuthInfoRequired =
>> username,password<br>Save/close<br>sudo /etc/init.d/cups =
>> start<br></div></blockquote><div><br></div>Don't use these commands
>> at =
>> all.</div><div><br></div><div>
>> <span class=3D"Apple-style-span" style=3D"border-collapse:
>> separate; =
>> color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-
>> style: =
>> normal; font-variant: normal; font-weight: normal; letter-spacing: =
>> normal; line-height: normal; orphans: 2; text-align: auto; text-
>> indent: =
>> 0px; text-transform: none; white-space: normal; widows: 2; word-
>> spacing: =
>> 0px; -webkit-border-horizontal-spacing: 0px; =
>> -webkit-border-vertical-spacing: 0px; =
>> -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
>> auto; -webkit-text-stroke-width: 0px; "><span class=3D"Apple-style-
>> span" =
>> style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-
>> family: =
>> Helvetica; font-size: 12px; font-style: normal; font-variant:
>> normal; =
>> font-weight: normal; letter-spacing: normal; line-height: normal; =
>> orphans: 2; text-indent: 0px; text-transform: none; white-space:
>> normal; =
>> widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing:
>> 0px; =
>> -webkit-border-vertical-spacing: 0px; =
>> -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
>> auto; -webkit-text-stroke-width: 0px; "><div style=3D"word-wrap: =
>> break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
>> after-white-space; =
>> "><div><div>________________________________________</
>> div><div>Michael R =
>> Sweet, Senior Printing System Engineer</div></div></div></span></
>> span>
>> </div>
>> <br></body></html>=
>>
>> --Apple-Mail-5--58993006--
>>
> Michael,
> I did as you asked & got the same results; it wants a password. As I
> said, I'm not the greatest with computers. I believe I did this
> correctly, but, maybe not. I've attached a copy of both files.
> Please recommend changes.
> George
>
> -PRINTERS.CONF-
>
> # Printer configuration file for CUPS v1.3.9
> # Written by cupsd on 2009-04-20 12:50
> <DefaultPrinter Canon-i950-Ubuntu>
> AuthInfoRequired username,password
> Info Canon i950 Ubuntu
> Location
> DeviceURI smb://ROSS/MARIE-DESKTOP/i950
> State Idle
> StateTime 1240246217
> Accepting Yes
> Shared Yes
> JobSheets none none
> QuotaPeriod 0
> PageLimit 0
> KLimit 0
> OpPolicy default
> ErrorPolicy retry-job
> </Printer>
>
> -CUPSD.CONF-
>
> #
> #
> # Sample configuration file for the Common UNIX Printing System
> (CUPS)
> # scheduler. See "man cupsd.conf" for a complete description of
> this
> # file.
> #
>
> # Log general information in error_log - change "info" to "debug" for
> # troubleshooting...
> LogLevel warning
>
> # Administrator user group...
> SystemGroup lpadmin -p Canon-i950-Ubuntu -o auth-info-required=3Dnone
>
>
> # Only listen for connections from the local machine.
> Listen localhost:631
> Listen /var/run/cups/cups.sock
>
> # Show shared printers on the local network.
> Browsing Off
> BrowseOrder allow,deny
> BrowseAllow all
> BrowseAddress @LOCAL
>
> # Default authentication type, when authentication is required...
> DefaultAuthType Basic
>
> # Restrict access to the server...
> <Location />
> Order allow,deny
> </Location>
>
> # Restrict access to the admin pages...
> <Location /admin>
> Encryption Required
> Order allow,deny
> </Location>
>
> # Restrict access to configuration files...
> <Location /admin/conf>
> AuthType Default
> Require user @SYSTEM
> Order allow,deny
> </Location>
>
> # Set the default printer/job policies...
> <Policy default>
> # Job-related operations must be done by the owner or an
> administrator...
> <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job
> Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-
> Subscription Cancel-Subscription Get-Notifications Reprocess-Job
> Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
> Require user @OWNER @SYSTEM
> Order deny,allow
> </Limit>
>
> # All administration operations require an administrator to
> authenticate...
> <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-
> Class CUPS-Delete-Class CUPS-Set-Default>
> AuthType Default
> Require user @SYSTEM
> Order deny,allow
> </Limit>
>
> # All printer operations require a printer operator to
> authenticate...
> <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer
> Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs
> Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer
> Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-
> Reject-Jobs>
> AuthType Default
> Require user @SYSTEM
> Order deny,allow
> </Limit>
>
> # Only the owner or an administrator can cancel or authenticate a
> job...
> <Limit Cancel-Job CUPS-Authenticate-Job>
> Require user @OWNER @SYSTEM
> Order deny,allow
> </Limit>
>
> <Limit All>
> Order deny,allow
> </Limit>
> </Policy>
>
> #
> #
>
> _______________________________________________
> cups-bugs mailing list
> cups-bugs at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-bugs
____________________________________
Michael R Sweet, Senior Printing System Engineer
More information about the cups
mailing list