2018.11
05
logrotate 報錯。Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
分割日志時報錯:error: skipping "/var/log/dnx/.access.log" because parent directory has insecure permissions (It’s world writable or writable by group which is not "root") Set "su" directive in config file to tell logrotate which user/group should be used for rotation.
解決
添加“su 用戶 組”
到/etc/logrotate.d/dnx文件中即可
/datashare/log/fat/match/*.log
{
nocompress
daily
copytruncate
create
ifempty
su root root
}
文章出自:CCIE那點事 http://www.qdxgqk.live/ 版權所有。本站文章除注明出處外,皆為作者原創文章,可自由引用,但請注明來源。 禁止全文轉載。
本文鏈接:http://www.qdxgqk.live/?p=3981轉載請注明轉自CCIE那點事
如果喜歡:點此訂閱本站
暫時還木有人評論,坐等沙發!