Hello Guys, Radius is generating NULL file under / and it keep growing , seems like accounting logs. Can somebody help me know how can I disable it as it is filling up root space over server. # ls -l /NULL -rw-r--r-- 1 root root 672768 Jul 12 08:26 /NULL We are using freeradius version “3.0.11-2” Any help or suggestion will be highly appreciated. Thanks & Regards, Nitin Sharma
On Thu, 2019-08-01 at 09:42 +0000, Sharma, Nitin via Freeradius-Users wrote:
Radius is generating NULL file under / and it keep growing , seems like accounting logs. Can somebody help me know how can I disable it as it is filling up root space over server.
FreeRADIUS doesn't do that by default.
Any help or suggestion will be highly appreciated.
Look at the debug output and work out where you've configured it to write to "/NULL". Or grepping for "NULL" in raddb should also work. Of course it's also possible you've configured FreeRADIUS to send to syslog, and your syslog daemon is misconfigured. -- Matthew
Hello Matthew, Thanks for responding. I can see below while running radius in debug mode. Not sure if that’s the case. ``` # Loading module "unix" from file /etc/raddb/mods-enabled/unix unix { radwtmp = "NULL" } ``` Below is the content of unix file: ``` unix { # # The location of the "wtmp" file. # The only use for 'radlast'. If you don't use 'radlast', then # you can comment out this item. # # Note that the radwtmp file may get large! You should # rotate it (cp /dev/null radwtmp), or just not use it. # # Disabled using https://sim.amazon.com/issues/otie-eis-261 # radwtmp = ${logdir}/radwtmp } ``` Not sure if this the case behind it. Thanks & Regards, Nitin Sharma On 01/08/19, 4:56 PM, "Matthew Newton" <mcn@freeradius.org> wrote: On Thu, 2019-08-01 at 09:42 +0000, Sharma, Nitin via Freeradius-Users wrote: > Radius is generating NULL file under / and it keep growing , seems > like accounting logs. > Can somebody help me know how can I disable it as it is filling up > root space over server. FreeRADIUS doesn't do that by default. > Any help or suggestion will be highly appreciated. Look at the debug output and work out where you've configured it to write to "/NULL". Or grepping for "NULL" in raddb should also work. Of course it's also possible you've configured FreeRADIUS to send to syslog, and your syslog daemon is misconfigured. -- Matthew
On Aug 1, 2019, at 7:36 AM, Sharma, Nitin via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
I can see below while running radius in debug mode. Not sure if that’s the case.
``` # Loading module "unix" from file /etc/raddb/mods-enabled/unix unix { radwtmp = "NULL" } ```
Yes, that's the problem. Someone edited the default configuration and broke it. Don't do that. If you want to disable logging to radwtmp, just delete the "unix" module from the precct / accounting sections. Alan DeKok.
Thanks Alan, I updated the config and removed 'unix' module from accounting section and seems its working the way I was expecting. Thanks & Regards, Nitin Sharma On 01/08/19, 5:09 PM, "Alan DeKok" <aland@deployingradius.com> wrote: On Aug 1, 2019, at 7:36 AM, Sharma, Nitin via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote: > I can see below while running radius in debug mode. Not sure if that’s the case. > > ``` > # Loading module "unix" from file /etc/raddb/mods-enabled/unix > unix { > radwtmp = "NULL" > } > ``` Yes, that's the problem. Someone edited the default configuration and broke it. Don't do that. If you want to disable logging to radwtmp, just delete the "unix" module from the precct / accounting sections. Alan DeKok.
participants (3)
-
Alan DeKok -
Matthew Newton -
Sharma, Nitin