Hello list
I have been really wowed by samba 3 so far, i just have one last mission
to complete... please help!
I have samba 3.0.2a-SuSE installed on a SuSE 9.0 box. It uses winbind to
authenticate against a win server 2003 box - this seems to work fine,
users can own files and this is shown when getfacl is run on the shares
(owned by DOMAIN\User).
The last problem i have is adding printers...
The add printer wizard shows for the windows domain administrator, and
he can add a printer right untill the last screen of the wizard - when
he clicks the finish button, it shows the error:
Add Printer Wizard
Unable to Install Printer. Access is denied.
The only thing i can think of is that he has no permission to add a cups
printer? The driver files are correctly copied across to PRINT$, but
then straight after this the error appears.
Here is my smb.conf:
[global]
workgroup = MYDOMAIN
server string = samba test
security = DOMAIN
password server = pwdserver
log level = 1
syslog = 0
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
printcap name = CUPS
os level = 2
preferred master = No
local master = No
idmap uid = 10000-20000
idmap gid = 10000-20000
admin users = MYDOMAIN\administrator
printer admin = MYDOMAIN\administrator
printing = cups
veto files = /*.eml/*.nws/riched20.dll/*.{*}/
[printers]
comment = All Printers
path = /var/tmp
write list = MYDOMAIN\administrator
create mask = 0600
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
admin users = @ntadmin, root, MYDOMAIN\administrator
write list = @ntadmin, root, MYDOMAIN\administrator
printer admin = @ntadmin, root, MYDOMAIN\administrator
read only = No
create mask = 0644
guest ok = Yes
As stated, everything else seems to be working fine.
/var/lib/samba/drivers is owned by MYDOMAIN\Administrator and is chmod
777 (desperate!)
/var/tmp is 777
@ntadmin is a mapped group of Domain Admins
Thanks in advance!
> Message: 19 > Date: Wed, 14 Apr 2004 12:54:02 +0100 > From: Hamish <captainmish@gmx.net> > Subject: [Samba] Add printer wizard (XP) > To: samba@lists.samba.org > Message-ID: <407D265A.20100@gmx.net> > Content-Type: text/plain; charset=us-ascii; format=flowed > > Hello list > I have been really wowed by samba 3 so far, i just have one last mission > to complete... please help! > I have samba 3.0.2a-SuSE installed on a SuSE 9.0 box. It uses winbind to > authenticate against a win server 2003 box - this seems to work fine, > users can own files and this is shown when getfacl is run on the shares > (owned by DOMAIN\User). > The last problem i have is adding printers... > The add printer wizard shows for the windows domain administrator, and > he can add a printer right untill the last screen of the wizard - when > he clicks the finish button, it shows the error: > > Add Printer Wizard > Unable to Install Printer. Access is denied. >You need 2 things for this to work: 1.) a setting in smb.conf "add printer command = /path/to/smb-add-printer-script.sh" 2.) an actual "smb-add-printer-script.sh" script in named path So far, I don't know of anyone who has written a reliably working "add printer command" script which works with CUPS. By own efforts got stuck some time ago because of a weird re-naming problem (Samba re-named my newly created printer because it executed the script a 2nd time somehow....) I will probably revisit that topic within the next few weeks. The point is that the script needs to take the variables to run CUPS "lpadmin" from what the user filled into the "Add Printer Wizard" fields....> The only thing i can think of is that he has no permission to add a cups > printer? The driver files are correctly copied across to PRINT$, but > then straight after this the error appears. >The usefulness of the "APW" for you (without the "add printer command") is currently limited to add new drivers and for existing printqueues....> Here is my smb.conf: >It misses the "add printer command" line....> [global] > workgroup = MYDOMAIN > server string = samba test > security = DOMAIN > password server = pwdserver > log level = 1 > syslog = 0 > socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY > printcap name = CUPS > os level = 2 > preferred master = No > local master = No > idmap uid = 10000-20000 > idmap gid = 10000-20000 > admin users = MYDOMAIN\administrator > printer admin = MYDOMAIN\administrator > printing = cups > veto files = /*.eml/*.nws/riched20.dll/*.{*}/ >Cheers, Kurt
> The last problem i have is adding printers... > The add printer wizard shows for the windows domain administrator, and > he can add a printer right untill the last screen of the wizard - when > he clicks the finish button, it shows the error: > > Add Printer Wizard > Unable to Install Printer. Access is denied. > > The only thing i can think of is that he has no permission to add acups> printer? The driver files are correctly copied across to PRINT$, but > then straight after this the error appears.For that to work you need an "addprinter command" script. Details are in man smb.conf. It's really easier just to add the printer in cups and have samba pick it up, unless you start doing things like explicitly using the location field to contain ip and port/queuename information that your script can use when adding the printer. Quite kludgey. ~ Daniel ----------------------------------------------------------------------- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you.