Stampare su condivisione Windows
Mauro Cabella
mauro.cabella@fastwebnet.it
Sab 3 Nov 2007 21:18:18 CET
Renzo Cavalli ha scritto:
> http://127.0.0.1:631
> o direttamente in
> /var/log/cups
> hai le operazioni, i logs e gli errori eventuali
>
Mitico, manco ne sospettavo l'esistenza. :-)
Bene, il problema cambia aspetto: dalla gestione di CUPS mi stampa la
test page, dalle applicazioni non stampa.
/var/log/cups/error_log:
E [03/Nov/2007:20:54:27 +0100] [Job 7] Unable to connect to CIFS host,
will retry in 60 seconds...
E [03/Nov/2007:20:55:27 +0100] [Job 7] Unable to connect to CIFS host
after (tried 3 times)
E [03/Nov/2007:20:55:27 +0100] PID 3314 (/usr/lib/cups/backend/smb)
stopped with status 1!
----------------------------------
--> /etc/samba/smb.conf: (w/o comments)
[global]
workgroup = LOSTSOULS
server string = %h server
; wins support = no
; wins server = w.x.y.z
dns proxy = no
; name resolve order = lmhosts host wins bcast
; interfaces = 127.0.0.0/8 eth0
; bind interfaces only = true
log file = /var/log/samba/log.%m
max log size = 1000
; syslog only = no
syslog = 0
panic action = /usr/share/samba/panic-action %d
; security = user
; encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
; guest account = nobody
invalid users = root
; unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
; pam password change = no
; domain logons = yes
; logon path = \\%N\profiles\%U
; logon path = \\%N\%U\profile
; logon drive = H:
; logon home = \\%N\%U
; logon script = logon.cmd
; add user script = /usr/sbin/adduser --quiet --disabled-password
--gecos "" %u
########## Printing ##########
; load printers = yes
; printing = bsd
; printcap name = /etc/printcap
printing = cups
printcap name = cups
; printer admin = @ntadmin
; include = /home/samba/etc/smb.conf.%m
socket options = TCP_NODELAY
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
; domain master = auto
; idmap uid = 10000-20000
; idmap gid = 10000-20000
; template shell = /bin/bash
;
; The following was the default behaviour in sarge
; but samba upstream reverted the default because it might induce
; performance issues in large organizations
; See #368251 for some of the consequences of *not* having
; this setting and smb.conf(5) for all details
;
; winbind enum groups = yes
; winbind enum users = yes
[homes]
comment = Home Directories
browseable = no
writable = no
create mask = 0700
directory mask = 0700
valid users = %S
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; writable = no
; share modes = no
;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
; directory mask = 0700
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
public = no
writable = no
create mode = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
; write list = root, @ntadmin
;[cdrom]
; comment = Samba server's CD-ROM
; writable = no
; locking = no
; path = /cdrom
; public = yes
; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom
-------------------------------------------------
--> /etc/cups/printers.conf :
# Printer configuration file for CUPS v1.2.7
# Written by cupsd on 2007-11-03 20:55
<DefaultPrinter LaserJet-6L>
Info LaserJet-6L
DeviceURI smb://mauro:xxxxxxxx@FORT-KNOX/HPLaserJ
State Stopped
StateMessage /usr/lib/cups/backend/smb failed
StateTime 1194119727
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser mauro
OpPolicy default
ErrorPolicy stop-printer
</Printer>
------------------------------
Non so proprio che fare. Anche googlando in giro ho visto gente con
stesso problema e zero soluzioni :-(
Ora che scrivo, anche la test page da http://127.0.0.1:631 risponde
"Quota limit reached."
Non ci vedo un senso.
Hai altre idee?
Grazie ancora, Mauro
Maggiori informazioni sulla lista
glug