Error: skipping "/logs/hello.log" because parent directory has insecure permissions (It's world writable or writable by group which is not "root")

Jmnote (토론 | 기여)님의 2022년 5월 13일 (금) 01:35 판 (→‎개요)

개요

error: skipping "/logs/hello.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.
2022-05-12T01:38:39+0000  Using templated /etc/logrotate.conf:
2022-05-12T01:38:39+0000  /logs/*.log {
2022-05-12T01:38:39+0000    copytruncate
2022-05-12T01:38:39+0000    compress
2022-05-12T01:38:39+0000    rotate 2
2022-05-12T01:38:39+0000    size 1M
2022-05-12T01:38:39+0000  }
2022-05-12T01:38:39+0000  assuming "* * * * *" is a cron expression; appending to root's crontab
2022-05-12T01:38:39+0000  crond: crond (busybox 1.31.1) started, log level 7
2022-05-12T01:39:00+0000  crond: USER root pid  15 cmd /etc/.logrotate.cronjob
2022-05-12T01:39:00+0000  error: skipping "/logs/hello.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.
2022-05-12T01:40:00+0000  crond: USER root pid  18 cmd /etc/.logrotate.cronjob
2022-05-12T01:40:00+0000  error: skipping "/logs/hello.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.
2022-05-12T01:41:00+0000  crond: USER root pid  21 cmd /etc/.logrotate.cronjob
2022-05-12T01:41:00+0000  error: skipping "/logs/hello.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.
...
# stat /logs
  File: /logs
  Size: 23              Blocks: 0          IO Block: 4096   directory
Device: fd00h/64768d    Inode: 171586      Links: 2
Access: (0777/drwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2022-05-12 01:39:00.000000000
Modify: 2022-05-12 01:38:38.000000000
Change: 2022-05-12 01:38:38.000000000
chmod a-w /logs
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}