NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

RedBullet's avatar
Dec 23, 2015

how to logrotate /var/log/btmp?

So, I got /var/tmp/btmp filling up on one of my NASes (running latest OS6). I know why (so don't start off by telling me something bad is happening, I have fixed that)./

 

What was concerning was that the file was allowed to grow (apparently) without bound on my limited root file system. I added an entry to rotatelogs.d but couldn't even tell if that was the proper mechanism.

 

Here is what I created:

/var/log/btmp {
monthly
size 100M
create 0600 root utmp
rotate 2
}

10 Replies

Replies have been turned off for this discussion
      • mdgm-ntgr's avatar
        mdgm-ntgr
        NETGEAR Employee Retired

        I have seen a system where this log file has grown to a huge size before and have passed on that you have encountered this as well.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More