Operating System/CentOS
[CentOS7] 리눅스 logrotate 에러 "error: skipping "/var/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 shou..
KoreaNirsa
2020. 5. 15. 10:37
반응형
-
리눅스 logrotate 에러 "error: skipping "/var/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."
해당 에러는 권한 설정 문제로 발생 합니다. /etc/logrotate.d/ 디렉토리에 생성한 logrotate 파일의 내용에 su root root 를 추가해주면 에러를 해결할 수 있습니다.
/var/log/ {
su root root
daily
missingok
compress
create 600 root root
}
반응형