Hi I?m having difficulty configuring Samba running on FreeBSD. Samba version is 2.2.8a. The scenario is that we have an NT4 domain and I am looking to migrate the printers onto Samba. All of the printers are connected via print servers, mainly HP JetDirect. As far as security is concerned I am happy for guest/anonymous logon as the server will only be used for printing but I have set security to domain and added samba to the domain. As things stand I have setup a test share which is visible from both Win98 and XP. I have also setup a JetDirect connected printer and can print to it using lpr. What I can't seem to do is print via Samba, either using smbclient or Windows. Smbclient errors with an NT_STATUS_ACCESS_DENIED error, windows clients just report the printer is not contactable. I have also added the nobody user to the samba passwords file with a blank password - I really don't want to have to add all users to unix/samba. My conf files are below: Smb.conf -------- [global] netbios name = samba workgroup = MMO wins server = x.x.x.x #changed os level = 33 security = domain encrypt passwords = yes # printcap name = /etc/printcap password server = * [beyond] # temporary printer share to test setup path = /var/spool/lpd guest ok = yes printable = yes printing = BSD print command = /usr/bin/lpr -P%p -r %s [test] #test file share comment = For testing only, please path = /usr/local/samba/tmp read only = no guest ok = yes printcap file ------------- ####### test for new printer####### beyond|raw1:\ :lp=:\ :rm=beyond:\ :rp=raw:\ :sh:\ :sd=/var/spool/lpd/beyond: In addition I have added an entry in /etc/host to define beyond - none of the docs mention this but raw lpr doesn't seem to work without it. Can anyone suggest what I am doing wrong? Also should I use lpr or cups as we don't have any postscript printers? Regards, ? Chris ? Christopher Moss Murray McIntosh O'Brien Wellesley House 204 London Road Waterlooville PO7 7AN ? 023 9223 1006 ------------------------------------------------------------------------------------------------------------------- Disclaimer Privileged or confidential information may be contained in this message. If you are not the addressee of this message please notify the sender by return and delete it, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Murray McIntosh O'Brien does not accept liability. Likewise whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Murray McIntosh O'Brien does not accept liability for any losses caused as a result of viruses. Statements in this message that do not relate to the business of Murray McIntosh O'Brien are neither given nor endorsed by it or the Directors of Murray McIntosh O'Brien. A list of the Directors of Murray McIntosh O'Brien is available for inspection at our offices. ----------------------------------------------------------------------------------------------------------------------
Hi Chris try to add the following option in Your smb.conf for the specific printer use client driver = Yes This worked for me, but I use samba 3.0.4. I don't know exactly, whether this option is valid for samba 2.2.8.a Olaf PS: What a match yesterday Portugal <-> England!!!!!
Thanks for the reply Keith but unforutnately I'm still not winning. I've tried using security = share but was plagued with password requests whether I created guest user with null passwords or stuck with the default nobody user. I also tried security = user again without any joy I went back to security domain. I can now see the printer but it shows as Opening on the XP machine's printers and faxes dialog and if I succeed in opening it I get the Access denied, can not connect message. I have trawled the web and found a few references to this but few if any suggestions. Also I have managed to create a TCPIP port in windows and print to the printer. Also on the unix machine I can issue smbclient //samba/beyond I get prompted for a password and just press return. I am then told that anonymous logon is successful, however when I try to print a local file I get the following: Error unable to open local file. As an aside I have been trying to print from Win98 via Samba without success but I notice in the smbd log the following: Unable to connect to CUPS server: connection refused This may explain the problems but I have never installed CUPS on the system so where is Samba picking this default setting up from? For info my latest attempt at a config file is attached - the file share is working perfectly but the printer share while visible in doing nothing!! Can [Global] netbios name = samba workgroup = MMO wins server = x.x.x.x os level = 33 security = domain encrypt passwords = yes guest account = smbguest guest ok = yes nt acl support = no null passwords = yes load printers = yes [beyond] path = /var/spool/lpd/beyond printing = BSD printable = yes print command = /usr/bin/lpr -P%p -r -s% use client driver = yes guest ok = yes [temp] path = /usr/local/samba/tmp browseable = yes read only = no comment = Test share guest ok = yes I apologies for being thick but I'm new to FreeBSD and Samba and my Unix skills are a bit rusty - it's about three years since I last worked on AIX. If anyone has a set by set Janet and John guide I'd be most grateful. Regards, Chris Christopher Moss Murray McIntosh O'Brien Wellesley House 204 London Road Waterlooville PO7 7AN 023 9223 1006 -----Original Message----- From: Keith Edmunds [mailto:keith@midnighthax.com] Sent: 24 June 2004 17:11 To: chris Subject: Re: [Samba] Samba config Hi Chris Saw your note on the Samba list. Some quick thoughts (sorry if you've already checked these things):> As far as security is > concerned I am happy for guest/anonymous logon as the server will only > be used for printing but I have set security to domain and added samba > to the domain.If you're happy with guest access then configure it for guest access - much easier than messing with domains.> [global] > netbios name = samba > workgroup = MMO > wins server = x.x.x.x #changed > os level = 33 > security = domain > encrypt passwords = yes > # printcap name = /etc/printcap > password server = * > > [beyond] # temporary printer share to test setup > path = /var/spool/lpd---is /var/spool/lpd writable by all?> guest ok = yes > printable = yes > printing = BSD > print command = /usr/bin/lpr -P%p -r %s---su to your guest user and ensure that the above command works> Can anyone suggest what I am doing wrong? Also should I use lpr orcups> as we don't have any postscript printers?You can create raw queues in CUPS quite easily; CUPS is not limited to PostScript printers. I'd start by removing the server from the domain (keep it simple). Good luck. Keith -- ---------------------------------------------------------------------- Small business computer support: http://www.tiger-computing.co.uk Linux consultancy: http://www.TheLinuxConsultancy.co.uk ---------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------- Disclaimer Privileged or confidential information may be contained in this message. If you are not the addressee of this message please notify the sender by return and delete it, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Murray McIntosh O'Brien does not accept liability. Likewise whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Murray McIntosh O'Brien does not accept liability for any losses caused as a result of viruses. Statements in this message that do not relate to the business of Murray McIntosh O'Brien are neither given nor endorsed by it or the Directors of Murray McIntosh O'Brien. A list of the Directors of Murray McIntosh O'Brien is available for inspection at our offices. ----------------------------------------------------------------------------------------------------------------------
On Thu, 24 Jun 2004, chris wrote:> Hi I?m having difficulty configuring Samba running on FreeBSD. Samba > version is 2.2.8a. The scenario is that we have an NT4 domain and I am > looking to migrate the printers onto Samba. All of the printers are > connected via print servers, mainly HP JetDirect. As far as security is > concerned I am happy for guest/anonymous logon as the server will only > be used for printing but I have set security to domain and added samba > to the domain.Here is a smb.conf file for a standalone printer server with cups on FreeBSD: ......................................................... # Global parameters [global] netbios name = SMALL security = SHARE passdb backend = guest ldap ssl = no hosts allow = 192.168.10. [hpdj] path = /var/spool/samba guest ok = Yes printable = Yes use client driver = Yes ........................................................ /var/spool/samba is set to drwxrwxrwt 2 root wheel 512 19 Jun 11:47 samba (You do this with # mkdir samba # chmod 1777 samba ) And: enable application/octet-stream in /usr/local/etc/cups/mime.types and application/octet-stream application/vnd.cups-raw 0 - in /usr/local/etc/cups/mime.convs Hope this helps, Uli. +-------------------------+ | Peter Ulrich Kruppa | | - Wuppertal - | | Germany | +-------------------------+