Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cups-1.2.6 will not accept my root password[solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
orange_juice
Guru
Guru


Joined: 16 Feb 2006
Posts: 588
Location: Athens - Greece

PostPosted: Mon Dec 04, 2006 7:07 pm    Post subject: Cups-1.2.6 will not accept my root password[solved] Reply with quote

Hallo,

I have configured cups-1.2.6 according to the Gentoo Printing Guide for my USB printer.

I ran CUPS, I connected to the server from localhost:631, I saw that CUPS has recognized my printer and I pushed the relevant button in order to install it. It automatically chose the correct driver and then, I was prompted for username and password...

Userame: root
Password: ****************** (Which is the correct password)

zip!

cat /var/log/cups/error_log
Code:
E [04/Dec/2006:20:54:48 +0200] CUPS-Add-Modify-Printer: Unauthorized
E [04/Dec/2006:20:55:08 +0200] cupsdAuthorize: pam_authenticate() returned 7 (Authentication failure)!


I tried to
Code:
lppasswd -a root
... zip

I tried to change
Code:
SystemGroup lpadmin
to
Code:
SystemGroup sys
or
Code:
SystemGroup root
... zip again :evil:

I reemerged cups.... nothing has changed.

This is my emerge -- info:

Code:
Portage 2.1.1-r2 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4800+
Gentoo Base System version 1.12.6
Last Sync: Sun, 03 Dec 2006 23:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://files.gentoo.org http://files.gentoo.org ftp://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.uoi.gr/mirror/OS/gentoo/ http://ftp.uoi.gr/mirror/OS/gentoo/ http://ftp.physics.auth.gr/pub/mirrors/gentoo/ ftp://ftp.physics.auth.gr/pub/mirrors/gentoo/ "
LANG="en_GB.UTF-8"
LINGUAS="en en_GB el uk"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://192.168.10.20/gentoo-portage"
USE="amd64 X Xaw3d a52 aac aalib accessibility acl acpi akode alsa amr aotuv arts asf asterisk audiofile avi berkdb bindist bitmap-fonts bzip2 bzlib cairo cddb cdparanoia cdr cpudetection cracklib crypt css ctype cups curl curlwrappers dbus divx djbfft dlloader dmi doc dri dts dv dvb dvd dvdr dvdread ecc effects elf elibc_glibc encode esd exif expat fam fame ffmpeg firefox flac flash fontconfig fortran fpx gd gdbm gif gimp gimpprint gmedia gphoto2 gpm graphviz gs gstreamer gtk gtk2 hal iconv ieee1394 imagemagick imap imlib inkjar input_devices_evdev input_devices_keyboard input_devices_mouse java jbig jpeg jpeg2k kde kernel_linux lcms ldap lesstif libcaca libwww linguas_el linguas_en linguas_en_GB linguas_uk live lm_sensors logitech-mouse lua lzo mad maildir mbrola mikmod mjpeg mmap mng modplug motif mozilla mp3 mp4 mpeg mpi musepack musicbrainz nas ncurses neXt network nls noamazon nptl nptlonly nsplugin nvidia odbc offensive ogg oggvorbis openexr opengl pam pcre pda pdf perl png povray ppds python qt3 qt4 quicktime rdesktop readline realmedia rpm rtc ruby sametime scanner sdl session slp smartcard smp smux sndfile snmp sockets speex spell ssl tcl tcltk tcpd tetex theora tidy tiff tk truetype type1-fonts udev unicode usb userland_GNU utf8 v4l v4l2 vcd vdr video_cards_fbdev video_cards_nvidia video_cards_vesa video_cards_vga vorbis wmf wmp wxwindows x264 xanim xine xml xorg xpm xscreensaver xv xvid xvmc yv12 zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


What is going wrong with it?

Kind regards,
orange_juice


Last edited by orange_juice on Wed Dec 13, 2006 9:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Mon Dec 04, 2006 7:25 pm    Post subject: Reply with quote

Have you got an old cupsd.conf installed? You might like to save your present one and then copy cupsd.conf.default to cupsd.conf and try again.

The Gentoo CUPS 1.2.X is configured (during emerge) for "SystemGroup lpadmin".

The usual setting for access (in the 1.2.X cupsd.conf) to admin/conf is "AuthType Basic"
Quote:
Basic - Basic authentication should be performed using the UNIX password and group files
so using lppasswd won't change anything. Any user with an account on the machine and in the lpadmin group will be able to change the CUPS configuration.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
orange_juice
Guru
Guru


Joined: 16 Feb 2006
Posts: 588
Location: Athens - Greece

PostPosted: Mon Dec 04, 2006 7:29 pm    Post subject: Reply with quote

Thank you for your aswer... I forgot to mention that I did that too... unfortunatelly, I had no results.

:?:

Kind regards,
orange_juice
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Mon Dec 04, 2006 7:41 pm    Post subject: Reply with quote

If you've got "AuthType Basic"", would you like to add another user with a simple password (make the shell /bin/false to stop the user being a security loophole), make the user a member of lpadmin and try and add your printer again.

I'm sure you type the root password faultlessly :) — I sometimes run through all three tries before I get it right as the fingers are so used to it they get out of sync.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
orange_juice
Guru
Guru


Joined: 16 Feb 2006
Posts: 588
Location: Athens - Greece

PostPosted: Mon Dec 04, 2006 8:55 pm    Post subject: Reply with quote

wynn wrote:
I'm sure you type the root password faultlessly :) — I sometimes run through all three tries before I get it right as the fingers are so used to it they get out of sync.


:D You are very right!!! However, I have tried many times... I also have copy/pasted the password to be sure!!!

I have added the user I am currently logged in in the lpadmin group but nothing happens.

If you think that the cretaion of another user is still necessary as an experiment, how can I create the user with its shell in /bin/false?

I have also followed the advice in this post but still nothing!

Kind regards,
orange_juice
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Tue Dec 05, 2006 11:00 am    Post subject: Reply with quote

orange_juice wrote:
I have added the user I am currently logged in in the lpadmin group but nothing happens.
That should be enough for testing — a user doesn't appear in a group until the user is logged out and logged in again, though.

orange_juice wrote:
If you think that the cretaion of another user is still necessary as an experiment, how can I create the user with its shell in /bin/false?
No, your change above should be enough to test.

Hmmm, a bit stuck now.

You have got
Code:
DefaultAuthType Basic
...
<Location /admin>
  Encryption Required
  # Restrict access to the admin pages...
  Order allow,deny
  Allow localhost
</Location>
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  # Restrict access to the configuration files...
  Order allow,deny
  Allow localhost
</Location>
in your cupsd.conf file, haven't you?

Have you looked at the error messages in /var/log/cups/error_log? There should be something there about the failed authentication.

You might also try changing "LogLevel info" to "LogLevel debug" in cupsd.conf to get more information.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
b1f30
Apprentice
Apprentice


Joined: 16 Nov 2005
Posts: 262
Location: USA

PostPosted: Tue Dec 05, 2006 8:04 pm    Post subject: Reply with quote

net-print/cups-1.2.6

I'm having the same exact issue - I can configure everything to my heart's content - but then when it asks me for username and password (aka, i use root here), I get 'Connection refused' or 'Connection reset by peer'.

Hrm...
_________________
H T T P : / / W W W . B I N A R Y F R E E D O M . I N F O /
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Tue Dec 05, 2006 8:10 pm    Post subject: Reply with quote

b1f30 wrote:
net-print/cups-1.2.6

I'm having the same exact issue - I can configure everything to my heart's content - but then when it asks me for username and password (aka, i use root here), I get 'Connection refused' or 'Connection reset by peer'.

Hrm...
As in the reply to orange_juice, could you check the DefaultAuthType and the AuthType settings for /admin and /admin/conf, could you see if there are relevant messages in /var/log/cups/error_log and, if necessary, change your LogLevel info" to "LogLevel debug"?
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
b1f30
Apprentice
Apprentice


Joined: 16 Nov 2005
Posts: 262
Location: USA

PostPosted: Tue Dec 05, 2006 8:28 pm    Post subject: Reply with quote

wynn wrote:
As in the reply to orange_juice, could you check the DefaultAuthType and the AuthType settings for /admin and /admin/conf, could you see if there are relevant messages in /var/log/cups/error_log and, if necessary, change your LogLevel info" to "LogLevel debug"?


# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
Order allow,deny
Allow localhost
</Location>

# Restrict access to the admin pages...
<Location /admin>
Encryption Required
Order allow,deny
Allow localhost
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
</Location>

# tail -n 100 /var/log/cups/error_log

I [05/Dec/2006:14:50:18 -0500] Using policy "default" as the default!
I [05/Dec/2006:14:50:18 -0500] Full reload is required.
I [05/Dec/2006:14:50:18 -0500] Loaded MIME database from '/etc/cups': 34 types, 38 filters...
I [05/Dec/2006:14:50:18 -0500] Loading NextJobId from job cache file "/var/cache/cups/job.cache"...
I [05/Dec/2006:14:50:18 -0500] Full reload complete.
I [05/Dec/2006:14:50:18 -0500] Listening to 127.0.0.1:631 on fd 2...
I [05/Dec/2006:14:50:18 -0500] Listening to /var/run/cups/cups.sock on fd 3...
I [05/Dec/2006:14:50:45 -0500] Started "/usr/libexec/cups/cgi-bin/admin.cgi" (pid=27555)
I [05/Dec/2006:14:50:56 -0500] Started "/usr/libexec/cups/cgi-bin/admin.cgi" (pid=27558)
I [05/Dec/2006:14:50:56 -0500] Started "/usr/libexec/cups/daemon/cups-deviced" (pid=27559)
I [05/Dec/2006:14:51:00 -0500] Started "/usr/libexec/cups/cgi-bin/admin.cgi" (pid=27574)
I [05/Dec/2006:14:51:16 -0500] Started "/usr/libexec/cups/cgi-bin/admin.cgi" (pid=27577)
I [05/Dec/2006:14:51:16 -0500] Started "/usr/libexec/cups/daemon/cups-driverd" (pid=27578)
I [05/Dec/2006:14:51:22 -0500] Started "/usr/libexec/cups/cgi-bin/admin.cgi" (pid=27585)
I [05/Dec/2006:14:51:22 -0500] Started "/usr/libexec/cups/daemon/cups-driverd" (pid=27586)
I [05/Dec/2006:14:51:34 -0500] Started "/usr/libexec/cups/cgi-bin/admin.cgi" (pid=27591)
E [05/Dec/2006:14:51:34 -0500] CUPS-Add-Modify-Printer: Unauthorized
I [05/Dec/2006:14:56:15 -0500] Listening to 127.0.0.1:631 (IPv4)
I [05/Dec/2006:14:56:15 -0500] Listening to /var/run/cups/cups.sock (Domain)
I [05/Dec/2006:14:56:15 -0500] Loaded configuration file "/etc/cups/cupsd.conf"
I [05/Dec/2006:14:56:15 -0500] Using default TempDir of /var/spool/cups/tmp...
I [05/Dec/2006:14:56:15 -0500] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [05/Dec/2006:14:56:15 -0500] Configured for up to 100 clients.
I [05/Dec/2006:14:56:15 -0500] Allowing up to 100 client connections per host.
I [05/Dec/2006:14:56:15 -0500] Using policy "default" as the default!
I [05/Dec/2006:14:56:15 -0500] Full reload is required.
I [05/Dec/2006:14:56:15 -0500] Loaded MIME database from '/etc/cups': 34 types, 38 filters...
I [05/Dec/2006:14:56:15 -0500] Loading NextJobId from job cache file "/var/cache/cups/job.cache"...
I [05/Dec/2006:14:56:15 -0500] Full reload complete.
I [05/Dec/2006:14:56:15 -0500] Listening to 127.0.0.1:631 on fd 2...
I [05/Dec/2006:14:56:15 -0500] Listening to /var/run/cups/cups.sock on fd 3...
I [05/Dec/2006:14:56:39 -0500] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=27849)
I [05/Dec/2006:14:56:48 -0500] Started "/usr/libexec/cups/cgi-bin/admin.cgi" (pid=27851)
E [05/Dec/2006:14:56:48 -0500] CUPS-Set-Default: Unauthorized
I [05/Dec/2006:14:58:27 -0500] Listening to 127.0.0.1:631 (IPv4)
I [05/Dec/2006:14:58:27 -0500] Listening to /var/run/cups/cups.sock (Domain)
I [05/Dec/2006:14:58:27 -0500] Loaded configuration file "/etc/cups/cupsd.conf"
I [05/Dec/2006:14:58:27 -0500] Using default TempDir of /var/spool/cups/tmp...
I [05/Dec/2006:14:58:27 -0500] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [05/Dec/2006:14:58:27 -0500] Configured for up to 100 clients.
I [05/Dec/2006:14:58:27 -0500] Allowing up to 100 client connections per host.
I [05/Dec/2006:14:58:27 -0500] Using policy "default" as the default!
I [05/Dec/2006:14:58:27 -0500] Full reload is required.
I [05/Dec/2006:14:58:27 -0500] Loaded MIME database from '/etc/cups': 34 types, 38 filters...
I [05/Dec/2006:14:58:27 -0500] Loading NextJobId from job cache file "/var/cache/cups/job.cache"...
I [05/Dec/2006:14:58:27 -0500] Full reload complete.
I [05/Dec/2006:14:58:27 -0500] Listening to 127.0.0.1:631 on fd 2...
I [05/Dec/2006:14:58:27 -0500] Listening to /var/run/cups/cups.sock on fd 3...
I [05/Dec/2006:14:58:33 -0500] Started "/usr/libexec/cups/cgi-bin/printers.cgi" (pid=28063)
I [05/Dec/2006:14:59:00 -0500] Started "/usr/libexec/cups/cgi-bin/admin.cgi" (pid=28075)
E [05/Dec/2006:14:59:00 -0500] CUPS-Set-Default: Unauthorized
I [05/Dec/2006:14:59:16 -0500] Listening to 127.0.0.1:631 (IPv4)
I [05/Dec/2006:14:59:16 -0500] Listening to /var/run/cups/cups.sock (Domain)
I [05/Dec/2006:14:59:16 -0500] Loaded configuration file "/etc/cups/cupsd.conf"
I [05/Dec/2006:14:59:16 -0500] Using default TempDir of /var/spool/cups/tmp...
I [05/Dec/2006:14:59:16 -0500] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [05/Dec/2006:14:59:16 -0500] Configured for up to 100 clients.
I [05/Dec/2006:14:59:16 -0500] Allowing up to 100 client connections per host.
I [05/Dec/2006:14:59:16 -0500] Using policy "default" as the default!
I [05/Dec/2006:14:59:16 -0500] Full reload is required.
I [05/Dec/2006:14:59:16 -0500] Loaded MIME database from '/etc/cups': 34 types, 38 filters...
I [05/Dec/2006:14:59:16 -0500] Loading NextJobId from job cache file "/var/cache/cups/job.cache"...
I [05/Dec/2006:14:59:16 -0500] Full reload complete.
I [05/Dec/2006:14:59:16 -0500] Listening to 127.0.0.1:631 on fd 2...
I [05/Dec/2006:14:59:16 -0500] Listening to /var/run/cups/cups.sock on fd 3...
I [05/Dec/2006:14:59:58 -0500] Adding start banner page "none" to job 54.
I [05/Dec/2006:14:59:58 -0500] Adding end banner page "none" to job 54.
I [05/Dec/2006:14:59:58 -0500] Job 54 queued on "HPLaserJet" by "root".
I [05/Dec/2006:14:59:58 -0500] Started filter /usr/libexec/cups/filter/texttops (PID 28210) for job 54.
I [05/Dec/2006:14:59:58 -0500] Started filter /usr/libexec/cups/filter/pstops (PID 28211) for job 54.
I [05/Dec/2006:14:59:58 -0500] Started filter /usr/libexec/cups/filter/pstoraster (PID 28212) for job 54.
I [05/Dec/2006:14:59:58 -0500] Started filter /usr/libexec/cups/filter/rastertogutenprint.5.0 (PID 28213) for job 54.
I [05/Dec/2006:14:59:58 -0500] Started backend /usr/libexec/cups/backend/socket (PID 28214) for job 54.
I [05/Dec/2006:15:01:20 -0500] Adding start banner page "none" to job 55.
I [05/Dec/2006:15:01:20 -0500] Adding end banner page "none" to job 55.
I [05/Dec/2006:15:01:20 -0500] Job 55 queued on "HPLaserJet" by "mshire".
I [05/Dec/2006:15:01:20 -0500] Started filter /usr/libexec/cups/filter/pstops (PID 28311) for job 55.
I [05/Dec/2006:15:01:20 -0500] Started filter /usr/libexec/cups/filter/pstoraster (PID 28312) for job 55.
I [05/Dec/2006:15:01:20 -0500] Started filter /usr/libexec/cups/filter/rastertogutenprint.5.0 (PID 28313) for job 55.
I [05/Dec/2006:15:01:20 -0500] Started backend /usr/libexec/cups/backend/socket (PID 28314) for job 55.
I [05/Dec/2006:15:26:19 -0500] Scheduler shutting down normally.
I [05/Dec/2006:15:26:19 -0500] Saving remote.cache...
I [05/Dec/2006:15:26:19 -0500] Saving job cache file "/var/cache/cups/job.cache"...
I [05/Dec/2006:15:26:19 -0500] Listening to 127.0.0.1:631 (IPv4)
I [05/Dec/2006:15:26:19 -0500] Listening to /var/run/cups/cups.sock (Domain)
I [05/Dec/2006:15:26:19 -0500] Loaded configuration file "/etc/cups/cupsd.conf"
I [05/Dec/2006:15:26:19 -0500] Using default TempDir of /var/spool/cups/tmp...
I [05/Dec/2006:15:26:19 -0500] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [05/Dec/2006:15:26:19 -0500] Configured for up to 100 clients.
I [05/Dec/2006:15:26:19 -0500] Allowing up to 100 client connections per host.
I [05/Dec/2006:15:26:19 -0500] Using policy "default" as the default!
I [05/Dec/2006:15:26:19 -0500] Full reload is required.
I [05/Dec/2006:15:26:19 -0500] Loaded MIME database from '/etc/cups': 34 types, 38 filters...
D [05/Dec/2006:15:26:19 -0500] Loading printer HPLaserJet...
I [05/Dec/2006:15:26:19 -0500] Loading job cache file "/var/cache/cups/job.cache"...
D [05/Dec/2006:15:26:19 -0500] Loading job 54 from cache...
D [05/Dec/2006:15:26:19 -0500] Loading job 55 from cache...
I [05/Dec/2006:15:26:19 -0500] Full reload complete.
I [05/Dec/2006:15:26:19 -0500] Listening to 127.0.0.1:631 on fd 2...
I [05/Dec/2006:15:26:19 -0500] Listening to /var/run/cups/cups.sock on fd 3...
_________________
H T T P : / / W W W . B I N A R Y F R E E D O M . I N F O /
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Tue Dec 05, 2006 9:04 pm    Post subject: Reply with quote

I see the errors which seem to be when you try and run something to do with admin but the log level is still at info.

Could you change it to debug and then extract the messages which occur when you try and get CUPS to accept the configuration change, please?

Could you also post the messages you get in access_log for the same thing?
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
b1f30
Apprentice
Apprentice


Joined: 16 Nov 2005
Posts: 262
Location: USA

PostPosted: Tue Dec 05, 2006 9:23 pm    Post subject: Reply with quote

wynn wrote:
I see the errors which seem to be when you try and run something to do with admin but the log level is still at info.

Could you change it to debug and then extract the messages which occur when you try and get CUPS to accept the configuration change, please?

Could you also post the messages you get in access_log for the same thing?


# tail -n 100 /var/log/cups/error_log
D [05/Dec/2006:16:20:14 -0500] [CGI] Output second part...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting at file position 1900...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{admin_uri}" at 1921...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{printer_name}" at 1969...
D [05/Dec/2006:16:20:14 -0500] [CGI] Returning at file position 2053 on character '}'...
D [05/Dec/2006:16:20:14 -0500] [CGI] Finished "{printer_is_accepting_jobs=0", out=0xb7e084c0...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{printer_uri_supported}" at 2086...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{printer_name}" at 2132...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{admin_uri}" at 2235...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{printer_name}" at 2282...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting "{printer_is_shared=0" at 2394, result=0...
D [05/Dec/2006:16:20:14 -0500] [CGI] Skip first part...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting at file position 2394...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{admin_uri}" at 2415...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{printer_name}" at 2463...
D [05/Dec/2006:16:20:14 -0500] [CGI] Returning at file position 2568 on character ':'...
D [05/Dec/2006:16:20:14 -0500] [CGI] Output second part...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting at file position 2568...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{admin_uri}" at 2589...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{printer_name}" at 2637...
D [05/Dec/2006:16:20:14 -0500] [CGI] Returning at file position 2746 on character '}'...
D [05/Dec/2006:16:20:14 -0500] [CGI] Finished "{printer_is_shared=0", out=0xb7e084c0...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{admin_uri}" at 2767...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{printer_name}" at 2818...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{admin_uri}" at 2927...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{printer_name}" at 2983...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{admin_uri}" at 3102...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{printer_name}" at 3153...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{admin_uri}" at 3262...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{printer_name}" at 3313...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{admin_uri}" at 3422...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{printer_name}" at 3476...
D [05/Dec/2006:16:20:14 -0500] [CGI] Returning at file position 3598 on character '}'...
D [05/Dec/2006:16:20:14 -0500] [CGI] Finished looping on "printer_name"...
D [05/Dec/2006:16:20:14 -0500] [CGI] Returning at file position 3599 on character '}'...
D [05/Dec/2006:16:20:14 -0500] [CGI] Finished "{#printer_name=0", out=0xb7e084c0...
D [05/Dec/2006:16:20:14 -0500] [CGI] Returning at file position 3600 on EOF...
D [05/Dec/2006:16:20:14 -0500] [CGI] cgiCopyTemplateLang(tmpl="pager.tmpl")
D [05/Dec/2006:16:20:14 -0500] [CGI] locale="en"...
D [05/Dec/2006:16:20:14 -0500] [CGI] Template file is "/usr/share/cups/templates/pager.tmpl"...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting at file position 0...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting "{PREVURL?" at 87, result=0...
D [05/Dec/2006:16:20:14 -0500] [CGI] Skip first part...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting at file position 87...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{PREVURL}" at 105...
D [05/Dec/2006:16:20:14 -0500] [CGI] Returning at file position 191 on character ':'...
D [05/Dec/2006:16:20:14 -0500] [CGI] Output second part...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting at file position 191...
D [05/Dec/2006:16:20:14 -0500] [CGI] Returning at file position 198 on character '}'...
D [05/Dec/2006:16:20:14 -0500] [CGI] Finished "{PREVURL?", out=0xb7e084c0...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting "{ORDER=dec" at 247, result=0...
D [05/Dec/2006:16:20:14 -0500] [CGI] Skip first part...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting at file position 247...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{THISURL}" at 265...
D [05/Dec/2006:16:20:14 -0500] [CGI] Returning at file position 367 on character ':'...
D [05/Dec/2006:16:20:14 -0500] [CGI] Output second part...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting at file position 367...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{THISURL}" at 385...
D [05/Dec/2006:16:20:14 -0500] [CGI] Returning at file position 489 on character '}'...
D [05/Dec/2006:16:20:14 -0500] [CGI] Finished "{ORDER=dec", out=0xb7e084c0...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting "{NEXTURL?" at 535, result=0...
D [05/Dec/2006:16:20:14 -0500] [CGI] Skip first part...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting at file position 535...
D [05/Dec/2006:16:20:14 -0500] [CGI] "{NEXTURL}" at 553...
D [05/Dec/2006:16:20:14 -0500] [CGI] Returning at file position 631 on character ':'...
D [05/Dec/2006:16:20:14 -0500] [CGI] Output second part...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting at file position 631...
D [05/Dec/2006:16:20:14 -0500] [CGI] Returning at file position 638 on character '}'...
D [05/Dec/2006:16:20:14 -0500] [CGI] Finished "{NEXTURL?", out=0xb7e084c0...
D [05/Dec/2006:16:20:14 -0500] [CGI] Returning at file position 659 on EOF...
D [05/Dec/2006:16:20:14 -0500] [CGI] cgiCopyTemplateLang(tmpl="trailer.tmpl")
D [05/Dec/2006:16:20:14 -0500] [CGI] locale="en"...
D [05/Dec/2006:16:20:14 -0500] [CGI] Template file is "/usr/share/cups/templates/trailer.tmpl"...
D [05/Dec/2006:16:20:14 -0500] [CGI] Starting at file position 0...
D [05/Dec/2006:16:20:14 -0500] [CGI] Returning at file position 614 on EOF...
D [05/Dec/2006:16:20:14 -0500] cupsdCloseClient: 10
D [05/Dec/2006:16:20:14 -0500] PID 25057 (/usr/libexec/cups/cgi-bin/printers.cgi) exited with no errors.
D [05/Dec/2006:16:20:17 -0500] cupsdReadClient: 7 GET /admin/?op=set-as-default&printer_name=HPLaserJet HTTP/1.1
D [05/Dec/2006:16:20:17 -0500] cupsdReadClient: 7 Browser asked for language "en.utf-8"...
D [05/Dec/2006:16:20:17 -0500] cupsdAuthorize: No authentication data provided.
D [05/Dec/2006:16:20:17 -0500] CGI /usr/libexec/cups/cgi-bin/admin.cgi started - PID = 25059
I [05/Dec/2006:16:20:17 -0500] Started "/usr/libexec/cups/cgi-bin/admin.cgi" (pid=25059)
D [05/Dec/2006:16:20:17 -0500] cupsdSendCommand: 7 file=8
D [05/Dec/2006:16:20:18 -0500] [CGI] admin.cgi started...
D [05/Dec/2006:16:20:18 -0500] cupsdAcceptClient: 10 from localhost (Domain)
D [05/Dec/2006:16:20:18 -0500] [CGI] http=0x8076008
D [05/Dec/2006:16:20:18 -0500] [CGI] op="set-as-default"...
D [05/Dec/2006:16:20:18 -0500] cupsdReadClient: 10 POST /admin/ HTTP/1.1
D [05/Dec/2006:16:20:18 -0500] cupsdAuthorize: No authentication data provided.
D [05/Dec/2006:16:20:18 -0500] CUPS-Set-Default ipp://localhost/printers/HPLaserJet
E [05/Dec/2006:16:20:18 -0500] CUPS-Set-Default: Unauthorized
D [05/Dec/2006:16:20:18 -0500] cupsdSendError: 10 code=401 (Unauthorized)
D [05/Dec/2006:16:20:18 -0500] [CGI] cgi_passwd(prompt="Password for lp on localhost? ") called!
D [05/Dec/2006:16:20:18 -0500] cupsdSendError: 7 code=401 (Unauthorized)
D [05/Dec/2006:16:20:18 -0500] cupsdCloseClient: 7
D [05/Dec/2006:16:20:18 -0500] cupsdCloseClient: 10
D [05/Dec/2006:16:20:18 -0500] PID 25059 (/usr/libexec/cups/cgi-bin/admin.cgi) exited with no errors.
D [05/Dec/2006:16:20:22 -0500] cupsdAcceptClient: 7 from localhost:631 (IPv4)
D [05/Dec/2006:16:20:22 -0500] cupsdReadClient: 7 GET /admin/?op=set-as-default&printer_name=HPLaserJet HTTP/1.1
D [05/Dec/2006:16:20:22 -0500] cupsdReadClient: 7 Browser asked for language "en.utf-8"...

# tail -n 100 /var/log/cups/access_log
localhost - - [05/Dec/2006:14:46:46 -0500] "GET /admin?OP=add-printer HTTP/1.1" 200 4144 - -
localhost - - [05/Dec/2006:14:46:58 -0500] "POST /admin HTTP/1.1" 200 90 - -
localhost - - [05/Dec/2006:14:46:58 -0500] "POST / HTTP/1.1" 200 1427 CUPS-Get-Devices -
localhost - - [05/Dec/2006:14:46:58 -0500] "POST /admin HTTP/1.1" 200 4605 - -
localhost - - [05/Dec/2006:14:47:13 -0500] "POST /admin HTTP/1.1" 200 129 - -
localhost - - [05/Dec/2006:14:47:13 -0500] "POST /admin HTTP/1.1" 200 4447 - -
localhost - - [05/Dec/2006:14:47:37 -0500] "GET /help/network.html HTTP/1.1" 200 0 - -
localhost - - [05/Dec/2006:14:47:37 -0500] "GET /help/network.html HTTP/1.1" 200 17127 - -
localhost - - [05/Dec/2006:14:48:48 -0500] "GET / HTTP/1.1" 200 5725 - -
localhost - - [05/Dec/2006:14:48:50 -0500] "GET /admin?OP=add-printer HTTP/1.1" 200 0 - -
localhost - - [05/Dec/2006:14:48:50 -0500] "GET /admin?OP=add-printer HTTP/1.1" 200 4144 - -
localhost - - [05/Dec/2006:14:49:11 -0500] "POST /admin HTTP/1.1" 200 90 - -
localhost - - [05/Dec/2006:14:49:11 -0500] "POST / HTTP/1.1" 200 1427 CUPS-Get-Devices -
localhost - - [05/Dec/2006:14:49:11 -0500] "POST /admin HTTP/1.1" 200 4605 - -
localhost - - [05/Dec/2006:14:49:25 -0500] "POST /admin HTTP/1.1" 200 132 - -
localhost - - [05/Dec/2006:14:49:25 -0500] "POST /admin HTTP/1.1" 200 4453 - -
localhost - - [05/Dec/2006:14:49:39 -0500] "POST /admin HTTP/1.1" 200 154 - -
localhost - - [05/Dec/2006:14:49:39 -0500] "POST / HTTP/1.1" 200 1333 CUPS-Get-PPDs -
localhost - - [05/Dec/2006:14:49:39 -0500] "POST /admin HTTP/1.1" 200 6254 - -
localhost - - [05/Dec/2006:14:49:45 -0500] "POST /admin HTTP/1.1" 200 1509 - -
localhost - - [05/Dec/2006:14:49:45 -0500] "POST / HTTP/1.1" 200 157812 CUPS-Get-PPDs -
localhost - - [05/Dec/2006:14:49:45 -0500] "POST /admin HTTP/1.1" 200 85899 - -
localhost - - [05/Dec/2006:14:49:58 -0500] "POST /admin HTTP/1.1" 200 1558 - -
localhost - - [05/Dec/2006:14:49:58 -0500] "POST /admin/ HTTP/1.1" 401 336 CUPS-Add-Modify-Printer successful-ok
localhost - - [05/Dec/2006:14:49:58 -0500] "POST /admin HTTP/1.1" 401 1558 - -
localhost - - [05/Dec/2006:14:49:58 -0500] "POST /admin HTTP/1.1" 200 1558 - -
localhost - - [05/Dec/2006:14:50:42 -0500] "GET / HTTP/1.1" 200 5725 - -
localhost - - [05/Dec/2006:14:50:45 -0500] "GET /admin?OP=add-printer HTTP/1.1" 200 0 - -
localhost - - [05/Dec/2006:14:50:45 -0500] "GET /admin?OP=add-printer HTTP/1.1" 200 4144 - -
localhost - - [05/Dec/2006:14:50:56 -0500] "POST /admin HTTP/1.1" 200 90 - -
localhost - - [05/Dec/2006:14:50:56 -0500] "POST / HTTP/1.1" 200 1427 CUPS-Get-Devices -
localhost - - [05/Dec/2006:14:50:56 -0500] "POST /admin HTTP/1.1" 200 4605 - -
localhost - - [05/Dec/2006:14:51:00 -0500] "POST /admin HTTP/1.1" 200 132 - -
localhost - - [05/Dec/2006:14:51:00 -0500] "POST /admin HTTP/1.1" 200 4453 - -
localhost - - [05/Dec/2006:14:51:16 -0500] "POST /admin HTTP/1.1" 200 161 - -
localhost - - [05/Dec/2006:14:51:16 -0500] "POST / HTTP/1.1" 200 1333 CUPS-Get-PPDs -
localhost - - [05/Dec/2006:14:51:16 -0500] "POST /admin HTTP/1.1" 200 6266 - -
localhost - - [05/Dec/2006:14:51:22 -0500] "POST /admin HTTP/1.1" 200 1514 - -
localhost - - [05/Dec/2006:14:51:22 -0500] "POST / HTTP/1.1" 200 157812 CUPS-Get-PPDs -
localhost - - [05/Dec/2006:14:51:22 -0500] "POST /admin HTTP/1.1" 200 85909 - -
localhost - - [05/Dec/2006:14:51:34 -0500] "POST /admin HTTP/1.1" 200 1563 - -
localhost - - [05/Dec/2006:14:51:34 -0500] "POST /admin/ HTTP/1.1" 401 341 CUPS-Add-Modify-Printer successful-ok
localhost - - [05/Dec/2006:14:51:34 -0500] "POST /admin HTTP/1.1" 401 1563 - -
localhost - - [05/Dec/2006:14:51:34 -0500] "POST /admin HTTP/1.1" 200 1563 - -
localhost - - [05/Dec/2006:14:56:17 -0500] "POST / HTTP/1.1" 200 351 CUPS-Get-Printers successful-ok
localhost - - [05/Dec/2006:14:56:17 -0500] "POST / HTTP/1.1" 200 351 CUPS-Get-Classes successful-ok
localhost - - [05/Dec/2006:14:56:17 -0500] "POST / HTTP/1.1" 200 75 CUPS-Get-Default successful-ok
localhost - - [05/Dec/2006:14:56:17 -0500] "POST / HTTP/1.1" 200 126 Get-Printer-Attributes successful-ok
localhost - - [05/Dec/2006:14:56:17 -0500] "POST / HTTP/1.1" 200 126 Get-Jobs successful-ok
localhost - - [05/Dec/2006:14:56:19 -0500] "POST / HTTP/1.1" 200 268 Get-Jobs successful-ok
localhost - - [05/Dec/2006:14:56:35 -0500] "GET / HTTP/1.1" 200 5725 - -
localhost - - [05/Dec/2006:14:56:39 -0500] "GET /printers HTTP/1.1" 200 0 - -
localhost - - [05/Dec/2006:14:56:39 -0500] "POST / HTTP/1.1" 200 135 CUPS-Get-Default successful-ok
localhost - - [05/Dec/2006:14:56:39 -0500] "POST / HTTP/1.1" 200 520 CUPS-Get-Printers successful-ok
localhost - - [05/Dec/2006:14:56:39 -0500] "GET /printers HTTP/1.1" 200 6551 - -
localhost - - [05/Dec/2006:14:56:48 -0500] "GET /admin/?op=set-as-default&printer_name=HPLaserJet HTTP/1.1" 200 0 - -
localhost - - [05/Dec/2006:14:56:48 -0500] "POST /admin/ HTTP/1.1" 401 123 CUPS-Set-Default successful-ok
localhost - - [05/Dec/2006:14:56:48 -0500] "GET /admin/?op=set-as-default&printer_name=HPLaserJet HTTP/1.1" 401 0 - -
localhost - - [05/Dec/2006:14:56:48 -0500] "GET /admin/?op=set-as-default&printer_name=HPLaserJet HTTP/1.1" 200 0 - -
localhost - - [05/Dec/2006:14:58:30 -0500] "GET / HTTP/1.1" 200 5725 - -
localhost - - [05/Dec/2006:14:58:33 -0500] "GET /printers HTTP/1.1" 200 0 - -
localhost - - [05/Dec/2006:14:58:33 -0500] "POST / HTTP/1.1" 200 135 CUPS-Get-Default successful-ok
localhost - - [05/Dec/2006:14:58:33 -0500] "POST / HTTP/1.1" 200 520 CUPS-Get-Printers successful-ok
localhost - - [05/Dec/2006:14:58:33 -0500] "GET /printers HTTP/1.1" 200 6551 - -
localhost - - [05/Dec/2006:14:59:00 -0500] "GET /admin/?op=set-as-default&printer_name=HPLaserJet HTTP/1.1" 200 0 - -
localhost - - [05/Dec/2006:14:59:00 -0500] "POST /admin/ HTTP/1.1" 401 123 CUPS-Set-Default successful-ok
localhost - - [05/Dec/2006:14:59:00 -0500] "GET /admin/?op=set-as-default&printer_name=HPLaserJet HTTP/1.1" 401 0 - -
localhost - - [05/Dec/2006:14:59:00 -0500] "GET /admin/?op=set-as-default&printer_name=HPLaserJet HTTP/1.1" 200 0 - -
localhost - - [05/Dec/2006:14:59:23 -0500] "POST / HTTP/1.1" 200 351 CUPS-Get-Printers successful-ok
localhost - - [05/Dec/2006:14:59:23 -0500] "POST / HTTP/1.1" 200 351 CUPS-Get-Classes successful-ok
localhost - - [05/Dec/2006:14:59:23 -0500] "POST / HTTP/1.1" 200 75 CUPS-Get-Default successful-ok
localhost - - [05/Dec/2006:14:59:58 -0500] "POST /printers/HPLaserJet HTTP/1.1" 200 26881 Print-Job successful-ok
localhost - - [05/Dec/2006:15:01:04 -0500] "POST / HTTP/1.1" 200 350 CUPS-Get-Printers successful-ok
localhost - - [05/Dec/2006:15:01:04 -0500] "POST / HTTP/1.1" 200 350 CUPS-Get-Classes successful-ok
localhost - - [05/Dec/2006:15:01:04 -0500] "POST / HTTP/1.1" 200 72 CUPS-Get-Default successful-ok
localhost - - [05/Dec/2006:15:01:04 -0500] "POST / HTTP/1.1" 200 350 CUPS-Get-Printers successful-ok
localhost - - [05/Dec/2006:15:01:04 -0500] "POST / HTTP/1.1" 200 350 CUPS-Get-Classes successful-ok
localhost - - [05/Dec/2006:15:01:04 -0500] "POST / HTTP/1.1" 200 72 CUPS-Get-Default successful-ok
localhost - - [05/Dec/2006:15:01:04 -0500] "POST / HTTP/1.1" 200 350 CUPS-Get-Printers successful-ok
localhost - - [05/Dec/2006:15:01:04 -0500] "POST / HTTP/1.1" 200 350 CUPS-Get-Classes successful-ok
localhost - - [05/Dec/2006:15:01:04 -0500] "POST / HTTP/1.1" 200 72 CUPS-Get-Default successful-ok
localhost - - [05/Dec/2006:15:01:04 -0500] "POST / HTTP/1.1" 200 350 CUPS-Get-Printers successful-ok
localhost - - [05/Dec/2006:15:01:04 -0500] "POST / HTTP/1.1" 200 350 CUPS-Get-Classes successful-ok
localhost - - [05/Dec/2006:15:01:04 -0500] "POST / HTTP/1.1" 200 72 CUPS-Get-Default successful-ok
localhost - - [05/Dec/2006:15:01:18 -0500] "POST / HTTP/1.1" 200 350 CUPS-Get-Printers successful-ok
localhost - - [05/Dec/2006:15:01:18 -0500] "POST / HTTP/1.1" 200 350 CUPS-Get-Classes successful-ok
localhost - - [05/Dec/2006:15:01:18 -0500] "POST / HTTP/1.1" 200 72 CUPS-Get-Default successful-ok
localhost - - [05/Dec/2006:15:01:20 -0500] "POST / HTTP/1.1" 200 350 CUPS-Get-Printers successful-ok
localhost - - [05/Dec/2006:15:01:20 -0500] "POST / HTTP/1.1" 200 350 CUPS-Get-Classes successful-ok
localhost - - [05/Dec/2006:15:01:20 -0500] "POST / HTTP/1.1" 200 72 CUPS-Get-Default successful-ok
localhost - - [05/Dec/2006:15:01:20 -0500] "POST /printers/HPLaserJet HTTP/1.1" 200 355911 Print-Job successful-ok
localhost - - [05/Dec/2006:16:20:10 -0500] "GET / HTTP/1.1" 200 5725 - -
localhost - - [05/Dec/2006:16:20:14 -0500] "GET /printers HTTP/1.1" 200 0 - -
localhost - - [05/Dec/2006:16:20:14 -0500] "POST / HTTP/1.1" 200 135 CUPS-Get-Default successful-ok
localhost - - [05/Dec/2006:16:20:14 -0500] "POST / HTTP/1.1" 200 520 CUPS-Get-Printers successful-ok
localhost - - [05/Dec/2006:16:20:14 -0500] "GET /printers HTTP/1.1" 200 6551 - -
localhost - - [05/Dec/2006:16:20:17 -0500] "GET /admin/?op=set-as-default&printer_name=HPLaserJet HTTP/1.1" 200 0 - -
localhost - - [05/Dec/2006:16:20:18 -0500] "POST /admin/ HTTP/1.1" 401 123 CUPS-Set-Default successful-ok
localhost - - [05/Dec/2006:16:20:17 -0500] "GET /admin/?op=set-as-default&printer_name=HPLaserJet HTTP/1.1" 401 0 - -
localhost - - [05/Dec/2006:16:20:17 -0500] "GET /admin/?op=set-as-default&printer_name=HPLaserJet HTTP/1.1" 200 0 - -
_________________
H T T P : / / W W W . B I N A R Y F R E E D O M . I N F O /
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Wed Dec 06, 2006 11:05 am    Post subject: Reply with quote

Thank you, it does seem to have yielded some fruit
Code:
D [05/Dec/2006:16:20:18 -0500] [CGI] cgi_passwd(prompt="Password for lp on localhost? ") called!
From this it seems that you are using lp as the admin user and, usually, lp is set up with something in the password field which cannot be matched by any string
Code:
# grep /etc/shadow -e lp
lp:*:9797:0:::::
so authorization will always fail.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
orange_juice
Guru
Guru


Joined: 16 Feb 2006
Posts: 588
Location: Athens - Greece

PostPosted: Wed Dec 06, 2006 1:04 pm    Post subject: Reply with quote

Code:
D [05/Dec/2006:16:20:18 -0500] [CGI] cgi_passwd(prompt="Password for lp on localhost? ") called!


Yup! This is the situation for me too...

How can the admin user be changed? I also suppose that the admin user should be changed from lp to root?

Kind regards,
orange_juice
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Wed Dec 06, 2006 4:41 pm    Post subject: Reply with quote

orange_juice wrote:
Code:
D [05/Dec/2006:16:20:18 -0500] [CGI] cgi_passwd(prompt="Password for lp on localhost? ") called!
Yup! This is the situation for me too...

How can the admin user be changed? I also suppose that the admin user should be changed from lp to root?
I see now that this is a will o' the wisp: the code in cups/auth.c is
Code:
    snprintf(prompt, sizeof(prompt), _("Password for %s on %s? "), cupsUser(),
             http->hostname[0] == '/' ? "localhost" : http->hostname);
showing that the "lp" comes from cupsUser() and the "localhost" comes from "http->hostname[0] == '/' ? "localhost" : http->hostname". It looked as though it was really displaying the username given in the popup box but it doesn't seem so.

Here I enter "root" and give the root password and it's accepted.

From what I understand, and put in the original reply, any user name which appears in /etc/passwd on the machine (localhost), is in SystemGroup (by default lpadmin) and with a valid password (not "*") should be accepted as a valid administrator.

To test this, and see what appears in error_log for successful and unsuccessful authorizations, I have set LogLevel to "debug2" (the "d" before each line shows "debug2") and, with a user belonging to lpadmin, get
Code:
d [06/Dec/2006:16:16:38 +0000] cupsdIsAuthorized: username="wynn"
d [06/Dec/2006:16:16:38 +0000] cupsdIsAuthorized: Checking user membership...
d [06/Dec/2006:16:16:38 +0000] cupsdCheckGroup(username="wynn", user=0xb7d40974,  groupname="lpadmin")

This user does not belong to lpadmin
Code:
d [06/Dec/2006:16:25:36 +0000] cupsdIsAuthorized: username="mark"
d [06/Dec/2006:16:25:36 +0000] cupsdIsAuthorized: Checking user membership...
d [06/Dec/2006:16:25:36 +0000] cupsdCheckGroup(username="mark", user=0xb7d40974,
 groupname="lpadmin")
d [06/Dec/2006:16:25:36 +0000] get_md5_password(username="mark", group="lpadmin"
, passwd=0xbf82714b)
E [06/Dec/2006:16:25:36 +0000] CUPS-Add-Modify-Printer: Unauthorized
Curiously enough, having failed with /etc/passwd, CUPS then seems to check /etc/cups/passwd.md5 :o
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
orange_juice
Guru
Guru


Joined: 16 Feb 2006
Posts: 588
Location: Athens - Greece

PostPosted: Wed Dec 06, 2006 5:07 pm    Post subject: Reply with quote

OK...

I have set debug2, however, it produces dozens of pages!

Bump! :roll:

The computer with the problem is an AMD64. I have an x86 which has no problem at all.

Is this possible to be a platform specific issue?

EDIT:
I grepped for username and I found the relevant entry:
Code:
d [06/Dec/2006:19:01:25 +0200] cupsdIsAuthorized: con->uri="/admin/", con->best=0x55eb00((null))
d [06/Dec/2006:19:01:25 +0200] cupsdIsAuthorized: level=AUTH_USER, type=AUTH_BASIC, satisfy=AUTH_SATISFY_ALL, num_names=1
d [06/Dec/2006:19:01:25 +0200] cupsdIsAuthorized: op=4003(CUPS-Add-Modify-Printer)
d [06/Dec/2006:19:01:25 +0200] cupsdIsAuthorized: auth=AUTH_ALLOW...
d [06/Dec/2006:19:01:25 +0200] cupsdIsAuthorized: username=""
E [06/Dec/2006:18:59:22 +0200] CUPS-Add-Modify-Printer: Unauthorized
D [06/Dec/2006:18:59:22 +0200] cupsdSendError: 8 code=401 (Unauthorized)
D [06/Dec/2006:18:59:22 +0200] [CGI] cgi_passwd(prompt="Password for lp on localhost? ") called!

However I had provided a username!!! It was either root, or flyer... Grepping for flyer returned ... zip!!!

Grepping for root, the only entries returned are:

Code:
d [06/Dec/2006:18:58:59 +0200] pipe_command: envp[9] = "SERVER_ADMIN=root@daedalus.sea"
d [06/Dec/2006:18:58:59 +0200] pipe_command: envp[10] = "SOFTWARE=CUPS/1.2.6"
d [06/Dec/2006:18:58:59 +0200] pipe_command: envp[11] = "TMPDIR=/var/spool/cups/tmp"
d [06/Dec/2006:18:58:59 +0200] pipe_command: envp[12] = "USER=root"


Why? The problem seems to be that although I enter a username, CUPS manipulates it as I had not given one at all...

Kind regards,
orange_juice
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Wed Dec 06, 2006 5:47 pm    Post subject: Reply with quote

Yes, debug2 really gives you everything and it's difficult to separate out the bits you need.

grepping for cupsdCheckGroup should find the bits where it is handling the usename/password.

I notice
Code:
D [06/Dec/2006:18:59:22 +0200] cupsdSendError: 8 code=401 (Unauthorized)
which doesn't appear in the log here at all — are you trying to administer CUPS from a different machine? Everything I posted was done using localhost:631
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
orange_juice
Guru
Guru


Joined: 16 Feb 2006
Posts: 588
Location: Athens - Greece

PostPosted: Wed Dec 06, 2006 6:12 pm    Post subject: Reply with quote

All my operations are performed from localhost:631.

I grepped for cupsdCheckGroup but I did not find anything...! Do you have any idea why?

Thank you for your help and patience!

Kind regards,
orange_juice
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Wed Dec 06, 2006 7:13 pm    Post subject: Reply with quote

For some reason — finding it will solve your problem — your installation and the one here are behaving differently.

cups-1.2.7 here (1.2.6 shouldn't make any difference), you have replaced your cupsd.conf with the cupsd.conf.default which came with 1.2.6.

Hmm, I missed "pam_authenticate()" from your first post, obviously using /etc/passwd to authenticate root.

And you've run the emerge instructions from nightmorph's post.

I can't think what there could be that is different.

I'll try downgrading an AMD64 machine to 1.2.6, running the emerge instructions and adding a USB printer. Hasta la vista :)
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Wed Dec 06, 2006 8:29 pm    Post subject: Reply with quote

Quote:
I'll try downgrading an AMD64 machine to 1.2.6, running the emerge instructions and adding a USB printer.
Done that. unmerged cups-1.2.7 first, removed /etc/cups and its contents, there was no /usr/lib/cups and nothing else was emerged again.

It works with root and the root password.

I did notice that the emerge suggested replacing "Listen localhost:631" by Listen *:631" but it didn't like it. *:631 is in the man page too. "Listen 0.0.0.0:631" worked however.

So, no progress, I'm afraid. I can't think of anything else to suggest.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
orange_juice
Guru
Guru


Joined: 16 Feb 2006
Posts: 588
Location: Athens - Greece

PostPosted: Thu Dec 07, 2006 10:34 am    Post subject: Reply with quote

wynn wrote:
I'll try downgrading an AMD64 machine to 1.2.6, running the emerge instructions and adding a USB printer.


Thank you very much for your time, it is amazing what you did!

So!!!

I will first try to keep my cpu in shape...
Code:
emerge gcc && env-update && source /etc/profile && emerge linux-headers glibc binutils-config binutils gettext gcc-config gcc && env-update && source /etc/profile && emerge -e system && env-update && source /etc/profile && emerge -e system && env-update && source /etc/profile && emerge -e world || until emerge --resume --skipfirst; do date; done && revdep-rebuild


... and then start exploring in more depth the situation described in this thread ... and then I will post the results. :D

Thank you very much...

I 'll be back! b

Kind regards,
orange_juice
Back to top
View user's profile Send private message
orange_juice
Guru
Guru


Joined: 16 Feb 2006
Posts: 588
Location: Athens - Greece

PostPosted: Wed Dec 13, 2006 3:27 pm    Post subject: Reply with quote

Quote:
I will first try to keep my cpu in shape...
Code:
emerge gcc && env-update && source /etc/profile && emerge linux-headers glibc binutils-config binutils gettext gcc-config gcc && env-update && source /etc/profile && emerge -e system && env-update && source /etc/profile && emerge -e system && env-update && source /etc/profile && emerge -e world || until emerge --resume --skipfirst; do date; done && revdep-rebuild


... and then start exploring in more depth the situation described in this thread ... and then I will post the results. :D


:roll: ... Nothing new...

I also downgraded to cups 1.1.xxx and I have pasted the -according to my opinion- relevant posts from the error_log

With cups 1.1
Code:

d [13/Dec/2006:16:46:59 +0200] select_timeout: 244 seconds to update root certificate
d [13/Dec/2006:16:47:12 +0200] AcceptClient(lis=0x5449c0) 0 NumClients = 0
D [13/Dec/2006:16:47:12 +0200] AcceptClient: 7 from localhost:631.
d [13/Dec/2006:16:47:12 +0200] AcceptClient: Adding fd 7 to InputSet...
d [13/Dec/2006:16:47:12 +0200] ReadClient: 7, used=0, file=-1
D [13/Dec/2006:16:47:12 +0200] ReadClient: 7 GET /admin HTTP/1.1
d [13/Dec/2006:16:47:12 +0200] decode_auth(0x2ab36ab37010): Authorization string = "Basic cm9vdDpUd3JhTXBvcndOYUxlaXRvdXJnaXN3U3dzdGEhMjgxMjUzOS58"
d [13/Dec/2006:16:47:12 +0200] decode_auth: 7 username="root"
d [13/Dec/2006:16:47:12 +0200] IsAuthorized: con->uri = "/admin"
d [13/Dec/2006:16:47:12 +0200] FindBest: uri = "/admin"...
d [13/Dec/2006:16:47:12 +0200] FindBest: Location / Limit 7f
d [13/Dec/2006:16:47:12 +0200] FindBest: Location /admin Limit 7f
d [13/Dec/2006:16:47:12 +0200] FindBest: best = "/admin"
d [13/Dec/2006:16:47:12 +0200] IsAuthorized: auth = 0, satisfy=0...
d [13/Dec/2006:16:47:12 +0200] IsAuthorized: username = "root" password = 32 chars
d [13/Dec/2006:16:47:12 +0200] IsAuthorized: Checking "root", address = 7f000001, hostname = "localhost"
E [13/Dec/2006:16:47:14 +0200] IsAuthorized: pam_authenticate() returned 7 (Authentication failure)!
d [13/Dec/2006:16:47:14 +0200] ReadClient: Unauthorized request for /admin...
D [13/Dec/2006:16:47:14 +0200] SendError: 7 code=401 (Unauthorized)
d [13/Dec/2006:16:47:14 +0200] FindBest: uri = "/admin"...
d [13/Dec/2006:16:47:14 +0200] FindBest: Location / Limit 7f
d [13/Dec/2006:16:47:14 +0200] FindBest: Location /admin Limit 7f
d [13/Dec/2006:16:47:14 +0200] FindBest: best = "/admin"
D [13/Dec/2006:16:47:14 +0200] CloseClient: 7
d [13/Dec/2006:16:47:14 +0200] CloseClient: Removing fd 7 from InputSet and OutputSet...


With cups 1.2.6:
Code:
d [13/Dec/2006:17:20:19 +0200] cupsdReadClient: 9, used=0, file=-1 state=0
D [13/Dec/2006:17:20:19 +0200] cupsdReadClient: 9 POST /admin/ HTTP/1.1
d [13/Dec/2006:17:20:19 +0200] cupsdFindBest: uri = "/admin/"...
d [13/Dec/2006:17:20:19 +0200] cupsdFindBest: Location CUPS_INTERNAL_BROWSE_ACL Limit 0
d [13/Dec/2006:17:20:19 +0200] cupsdFindBest: Location /admin/conf Limit 7f
d [13/Dec/2006:17:20:19 +0200] cupsdFindBest: Location /admin Limit 7f
d [13/Dec/2006:17:20:19 +0200] cupsdFindBest: Location / Limit 7f
d [13/Dec/2006:17:20:19 +0200] cupsdFindBest: best = /admin
d [13/Dec/2006:17:20:19 +0200] cupsdAuthorize: con->uri="/admin/", con->best=0x55d360(/admin)
d [13/Dec/2006:17:20:19 +0200] cupsdAuthorize: Authorization=""
D [13/Dec/2006:17:20:19 +0200] cupsdAuthorize: No authentication data provided.
d [13/Dec/2006:17:20:19 +0200] cupsdIsAuthorized: con->uri="/admin/", con->best=0x55d360(/admin)
d [13/Dec/2006:17:20:19 +0200] cupsdIsAuthorized: level=AUTH_ANON, type=AUTH_NONE, satisfy=AUTH_SATISFY_ALL, num_names=0
d [13/Dec/2006:17:20:19 +0200] cupsdIsAuthorized: auth=AUTH_ALLOW...
d [13/Dec/2006:17:20:19 +0200] POST /admin/
d [13/Dec/2006:17:20:19 +0200] CONTENT_TYPE = application/ipp
d [13/Dec/2006:17:20:19 +0200] cupsdReadClient: 9 con->data_encoding=HTTP_ENCODE_LENGTH, con->data_remaining=357, con->file=-1
d [13/Dec/2006:17:20:19 +0200] cupsdReadClient: 9, used=349, file=-1 state=6
d [13/Dec/2006:17:20:19 +0200] cupsdReadClient: 9 con->data_encoding=HTTP_ENCODE_LENGTH, con->data_remaining=349, con->file=-1
d [13/Dec/2006:17:20:19 +0200] cupsdProcessIPPRequest(0x5a62c0[9]): operation_id = 4003
D [13/Dec/2006:17:20:19 +0200] CUPS-Add-Modify-Printer ipp://localhost/printers/EPSON_Stylus_Photo_RX620_USB_1
d [13/Dec/2006:17:20:19 +0200] add_printer(0x5a62c0[9], ipp://localhost/printers/EPSON_Stylus_Photo_RX620_USB_1)
d [13/Dec/2006:17:20:19 +0200] cupsdFindPolicyOp(p=0x55d560, op=4003(CUPS-Add-Modify-Printer))
d [13/Dec/2006:17:20:19 +0200] cupsdFindPolicyOp: Found exact match...
d [13/Dec/2006:17:20:19 +0200] cupsdIsAuthorized: con->uri="/admin/", con->best=0x55ebb0((null))
d [13/Dec/2006:17:20:19 +0200] cupsdIsAuthorized: level=AUTH_USER, type=AUTH_BASIC, satisfy=AUTH_SATISFY_ALL, num_names=1
d [13/Dec/2006:17:20:19 +0200] cupsdIsAuthorized: op=4003(CUPS-Add-Modify-Printer)
d [13/Dec/2006:17:20:19 +0200] cupsdIsAuthorized: auth=AUTH_ALLOW...
d [13/Dec/2006:17:20:19 +0200] cupsdIsAuthorized: username=""
E [13/Dec/2006:17:20:19 +0200] CUPS-Add-Modify-Printer: Unauthorized
D [13/Dec/2006:17:20:19 +0200] cupsdSendError: 9 code=401 (Unauthorized)
D [13/Dec/2006:17:20:19 +0200] [CGI] cgi_passwd(prompt="Password for lp on localhost? ") called!
d [13/Dec/2006:17:20:19 +0200] cupsdWriteClient: Read 13 bytes from file 10...
d [13/Dec/2006:17:20:19 +0200] Script header: Status: 401
D [13/Dec/2006:17:20:19 +0200] cupsdSendError: 7 code=401 (Unauthorized)
d [13/Dec/2006:17:20:19 +0200] cupsdWriteClient: 7 Status: 401
d [13/Dec/2006:17:20:19 +0200] Script header:
d [13/Dec/2006:17:20:19 +0200] cupsdWriteClient: 7
d [13/Dec/2006:17:20:19 +0200] cupsdWriteClient: 7 bytes=0, got_fields=1
d [13/Dec/2006:17:20:19 +0200] cupsdWriteClient: 7 bytes < 0
d [13/Dec/2006:17:20:19 +0200] cupsdWriteClient: Removing fd 7 from OutputSet...
d [13/Dec/2006:17:20:19 +0200] cupsdWriteClient: Removing fd 10 from InputSet...

d [13/Dec/2006:17:20:19 +0200] cupsdWriteClient: 7 Closing data file 10.
d [13/Dec/2006:17:20:19 +0200] cupsdWriteClient: 7 Removing temp file /var/spool/cups/00000004
D [13/Dec/2006:17:20:19 +0200] cupsdCloseClient: 7
d [13/Dec/2006:17:20:19 +0200] cupsdCloseClient: Removing fd 7 from InputSet and OutputSet...
d [13/Dec/2006:17:20:19 +0200] process_children()
D [13/Dec/2006:17:20:19 +0200] PID 8029 (/usr/libexec/cups/cgi-bin/admin.cgi) exited with no errors.
d [13/Dec/2006:17:20:19 +0200] cupsdReadClient: 9, used=0, file=-1 state=0
d [13/Dec/2006:17:20:19 +0200] cupsdReadClient: httpGets returned EOF...
D [13/Dec/2006:17:20:19 +0200] cupsdCloseClient: 9
d [13/Dec/2006:17:20:19 +0200] cupsdCloseClient: Removing fd 9 from InputSet and OutputSet...



The main difference I see is:
Cups 1.1:
Code:
d [13/Dec/2006:16:47:12 +0200] IsAuthorized: Checking "root", address = 7f000001, hostname = "localhost"
E [13/Dec/2006:16:47:14 +0200] IsAuthorized: pam_authenticate() returned 7 (Authentication failure)!


Cups 1.2:
Code:
d [13/Dec/2006:17:20:19 +0200] cupsdIsAuthorized: username=""
E [13/Dec/2006:17:20:19 +0200] CUPS-Add-Modify-Printer: Unauthorized
D [13/Dec/2006:17:20:19 +0200] cupsdSendError: 9 code=401 (Unauthorized)
D [13/Dec/2006:17:20:19 +0200] [CGI] cgi_passwd(prompt="Password for lp on localhost? ") called!


I cannot understand what is going on...

Kind regards,
orange_juice
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Wed Dec 13, 2006 3:59 pm    Post subject: Reply with quote

Have a look to see if there are any relevant error messages in /var/log: I don't have a default syslog-ng.conf here but it looks as it everything, including LOG_AUTH and LOG_AUTHPRIV messages go to /var/log/messages.

If you are still stuck, put a message in the CUPS Forums at http://www.cups.org/newsgroups.php: cups.general would be a good place.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
orange_juice
Guru
Guru


Joined: 16 Feb 2006
Posts: 588
Location: Athens - Greece

PostPosted: Wed Dec 13, 2006 7:54 pm    Post subject: Reply with quote

The only message I found is:

Code:
Dec 13 21:49:53 daedalus cups(pam_unix)[8277]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=root


I will try those forums, thank you.

Kind regards,
orange_juice
Back to top
View user's profile Send private message
orange_juice
Guru
Guru


Joined: 16 Feb 2006
Posts: 588
Location: Athens - Greece

PostPosted: Wed Dec 13, 2006 9:46 pm    Post subject: Reply with quote

OK!
Solved it... :D

I have put
Code:
AuthType Digest
and used the
Code:
lppasswd -a root


I cannot understand why it was asking for lp password while it was set to
Code:
AuthType Basic

Anyway...
Thank you very much for your help throught this thread wynn.

Kind regards,
orange_juice
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum