Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error loading shared libraries when running lppasswd as root
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
lefou
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 199
Location: Germany, Lusatia

PostPosted: Wed Feb 18, 2004 10:36 pm    Post subject: Error loading shared libraries when running lppasswd as root Reply with quote

One Week ago I recognised, that printing with cups 1.1.20 no longer works.
In /var/log/cups/error_log I found:

D [18/Feb/2004:22:45:33 +0100] [Job 14] /usr/lib/cups/filter/pstops: Permission denied
D [18/Feb/2004:22:45:33 +0100] [Job 14] /usr/lib/cups/filter/foomatic-rip: Permission denied

Since then, I tried to resolv the problem, I recompiled different versions of cups and foomatic.
While running revdep-rebuild, I recognised, that lppasswd cannot link against libz, so I tried to recompile it, too, but no luck.

The strange thing is, that if I am an normal user, I cat use lppasswd, but if I'm root I get the following errormessage:

lppasswd: error while loading shared libraries: libz.so.1: cannot open shared object file: Permission denied

The output off 'ldd /usr/bin/lppasswd' as root is:

linux-gate.so.1 => (0xffffe000)
libz.so.1 => not found
libcups.so.2 => not found
libnsl.so.1 => not found
libcrypt.so.1 => not found
libc.so.6 => not found

But the same command as normal user gets:

linux-gate.so.1 => (0xffffe000)
libz.so.1 => /usr/lib/libz.so.1 (0x40018000)
libcups.so.2 => /usr/lib/libcups.so.2 (0x4002e000)
libnsl.so.1 => /lib/libnsl.so.1 (0x4006c000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40080000)
libc.so.6 => /lib/libc.so.6 (0x400ad000)
libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x401e1000)
libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x40211000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libdl.so.2 => /lib/libdl.so.2 (0x40315000)

'ls -l /usr/bin/lppasswd' gets:

-rwsr-xr-x 1 lp lp 8944 18. Feb 21:11 /usr/bin/lppasswd

Maybe because lppasswd ist suid?
This is really strange, is'n it?
I'm running Kernel 2.6 on a IBM ThinkPad with a P4-M.

Has anybody ever seen such phenomenon or has some ideas how to repair it?

Many thanks in advance
Back to top
View user's profile Send private message
lefou
Apprentice
Apprentice


Joined: 18 Feb 2004
Posts: 199
Location: Germany, Lusatia

PostPosted: Tue Mar 30, 2004 6:20 pm    Post subject: Reply with quote

Nobody, who can help?

The problem is with lppasswd suid-bit set.

# chmod 755 lppasswd
# ldd lppasswd
linux-gate.so.1 => (0xffffe000)
libz.so.1 => /usr/lib/libz.so.1 (0x40018000)
libcups.so.2 => /usr/lib/libcups.so.2 (0x4002e000)
libnsl.so.1 => /lib/libnsl.so.1 (0x4006c000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40080000)
libc.so.6 => /lib/libc.so.6 (0x400ad000)
libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x401e1000)
libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x40211000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
libdl.so.2 => /lib/libdl.so.2 (0x40315000)
# chmod 4755 lppasswd
# ldd lppasswd
linux-gate.so.1 => (0xffffe000)
libz.so.1 => not found
libcups.so.2 => not found
libnsl.so.1 => not found
libcrypt.so.1 => not found
libc.so.6 => not found

Has anybody an idea, why I cannot link lppasswd in runtime, when suid-bit is set?

Kernel 2.6.3
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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