[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#746270: cupsctl: Unauthorized when not specifying "-h localhost"



On Fri 17 Jul 2015 at 16:25:43 +0200, darkdragon wrote:

> I noticed that it didn't update because our company repository did not
> have the new version. I installed the latest official version for
> Wheezy (1.5.3+deb7u6), but this did not have any effect on the error.

Try as I might I cannot reproduce this behaviour. Please send your
cupsd.conf and cups-files.conf. Also do

  strace -o log cupsctl

and send log.

> -bash-4.2# ls /etc/cups
> classes.conf cupsd.conf.default cups-files.conf mailto.conf
> printers.conf raw.convs snmp.conf subscriptions.conf cupsd.conf
> cupsd.conf.O cups-pdf.conf ppd printers.conf.O raw.types ssl
> subscriptions.conf.O

cupsd.conf.default should be the same as the cupsd.conf you started
with, Save the present copy and put cupsd.conf.default in its place.
Restart cups.  ('service cups restart'). Any change?

> -bash-4.2# ls /root/.cups
> ls: cannot access /root/.cups: No such file or directory
> 
> This is the actual output:
> 
> -bash-4.2# cupsctl
> cupsctl: Unauthorized
> 
> -bash-4.2# cupsctl -h localhost
> _debug_logging=1
> _remote_admin=0
> _remote_any=1
> _remote_printers=1
> _share_printers=0
> _user_cancel_any=0
> BrowseLocalProtocols=CUPS dnssd
> DefaultAuthType=Basic
> JobPrivateAccess=default
> JobPrivateValues=default
> MaxLogSize=0
> ServerAlias=*
> SubscriptionPrivateAccess=default
> SubscriptionPrivateValues=default
> WebInterface=Yes

Those look fine.

You have debug logging enabled. Empty /var/log/cups/error_log

  >/var/log/cups/error_log

and do 'cupsctl'. Add error_log to the attachments you send here.

Regards,

Brian.


Reply to: