Created
October 6, 2015 01:26
-
-
Save kometchtech/06fc3326c83338afd151 to your computer and use it in GitHub Desktop.
logrotate unbound
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/log/unbound/*.log { | |
weekly | |
rotate 7 | |
missingok | |
notifempty | |
compress | |
delaycompress | |
sharedscripts | |
create 644 | |
postrotate | |
/usr/local/sbin/unbound-control log_reopen | |
endscript | |
} |
Ubuntu 18.04 unbound-control path is
postrotate
/usr/sbin/unbound-control log_reopen
endscript
maybe remove full path from postrotate command ?
in common it work fine.
maybe remove full path from postrotate command ?
in common it work fine.
Assume a hacker will drop somewhere in a PATH malicious script with name unbound-control
and guess what happened if you will do that.
Never ever relay on PATH in system operation, cron and so on if you want to sleep well
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍