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

來源:本站原創 IT必備工具 超過421 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.qdxgqk.live/ 版權所有。本站文章除注明出處外,皆為作者原創文章,可自由引用,但請注明來源。 禁止全文轉載。
本文鏈接:http://www.qdxgqk.live/?p=3981轉載請注明轉自CCIE那點事
如果喜歡:點此訂閱本站
  • 相關文章
  • 為您推薦
  • 各種觀點
?
暫時還木有人評論,坐等沙發!
發表評論

您必須 [ 登錄 ] 才能發表留言!

?
?
萌宠夺宝游戏