How to rotate the samba logs with logrotate?

Solution Verified - Updated -

Issue

  • The old log files are still present after rotation by logroate.
-rw-r--r-- 1 root root 206983237 Dec 13 03:16 log.nmbd-20151213
-rw-r--r-- 1 root root  40219811 Dec 13 03:16 log.nmbd.old.gz-20151213

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content