'2019/02/12'에 해당되는 글 1건

  1. 2019.02.12 logrotate : because parent directory has insecure permissions 해결 하기



$ sudo logrotate /etc/logrotate.d/uwsgi.logrotate


error: skipping "/var/log/sentry/sentry-cron.stderr.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.


이렇게 에러가 나는 이유는 디렉토리의 권한이 너무 많이 있기 때문에 디렉토리의 group, other에 write 권한 을 제외한다면 더 이상 에러가 발생하지 않을 것이다.

Posted by '김용환'
,