[Samba] samba, cups and cupsaddsmb
Angela Gavazzi
edv at goetheanum.ch
Tue Jan 3 14:54:39 GMT 2006
Does really nobody have an idea?
thanks angela
Am Dienstag, 3. Januar 2006 10.31 schrieb Angela Gavazzi:
> Hallo,
>
> I have an old samba-cups printserver (debian woody), connected to the
> domain through winbind, that I must replace now.
>
> I installed a new samba-cups server on a sarge machine. Windbind works, I
> can get all users and groups.
> I copied the generic windows postscript driver files as in
> cupsaddsmb-manpage described to /usr/share/cups/drivers (tried also adobe
> drivers)
> Also tried the same with the cups driver, that I would prefere to use.
> Installed a printer in cups (test), reloaded smb.conf (also restarted
> samba) - I can see the printer from windows.
>
> When I try to cupsaddsmb the printer driver for the windows clients,
> nothing happens. No driver is copied to /var/lib/samba/printers/W32X86/3,
> on the console I get the message, that the driver was addedd successfully,
> nothing seem to be written to printers.tdb (size doesn't change and
> tdbbackup gives an empy file)
>
> cupsaddsmb -v -U administrator test
> Password for administrator required to access localhost via SAMBA:
> Running command: rpcclient localhost -N -U'administrator%xxxxx' -c
> 'setdriver test test'
> Succesfully set test to driver test.
>
> I tried with version 3.0.14 from sarge, 3.0.20b from testing and now 3.0.21
> from sid, because I saw that there was a resolved bug about not writing to
> printers.tdb
>
> Set this permissions:
> (user admin is in lpadmin group)
> drwxrwxrwx 4 root root 4096 Jan 2 12:05 /var/lib/samba/printers/*
> drwxrwsr-x 2 admin lpadmin 4096 Jan 2 11:52 /usr/share/cups/drivers/
>
> drwxrwxrwt 2 admin lpadmin 4096 Jan 2 21:49 /var/spool/samba/
>
> -rw-r--r-- 1 admin lpadmin 131584 J /usr/share/cups/drivers/PS5UI.DLL
> -rw-r--r-- 1 admin lpadmin 25113 /usr/share/cups/drivers/PSCRIPT.HLP
> -rw-r--r-- 1 admin lpadmin 792644 /usr/share/cups/drivers/PSCRIPT.NTF
> -rw-r--r-- 1 admin lpadmin 455168 /usr/share/cups/drivers/PSCRIPT5.DLL
>
> (tried also with lower and uppercase driver file names.)
> -r-xr-xr-x 1 admin lpadmin 760 Jan 2 12:57 CUPS6.INF
> -r-xr-xr-x 1 admin lpadmin 67 Jan 2 12:57 CUPS6.INI
> -r-xr-xr-x 1 admin lpadmin 9529 Jan 2 12:57 CUPS6.PPD
> -r-xr-xr-x 1 admin lpadmin 12568 Jan 2 12:57 CUPSPS6.DLL
> -r-xr-xr-x 1 admin lpadmin 13672 Jan 2 12:57 CUPSUI6.DLL
>
> -r-xr-xr-x 1 admin lpadmin 760 Jan 2 21:55 cups6.inf
> -r-xr-xr-x 1 admin lpadmin 67 Jan 2 21:55 cups6.ini
> -r-xr-xr-x 1 admin lpadmin 9529 Jan 2 21:55 cups6.ppd
> -r-xr-xr-x 1 admin lpadmin 12568 Jan 2 21:55 cupsps6.dll
> -r-xr-xr-x 1 admin lpadmin 13672 Jan 2 21:55 cupsui6.dll
>
> It would be really great if someone could point me to the problem or error
> I don't see!
>
> tia angela
>
> I attach a log from cupsaddsmb with debug level 5 and here's testparm
> output:
>
>
> [global]
> workgroup = AAG
> server string = Samba %v
> security = DOMAIN
> password server = 192.168.100.30
> log level = 5 winbind:2 passdb:5 printdrivers:5 tdb:5
> syslog = 0
> log file = /var/log/samba/log.%m
> printcap name = cups
> preferred master = No
> domain master = No
> wins server = 192.168.100.30
> panic action = /usr/share/samba/panic-action %d
> idmap uid = 10000-20000
> idmap gid = 10000-20000
> winbind separator = +
> printing = cups
> print command =
> lpq command = %p
> lprm command =
>
> [printers]
> comment = All Printers
> path = /var/spool/samba
> write list = root, @AAG+Domänen-Admins
> create mask = 0700
> printable = Yes
> browseable = No
>
> [print$]
> comment = Printer Drivers
> path = /var/lib/samba/printers
> write list = @AAG+Domänen-admins, root,
> guest ok = Yes
>
>
> This configuration works on my old samba-cups.
More information about the samba
mailing list