Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Samba] problem with adding printers to samba4

176 views
Skip to first unread message

Chantal Rosmuller

unread,
Feb 27, 2013, 9:10:02 AM2/27/13
to
Hi,

I have a problem setting up shared printers in samba4, I used the manual in

https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO#Step_13:_Setup_a_Printer_share

- I added a printer using cups
- I added the printer en printer driver share as written in the wiki
- I logged on as samba 4 administrator on a windows 7 client
- I tried to add the printer

On windows I get "acces denied" on the samba4 server in
/var/log/samab4/log/smbd I get:

Add printer for printer Ricoh Aficio MP 4000 PCL6 called and no smb.conf parameter "addprinter command" is defined. This parameter must exist for this call to succeed

I thought the addprinter command was not available anymore for samba4?

The server is a CentOS release 6.3
sama version: samba4-4.0.1

smb.conf:


# Global parameters
[global]
workgroup =DOMAIN
realm = domain.nl
netbios name = PUPPETDEV01
server role = active directory domain controller
dns forwarder = 172.19.1.12

[netlogon]
path = /var/lib/samba4/sysvol//domain.nl/scripts
read only = No

[sysvol]
path = /var/lib/samba4/sysvol/
read only = No

[printers]
comment = All Printers
path = /var/lib/samba4/spool
browseable = Yes
read only = No
printable = Yes

[print$]
comment = Point and Print Printer Drivers
path = /var/lib/samba4/print
read only = No


--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Chantal Rosmuller

unread,
Feb 28, 2013, 9:00:02 AM2/28/13
to
I solved it myself, the rpm I installed was not compiled with cups support

Andrew Martin

unread,
Feb 28, 2013, 9:50:04 AM2/28/13
to
Chantal,

Can you elaborate a bit on how you have integrated CUPS into your
samba4 environment? I have configured a samba4 DC and set up a separate
CUPS server with samba3 to export the printer share. In samba4, where/how
do you set up the printers? Is there a way to push them out to domain
computers using Group Policy?

Thanks,

Andrew

Andrew Martin

unread,
Mar 1, 2013, 2:50:02 PM3/1/13
to
----- Original Message -----
> From: "chantal rosmuller" <crosm...@gmail.com>
> To: "Andrew Martin" <ama...@xes-inc.com>
> Cc: sa...@lists.samba.org
> Sent: Friday, March 1, 2013 1:46:02 AM
> Subject: Re: [Samba] problem with adding printers to samba4 [solved]
>
> Sure, I compiled samba 4 with cups support enabled and configured it
> as
> a DC. Then I installed cups with yum. Added a printer in the cups
> webinterface. I added this to smb.conf:
>
> [printers]
> comment = All Printers
> path = /var/lib/samba4/spool
> browseable = Yes
> read only = No
> printable = Yes
>
> [print$]
> comment = Point and Print Printer Drivers
> path = /var/lib/samba4/print
> read only = No
>
>
> created the spool and chmodded it to 1777
> created the printer driver directory
>
> Now I am not quite sure whether I added the following as I do not
> have
> acces to the server right now. But I might have added to the global
> section in smb.conf:
>
> load printers = yes
> printing = cups
>
> then I joined a windows 7 pc to the domain, went to \\servername\ and
> there is was, the new printer
>
> So it was actually exactly like the wiki said
>
> As for your group policy question, I don't know. If I find out I'll
> post it.
Chantal,

Thanks for the clarification. So in your setup, you are manually adding
printers to end-user workstations? I was hoping there would be a way to
automatically add printers to workstations, and then even take it a step
farther and add different printers to different workstations based on OU
or group memberships.

chantal rosmuller

unread,
Mar 16, 2013, 12:00:02 PM3/16/13
to
On 02/28/2013 03:47 PM, Andrew Martin wrote:
Sure, I compiled samba 4 with cups support enabled and configured it as
a DC. Then I installed cups with yum. Added a printer in the cups
webinterface. I added this to smb.conf:

[printers]
comment = All Printers
path = /var/lib/samba4/spool
browseable = Yes
read only = No
printable = Yes

[print$]
comment = Point and Print Printer Drivers
path = /var/lib/samba4/print
read only = No


created the spool and chmodded it to 1777
created the printer driver directory

Now I am not quite sure whether I added the following as I do not have
acces to the server right now. But I might have added to the global
section in smb.conf:

load printers = yes
printing = cups

then I joined a windows 7 pc to the domain, went to \\servername\ and
there is was, the new printer

So it was actually exactly like the wiki said

As for your group policy question, I don't know. If I find out I'll post it.

0 new messages