월요일, 2월 11, 2008

Sendmail - Group writable directory -

Sendmail 관련 데이터 파일들의 보안 설정이 잘못되어서
LogWatch 에 자꾸만 오류 메시지(/var/log/maillog)가 뜬다.

기본적으로 센드메일 데이터 파일은 그룹 쓰기 가능 디렉토리에 있어서는 않된다는군.. 까칠하긴

LogWatch의 메일이 root로 가기때문에 그걸 내 개인 계정으로 포워딩했더니 발생한 에러였더군..

여튼, 밑에 글을 참조하여, 센드메일 관련 파일들의 읽기/쓰기 권한 검사를 해보니 문제가 딱 나오네..

----- 이하 참조 글 -----

Sendmail is very particular about the modes of files that it reads or writes. For example, by default it will refuse to read most files that are group writable on the grounds that they might have been tampered with by someone other than the owner; it will even refuse to read files in group writable directories. Also, Sendmail will refuse to create a new aliases database in an unsafe directory. You can get around this by manually creating the database file as a trusted user ahead of time and then rebuilding the aliases database with newaliases.




If you want Sendmail to check the file permissions of database files, class files, and aliases files, use:




sendmail -v -d44.4 -bv postmaster

댓글 없음:

댓글 쓰기