我目前狀況是,samba上的printer可以被windows user看見
也可以正常列印,但是必須windows user自己裝driver (HP給windows的driver光碟),我看forums說可以連driver都分享
#cupsaddsmb -H samba -U administrator -h localhost -v HP-LaserJet-1300
可是出現以下訊息:
Password for administrator required to access samba via SAMBA:
Running command: smbclient //samba/print\$ -N -U'administrator%*********' -c 'mkdir W32X86;put /var/spool/cups/tmp/40b28a46dbf37 W32X86/HP-LaserJet-1300.ppd;put /usr/share/cups/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put /usr/share/cups/drivers/cupsui5.dll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp W32X86/cups5.hlp'
Domain=[SAMBA] OS=[Unix] Server=[Samba 3.0.2a]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
請問該怎麼辦呢?
我有抓cups driver for windows 且解壓縮到 /usr/share/cups/drivers/ 中了
我的smb.conf :
[global]
workgroup = WORKGROUP
netbios name = Samba
server string = Gentoo_samba_server
dos charset = Big5
unix charset = cp950
printcap name = cups
load printers = yes
printing = cups
log file = /var/log/samba/log.%m
max log size = 0
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
interfaces = eth0
[print$]
comment = Printer Drivers
path = /usr/share/cups/drivers/
guest ok = no
browseable = yes
read only = yes
write list = administrator
[printers]
comment = HP LaserJet 1300
printable = yes
browsable = yes
public = yes
printing = cups
path = /var/spool/samba
printer admin = administrator