[Samba] Unable to connect to CUPS server localhost:631 - Connection refused

David Touzeau david at touzeau.eu
Fri Feb 18 10:00:46 MST 2011


Dear 

Samba try to connexct to cups 
but cups is not loaded on the server and i did not want to use printer
sharing on the server but it still wants connect on cups ? Why ? is
there any option to add in order to disable completely using cups 

Feb 18 17:39:01 virtualbox smbd[27907]:   Processing section "[homes]" 
Feb 18 17:39:01 virtualbox smbd[27907]: [2011/02/18 17:39:01, 0]
printing/print_cups.c:cups_connect(69) 
Feb 18 17:39:01 virtualbox smbd[27907]:   Unable to connect to CUPS
server localhost:631 - Connection refused 
Feb 18 17:39:01 virtualbox smbd[27907]: [2011/02/18 17:39:01, 0]
printing/print_cups.c:cups_connect(69) 
Feb 18 17:39:01 virtualbox smbd[27907]:   Unable to connect to CUPS
server localhost:631 - Connection refused 
Feb 18 17:39:01 virtualbox smbd[27907]: [2011/02/18 17:39:01, 2]
lib/interface.c:add_interface(81) 

[global]
workgroup = GSX
netbios name = gsx4
server string = %h server
disable netbios =no
remote announce = 192.168.128.255/GSX 192.168.1.255/GSX 10.8.0.255/GSX
192.168.77.255/GSX
name resolve order =host lmhosts wins bcast
dns proxy = No
syslog = 3
log level = 10
log file = /var/log/samba/log.%m
debug timestamp = yes

# Enable symbolics links -----------------------------------
follow symlinks = yes
wide links = yes
unix extensions = no

usershare allow guests = no
usershare max shares = 100
usershare owner only = true
usershare path=/var/lib/samba/usershares/data

#Guest access
guest account = nobody
map to guest = Bad Password
template homedir = /home/%U
template shell = /bin/false

# Controler ?? -----------------------------------
security = user
enable privileges = yes
domain master = yes
local master = yes
preferred master = yes
domain logons = yes
os level = 40
ldap passwd sync = no
# WINBINDD  (1)-----------------------------------
winbind use default domain = yes
winbind enum users = yes
winbind enum groups = yes
password server=*
encrypt passwords = yes
winbind separator = +
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes


#VISTA/Windows7 compatibility
client lanman auth = yes
client ntlmv2 auth = yes


#ACLs settings
nt acl support=yes
map acl inherit=yes
acl check permissions=yes
inherit permissions=no
inherit acls=no
acl map full control=yes
dos filemode=yes
force unknown acl user = no


# LDAP settings -----------------------------------
ldap delete dn = no
passdb backend = ldapsam:ldap://127.0.0.1:389
#scripts -----------------------------------
add machine script = /usr/share/artica-postfix/bin/artica-install
--samba-add-computer "%u"
ldap admin dn = cn=admin,dc=touzeau,dc=biz,dc=touzeau,dc=biz
ldap suffix = dc=touzeau,dc=biz,dc=touzeau,dc=biz
ldap group suffix = dc=organizations
ldap user suffix =  dc=organizations
ldap machine suffix = ou=Computer,dc=samba,dc=organizations
ldap idmap suffix =
ou=idmap,dc=samba,dc=organizations,dc=touzeau,dc=biz,dc=touzeau,dc=biz
ldap delete dn = yes
encrypt passwords = true


#Samba and the Editposix/Trusted Ldapsam extension
ldapsam:trusted=yes
ldapsam:editposix=yes
idmap backend = ldap:ldap://127.0.0.1:389
idmap uid = 1000-1999999
idmap gid = 1000-1999999
idmap config GSX:backend = ldap
idmap config GSX:readonly = no
idmap config GSX:default = yes
idmap config GSX:ldap_base_dn =
ou=idmap,dc=samba,dc=organizations,dc=touzeau,dc=biz,dc=touzeau,dc=biz
idmap config GSX:ldap_user_dn =
cn=admin,dc=touzeau,dc=biz,dc=touzeau,dc=biz
idmap config GSX:ldap_url = ldap://127.0.0.1:389
idmap config GSX:range = 1000-1999999
idmap alloc backend = ldap
idmap alloc config:ldap_base_dn =
ou=idmap,dc=samba,dc=organizations,dc=touzeau,dc=biz,dc=touzeau,dc=biz
idmap alloc config:ldap_user_dn =
cn=admin,dc=touzeau,dc=biz,dc=touzeau,dc=biz
idmap alloc config:ldap_url = ldap://127.0.0.1:389
idmap alloc config:range = 1000-1999999
ldap ssl  = off

logon path =""
logon home =""
logon drive = ""
socket options = TCP_NODELAY IPTOS_LOWDELAY IPTOS_THROUGHPUT
SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
case sensitive = No
default case = lower
preserve case = yes
short preserve case = yes
#character set = iso8859-1
#domain admin group = @admin
wins support = Yes
#hosts allow = 192.168.0. 127.
time server = yes
#MDFS parameters
msdfs root = no
host msdfs = no

# Shared Folders lists -----------------------------------

[dropbox]
path = /home/dropbox
create mask = 0660
directory mask = 0770
browsable = yes
public = yes
writable = yes
comment = 
hide unreadable = yes
hide unwriteable files = yes
inherit permissions = no
acl check permissions = yes
map acl inherit = yes
acl group control = yes
nt acl support = yes
inherit acls = no

[complete]
path = /home/sabnzbdplus/downloads/complete
create mask = 0660
directory mask = 0770
[netlogon]
path = /home/netlogon/
writable = No
browseable = No
write list = root

[homes]
comment = Personnal Folder
browseable = No
writeable = Yes








More information about the samba mailing list