Unable to connect to CUPS server localhost:631 – Connection refused on samba log

환경

OS : CentOS-6
samba : 3.6 (centos6의 고유 패키지)

 

samba 로그 또는 /var/log/messages

printing/print_cups.c:151(cups_connect)
Unable to connect to CUPS server localhost:631 – Connection refused

 

원인

cups 서비스는 당연히 꺼놓았는데 계속해서 발생하며 요청하는 상황은 smb에서 프
린터 설정을 활성화 시켜서 윈도우의 기본 기능인 사용 가능한 프린터 찾는 것 때
문에 자꾸 접근해서 메세지를 쌓게 만들어 발생되는 것

이라고 한다..

출처 : https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c01925386

 

해결

비활성화 시킨다….
file : smb.conf
위치 : [global] 섹션


load printers = no
show add printer wizard = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes

 

고찰

참고한 자료 에서는 내용중 “printing” 지시자에 대해서 “none” 설정을 권장 했는데..

printing = none

실제로 적용을 해보니

WARNING: Ignoring invalid value ‘none’ for parameter ‘printing’

이런 경고문을 띄웠다..
아마도 해당 환경의 삼바 버전이 참고 내용의 버전과 맞지 않았기 때문일 것이다.

그래서 지시자를 “none” 에서 “bsd” 로 변경 시도 했다.

 

About KENNETH 19688 Articles
지락문화예술공작단

Be the first to comment

Leave a Reply

Your email address will not be published.


*


이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.