[Samba] Samba config

chris chris at mmo-accountants.co.uk
Thu Jun 24 15:55:51 GMT 2004


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.

----------------------------------------------------------------------------------------------------------------------



More information about the samba mailing list