ich habe ein kleines Problem beim drucken über Samba, bei irgendeinem Update (Debian oder Windows XP) hat sich mal was geändert, habe aber erst jetzt Zeit mich darum zu kümmern.
Die Ausgangssituation ist ein Samba PDC, welcher auch Drucker bereitstellt.
Als Domainadmin kann ich drucken, als Domainuser gibt es eine sofortige Fehlermeldung in Windows "Druckauftrag fehlgeschlagen".
Die Anmeldung der Nutzer am Domainaccount klappt, auch die Freigaben stehen alle zur Verfügung.
smb.conf
Code: Alles auswählen
[global]
message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
log file = /var/log/samba/log.%m
log level = 1
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
socket options = TCP_NODELAY
obey pam restrictions = yes
logon drive = H:
domain master = yes
encrypt passwords = true
passwd program = /usr/bin/passwd %u
passdb backend = tdbsam
wins support = yes
dns proxy = no
server string = %h server (Samba %v)
logon script = logon.cmd
unix password sync = yes
local master = yes
logon path = \\%N\profiles\%U
workgroup = Home
netbios name = VOYAGER
os level = 33
syslog = 0
security = user
panic action = /usr/share/samba/panic-action %d
preferred master = yes
add machine script = /usr/sbin/useradd -d /dev/null -g sambapc -s /bin/false %u
max log size = 1000
domain logons = yes
unix charset = utf8
## im Netz gefunden
admin users = @sambaadmins
hosts allow = 192.168.0. localhost
interfaces = 192.168.0.1/255.255.255.0
bind interfaces only = yes
printing = cups
printcap name = cups
[homes]
path = /home/%U
# valid users = %U
hide dot files = yes
browseable = no
wide links = no
writeable = yes
# force group = users
comment = Home Directories
create mode = 0740
directory mode = 0750
[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
read only = yes
write list = smbadmin
[profiles]
path = /home/samba/profiles
read only = no
create mask = 0600
directory mask = 0700
preexec = echo "U = %U, u = %u, L = %L, m = %M" >> /var/log/log.src
csc policy = disable
[printers]
browsable = yes
printable = yes
writable = yes
path = /var/spool/samba
comment = All Printers
public = yes
create mode = 0700
use client driver = yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = yes
write list = root, @sambaadmins
Code: Alles auswählen
[2012/04/26 20:36:26.732972, 2] rpc_client/cli_winreg_spoolss.c:898(winreg_create_printer)
winreg_create_printer: Skipping, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\HP_schwarz already exists
[2012/04/26 20:36:26.734318, 1] printing/printer_list.c:94(printer_list_get_printer)
Failed to fetch record!
Code: Alles auswählen
[2012/04/26 20:36:39.618843, 2] auth/auth.c:309(check_ntlm_password)
check_ntlm_password: authentication for user [anna] -> [anna] -> [anna] succeeded
[2012/04/26 20:36:39.621919, 1] smbd/service.c:1081(make_connection_snum)
biene (192.168.0.5) connect to service HP_schwarz initially as user anna (uid=1003, gid=513) (pid 10901)
[2012/04/26 20:36:46.981583, 2] rpc_client/cli_winreg_spoolss.c:898(winreg_create_printer)
winreg_create_printer: Skipping, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\HP_schwarz already exists
[2012/04/26 20:36:46.983337, 1] printing/printer_list.c:94(printer_list_get_printer)
Failed to fetch record!
[2012/04/26 20:36:46.985334, 1] printing/printer_list.c:94(printer_list_get_printer)
Failed to fetch record!
[2012/04/26 20:36:46.990998, 2] rpc_client/cli_winreg_spoolss.c:898(winreg_create_printer)
winreg_create_printer: Skipping, SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\HP_schwarz already exists
[2012/04/26 20:36:46.992759, 1] printing/printer_list.c:94(printer_list_get_printer)
Failed to fetch record!
[2012/04/26 20:36:46.994744, 1] printing/printer_list.c:94(printer_list_get_printer)
Failed to fetch record!
[2012/04/26 20:36:50.961849, 1] smbd/service.c:1345(close_cnum)
biene (192.168.0.5) closed connection to service HP_schwarz
[2012/04/26 20:36:52.245577, 0] rpc_server/spoolss/srv_spoolss_nt.c:1748(_spoolss_OpenPrinterEx)
_spoolss_OpenPrinterEx: Cannot open a printer handle for printer \\voyager
