<br><br>
<div><span class="gmail_quote">On 5/14/08, <b class="gmail_sendername">Paul McIlfatrick</b> <<a href="mailto:paul.mcilfatrick@bt.com">paul.mcilfatrick@bt.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">> I have been building a replacement CUPS printer server for our office on Ubuntu 8.04 server (used apt-get to download the latest CUPS and Samba packages) and I have got the cupsaddsmb tool to copy the PostScript drivers and make them available for our office PCs. The cupsaddsmb tool is great!<br>
><br>> However, there is one issue I have found with the cupsaddsmb tool in that it works fine if I set 'security = user' for the Samba printer share.<br>><br>> But the problem with this security setting is that our users are not then able to access the Samba printer share without logging in. I have to set 'security = share' for the Samba printer share to allow them to access it but this then breaks the cupsaddsmb tool!<br>
><br>><br>> I have searched this forum but was unable to find anything of help and Google did not turn up anything helpful (probably didn't phrase the question correctly).<br>><br>> Also, I have read through chapters 21 and 22 of the extensive documentation written by Kurt Pfeifle but I can't seem to find mention of this issue (probably it is there somewhere).<br>
><br>><br>> There is probably a problem with my smb.conf file which I have<br>appended.<br><br><br>I posted in this newsgroup because I believe that cupsaddsmb is a CUPS written tool but I eventually found the solution in a Samba newsgroup reply.<br>
<br>The global section of the smb.conf file needs the following line added:<br><br>map to guest = Bad User<br><br><br>and then in the smbuser file the following line needs to be added:<br><br>foo = *<br><br><br>My updated smb.conf and smbusers files are appended.<br>
<br><br>Suggestion:<br><br>The man page for cupsaddsmb should be updated with this information as it seems that this has been a problem for a lot of people.<br><br><br><br>Paul McIlfatrick<br><br><br>This is the ammended smb.conf file:<br>
<br># Date: 2008-05-14<br>[global]<br>  workgroup = bec<br>  server string = Printhost01<br>  printing = cups<br>  printcap name = cups<br>  printcap cache time = 750<br>  cups options = raw<br>  security = user<br>  username map = /etc/samba/smbusers<br>
  netbios aliases = printers<br>  netbios name = printhost01<br>  encrypt passwords = yes<br>  passdb backend = smbpasswd<br>#  wins server = <a href="http://10.240.5.7">10.240.5.7</a> <a href="http://10.240.6.7">10.240.6.7</a><br>
## wins server = <a href="http://10.240.6.7">10.240.6.7</a><br>  wins support = no<br>  domain master = no<br>  map to guest = Bad User<br><br>[printers]<br>  comment = All Printers<br>  path = /var/tmp<br>  browseable = no<br>
  public = yes<br>  guest ok = yes<br>  printable = yes<br>  writable = yes<br><br>[print$]<br>  comment = Printer Drivers<br>  path = /etc/samba/drivers<br>  browseable = yes<br>  guest ok = no<br>  read only = yes<br>  write list = root<br>
<br><br>BTW, do you know how you can add the print drivers?  I have a similar setup and don't use domain logons, so adding the driver from the windows client doesnt really work.</blockquote>
<div> </div>
<div> </div><br> </div><br>