AuthType Digest not working on one system #939

Closed
michaelrsweet opened this Issue Oct 9, 2004 · 2 comments

Comments

Projects
None yet
1 participant
Collaborator

michaelrsweet commented Oct 9, 2004

Version: 1.1.22rc1
CUPS.org User: pipitas

I am stunned. AuthTyp Digest is not working on one of my systems (an older SUSE-8.2 with some updates), because "lppasswd -a kurt" says it cant open passwd file....

Initially the permissions were set to 400 and to both files. But even after I changed it to 777 there is still this failure:

kde-bitshop:/etc/cups # chmod 777 passwd.*

kde-bitshop:/etc/cups # ls -l passwd.*
-rwxrwxrwx 1 lp root 542 Feb 22 2003 passwd.md5
-rwxrwxrwx 1 lp root 542 Nov 2 2002 passwd.old

kde-bitshop:/etc/cups # strace -eopen lppasswd -a kurt
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/29/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/29/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libz.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libz.so.1", O_RDONLY) = 3
open("/usr/lib/libcups.so.2", O_RDONLY) = 3
open("/usr/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libnsl.so.1", O_RDONLY) = 3
open("/usr/lib/libcrypt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libcrypt.so.1", O_RDONLY) = 3
open("/usr/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY) = 3
open("/usr/lib/libssl.so.0.9.6", O_RDONLY) = 3
open("/usr/lib/libcrypto.so.0.9.6", O_RDONLY) = 3
open("/usr/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY) = 3
open("/etc/nsswitch.conf", O_RDONLY) = 3
open("/usr/lib/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libnss_compat.so.2", O_RDONLY) = 3
open("/etc/group", O_RDONLY) = 3
open("/dev/tty", O_RDWR|O_CREAT|O_TRUNC, 0666) = 3
Enter password:
open("/dev/tty", O_RDWR|O_CREAT|O_TRUNC, 0666) = 3
Enter password again:
open("/etc/cups/passwd.new", O_WRONLY|O_CREAT|O_EXCL, 0400) = -1 EACCES (Permission denied)
lppasswd: Unable to open passwd file: Permission denied

kde-bitshop:/etc/cups # uname -a
Linux kde-bitshop 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown

It may be that my system is b0rken -- but I'd be gratefull if I could get some feedback on how to further debug this.

Collaborator

michaelrsweet commented Oct 9, 2004

CUPS.org User: pipitas

More info:

kde-bitshop:/etc/cups # cups-config --libs
-lcups -lssl -lcrypto -lnsl

kde-bitshop:/etc/cups # ls -ltar /usr/bin/lppasswd
-r-sr-xr-x 1 lp root 8792 Oct 9 20:30 /usr/bin/lppasswd

kde-bitshop:/etc/cups # which lppasswd
/usr/bin/lppasswd

So this is actually my newly installed lppasswd binary from today....

Collaborator

michaelrsweet commented Oct 10, 2004

CUPS.org User: mike

I think the issue is the permissions on /etc/cups, however you shouldn't be able to add users unless you are root...

michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment