Занимаюсь тут на работе фигн^W прикручиванием принтера к CUPS и расшариванием его для Windows-машин.
Все бы ничего, затык произошел на расшаривании дефолтных драйверов для win.
Запускаю команду sudo cupsaddsmb -U root -a -v - получаю вот такой выхлоп.
sudo cupsaddsmb -U root -a -v
Для доступа к root через SAMBA требуется пароль для localhost:
Запущенная команда: smbclient //localhost/print$ -N -A /tmp/00f494e3314b3 -c «mkdir W32X86;put /tmp/00f494e380bf6 W32X86/OKI3200.ppd;put /usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put /usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put /usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put /usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll»
Domain=[NATALI] OS=[Unix] Server=[Samba 3.5.9]
Server not using user level security and no password supplied.
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
tree connect failed: NT_STATUS_ACCESS_DENIED
Не удается копировать файлы драйвера принтера Windows 2000 (1)!
Да и вообще самба не дает приконнектиться к себе с локалхоста.
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
tree connect failed: NT_STATUS_ACCESS_DENIED
Конфиг самбы:
[global]
workgroup = NATALI
server string = BASE64
security = share
hosts allow = 192.168.20. 127.
load printers = no
printing = cups
log file = /var/log/samba/%m.log
max log size = 50
wins support = yes
null passwords = yes
map to guest = Bad User
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
printable = yes
use client driver = no
[print$]
comment = Printer Drivers
path = /usr/share/cups/drivers/
browseable = yes
read only = yes
guest ok = yes
write list = @ntadmin, root
[drivers]
path = /media/docs/Distrib/OkiDriver
browseable = yes
read only = yes
guest ok = yes
[public]
comment = Public Stuff
path = /media/docs/
public = yes
writable = no
printable = no