On Mon, 22 Mar 2004, Artur Hecker wrote:

> hi
> 
> > something to do with radius running as radiusd/radiusd)
> 
> (it's not related but yes, it can't read the shadow file as user 
> 'radiusd'. deactivate the caching if wou want it back.)

But caching is disabled (as in the default config, cache = no) and still 
unix module fails to load on server startup or check config (the last 
lines):
Module: Loaded Pam 
 pam: pam_auth = "radiusd"
Module: Instantiated pam (pam) 
radiusd.conf[545] Failed to link to module 'rlm_unix': file not found 

Interesting is that it does find the file (from a strace output) but it 
fails on something else, I thought it fails on accessing shadow beeing run 
as a non-privileged user.

Here are the relevant part of the strace output:
[pid  8849] access("/usr/lib/rlm_unix.so", R_OK) = 0
[pid  8849] open("/usr/lib/rlm_unix.so", O_RDONLY) = 3
[pid  8849] read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20?\0\000"..., 
512) = 512
[pid  8849] fstat64(3, {st_mode=S_IFREG|0755, st_size=53892, ...}) = 0
[pid  8849] mmap2(NULL, 107232, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40243000
[pid  8849] mmap2(0x4024f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 
0xb) = 0x4024f000
[pid  8849] mmap2(0x40251000, 49888, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40251000
[pid  8849] close(3)                    = 0
[pid  8849] mprotect(0x40243000, 49152, PROT_READ|PROT_WRITE) = 0
[pid  8849] munmap(0x40243000, 107232)  = 0
[pid  8849] time(NULL)                  = 1079964365
[pid  8849] write(1, "radiusd.conf[545] Failed to link"..., 71) = 71

Pretty strange huh ? :)

-- 
Mihai RUSU                                    Email: [EMAIL PROTECTED]
GPG : http://dizzy.roedu.net/dizzy-gpg.txt    WWW: http://dizzy.roedu.net
                       "Linux is obsolete" -- AST

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to