logrotate 报错。Set "su" directive in config file to tell logrotate which user/group should be used for rotation.

来源:本站原创 IT必备工具 超过14 views围观 0条评论

分割日志时报错: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.jdccie.com/ 版权所有。本站文章除注明出处外,皆为作者原创文章,可自由引用,但请注明来源。 禁止全文转载。
本文链接:http://www.jdccie.com/?p=3981转载请注明转自CCIE那点事
如果喜欢:点此订阅本站
  • 相关文章
  • 为您推荐
  • 各种观点

暂时还木有人评论,坐等沙发!
发表评论

快捷键:Ctrl+Enter