pam - shadow permission problem

Johannes Weißl johannes.weissl at gmx.de
Wed Apr 28 14:11:58 PDT 2004


Hello,

I compiled and installed Linux-PAM-0.77, but though all files
have correct permissions and the configuration is correct,
pam_authenticate() fails (returns 7, PAM_PERM_DENIED).

If I replace the pam_unix.so module with the 0.76-19 version from
Debian sid, everything works fine ...

Also when /etc/shadow is readable to everyone, authenticate works,
so I guess something is wrong with calling the helper binary.
Here is a cut-out from the strace output:

/* the self-compiled pam_unix.so */

open("/etc/shadow", O_RDONLY)           = -1 EACCES (Permission denied)
geteuid32()                             = 1000
pipe([4, 5])                            = 0
rt_sigaction(SIGCHLD, {SIG_IGN}, {SIG_DFL}, 8) = 0
fork()                                  = 1221
write(5, "nullok\0\0", 8)               = 8
write(5, "******\0", 7)                 = 7
close(4)                                = 0
close(5)                                = 0
wait4(1221, 0xbffff71c, 0, NULL)        = -1 ECHILD (No child processes)


/* debian pam_unix.so */

open("/etc/shadow", O_RDONLY)           = -1 EACCES (Permission denied)
geteuid32()                             = 1000
pipe([4, 5])                            = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], NULL, 8) = 0
fork()                                  = 1932
write(5, "nullok\0\0", 8)               = 8
write(5, "******\0", 7)                 = 7
close(4)                                = 0
close(5)                                = 0
wait4(1932, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1932


Did anyone have the same problem? If so, how could you solve it?
Thanks in advice.

-- 
sorry for my bad English,
Johannes Weißl



More information about the blfs-support mailing list