>> Delete Reply from No. 0 article
No. RE: RE: RE: [질문]센드메일 설치가 안돼요

등록 2002-05-21 13:36:00 By localhost     조회 2
이름 김서방    

		: : : 센드메일 최신버전을 다운받아서 컴파일까지는 했는데
: : : make install 하니깐
: : :
: : : [root@localhost sendmail]# make install
: : : if [ ! -d /etc/mail ]; then mkdir -p /etc/mail; else :; fi
: : : install -c -o bin -g bin -m 444 helpfile /etc/mail/helpfile
: : : if [ ! -d /etc/mail ]; then mkdir -p /etc/mail; else :; fi
: : : install -c -o root -g bin -m 644 statistics /etc/mail/statistics
: : : install -c -o root -g smmsp -m 2555 sendmail /usr/sbin
: : : install: invalid group `smmsp'
: : : make: *** [install-sendmail] Error 1
: : :
: : : 이렇게 에러가 자꾸 뜨요
: : : 이미 설치된 구버전은 지웠습니다.
: : 에러를 보시면 답이 나와있습니다.
: : 허가되지 않는 그룹 smmsp라고...^^;;
: : adduser -r -M smmsp
: : 해서 유저를 추가하시기 바랍니다.
:
: 님 감사해여 ^^
추가 사항입니다...^^;
sendmail must be a set-group-ID (default group: smmsp, recommended gid: 25) program to allow for queueing mail in a grou
p-writable directory. Two .cf files are required: sendmail.cf for the daemon
and submit.cf for the submission program. The following permissions should be used:
 -r-xr-sr-x root smmsp ... /PATH/TO/sendmail
drwxrwx--- smmsp smmsp ... /var/spool/clientmqueue
drwx------ root wheel ... /var/spool/mqueue
-r--r--r-- root wheel ... /etc/mail/sendmail.cf
-r--r--r-- root wheel ... /etc/mail/submit.cf
위의 내용은 sendmail소스 디렉토리에 나오는 보안설정입니다.
smmsp라는 유저를 생성한 다음에 위와 같이 설정을 해달라는 말이네요..
소스로 컴파일 했을 경우에는 위와 같이 셋팅을 하지 않으면 에러가 납니다.
저 역시 소스컴파일로 센드메일을 설치했는데 처음에 위 부분처럼 안해서
데몬이 구동이 되는데 메일이 보내기가 안되는 문제를 겪었습니다.
요즘의 추세로 봐서는 중요한 서버를 구동할 때 거의 root로 setuid걸리는
프로그램들이 개별적으로 소유주를 두고 돌아가는 경우가 많이 있네요.
 특히 mysql의 경우에도 위와 비슷하게 셋팅이 되어야 합니다.
예전에는 root권한으로 구동되었지만 mysql이라는 사용자의 권한으로
데몬이 구동됩니다. 참조하시길...
그리고 방금 만드신 smmsp라는 유저는 쉘을 주지마세요...
보안상 쉘을 주지 않으시는 게 좋습니다.
그럼 수고하세요...
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved