rlm_counter: Failed to open file /etc/raddb/db.daily: Permission denied

Alan DeKok aland at deployingradius.com
Thu Nov 13 09:06:30 CET 2008


Ted Lum wrote:
> Any idea how to fix this?

  Don't edit the default configuration files to break them.

  The default configuration files have the server running as root.
You've changed that to a user who does NOT have permission to read the
configuration files.

> Wed Nov 12 21:29:16 2008 : Error: rlm_counter: Failed to open file
> /etc/raddb/db.daily: Permission denied
...
> /etc/raddb
> -rw-------  1 radiusd radiusd 12312 Nov 12 21:29 db.daily

  The server isn't running as user "radiusd/radiusd".  Fix that.

> This works:
> # /usr/sbin/radiusd -X

 Becuse you're running it as root.

> This works:
> # strace /usr/sbin/radiusd

  Because you're running it as root.

> This does not work:
> # service radiusd start
> Starting RADIUS server:                                    [FAILED]

  Because it changes UID's, and does not run as root.

  Alan DeKok.



More information about the Freeradius-Users mailing list