logging permissions bug

Peter Nixon listuser at peternixon.net
Mon Sep 4 15:55:26 CEST 2006


Hi Guys

I think the following behaviour is a bug. 

When radiusd is configured to run as user "radiusd" the first time it starts 
up, if there is no radius.log file it creates it as user root, then promptly 
fails because it cannot write to it as user "radiusd".

# ls -l /var/log/radius
total 0
drwx------ 2 radiusd radiusd 48 2006-09-02 14:34 radacct
-rw-r--r-- 1 radiusd radiusd  0 2006-09-02 14:34 radutmp
# rcradiusd start
Starting RADIUS daemon radiusd: Couldn't open /var/log/radius/radius.log for 
logging: Permission denied
  (rlm_exec: wait=yes but no output defined. Did you mean output=none?)
                                                                      done
# ls -l /var/log/radius
total 4
drwx------ 2 radiusd radiusd  48 2006-09-02 14:34 radacct
-rw-r--r-- 1 root    root    208 2006-09-04 14:06 radius.log
-rw-r--r-- 1 radiusd radiusd   0 2006-09-02 14:34 radutmp

-- 

Peter Nixon
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20060904/9b141c4a/attachment.pgp>


More information about the Freeradius-Devel mailing list