control-socket name one character short

Thomas Fagart tfagart at brozs.net
Wed Oct 22 23:25:30 CEST 2008


Andrew Hood wrote:
> Alan DeKok wrote:
>   
>> Thomas Fagart wrote:
>>
>>     
>>> I though it was a question of rights, but even when I chmod/chown it with
>>> more rights I still get the following error.
>>>
>>> radmin: Failed connecting to /usr/local/var/run/radiusd/radiusd.sock: No
>>> such file or directory
>>>       
>>   <shrug>  If that's the error being returned by the OS, I'm not sure
>> what else to suggest.
>>     
>
> strace/truss and find out what filename it is really trying to use?
>
>   
I've tried with truss and it gives the following

portable-bsd# truss radmin
....


....
stat("/usr/local/etc/raddb/sites-enabled/control-socket",{mode=-rw-r----- 
,inode=2357223,size=2056,blksize=4096}) = 0 (0x0)
stat("/usr/local/etc/raddb/sites-enabled/control-socket",{mode=-rw-r----- 
,inode=2357223,size=2056,blksize=4096}) = 0 (0x0)
open("/usr/local/etc/raddb/sites-enabled/control-socket",O_RDONLY,0666) 
= 5 (0x5)
fstat(5,{mode=-rw-r----- ,inode=2357223,size=2056,blksize=4096}) = 0 (0x0)
read(5,"# -*- text -*-\n################"...,4096) = 2056 (0x808)
read(5,0x2834c000,4096)                          = 0 (0x0)
close(5)                                         = 0 (0x0)
getdirentries(0x4,0x2830d000,0x1000,0x2830c894,0x0,0x1000) = 0 (0x0)
lseek(4,0x0,SEEK_SET)                            = 0 (0x0)
close(4)                                         = 0 (0x0)
read(3,0x28308000,4096)                          = 0 (0x0)
close(3)                                         = 0 (0x0)
socket(PF_LOCAL,SOCK_STREAM,0)                   = 3 (0x3)
connect(3,{ AF_UNIX 
"/usr/local/var/run/radiusd/radiusd.sock(ô(Dì¿¿8X(Ê(" },40) ERR#2 'No 
such file or directory'
radmin: Failed connecting to /usr/local/var/run/radiusd/radiusd.sock: No 
such file or directory
write(2,"radmin: Failed connecting to /us"...,96) = 96 (0x60)
close(3)                                         = 0 (0x0)




I'll try to understand what does it means, but do you have a clue with 
that output ?

Thomas



More information about the Freeradius-Users mailing list