Can't print to printer attached to Win98 from linux

John Aldrich john at chattanooga.net
Mon Apr 30 17:49:48 GMT 2001


I have more info here.... I've got my /etc/samba/smb.conf file from home and my
/etc/printcap files here....
First of all, a recap:
I set up SAMBA using WebMin on RedHat 7.1 last night. The Windows 98 SE box and
the RedHat 7.1 box are side by side on the same physical desk and on the same
physical and numerical network. I can share files between the two (both
directions, apparently) but can't seem to print, even though I've gone into the
WebMin and configured it as a printer shared on a SAMBA network. 
The printer is a Canon BJC-1000 and is shared as "CANON" and is on the Win98 SE
box. I suspect there is a problem with the config on the linux side as I never
even see the ATTEMPT to print on the Windows machine.

I had to enable encrypted passwords to even share drives, etc. I checked and
didn't see any errors in the log files... it's like the print attempts never
happened. :-(


Below is pasted in my /etc/printcap file:

# /etc/printcap
#
# DO NOT EDIT! MANUAL CHANGES WILL BE LOST!
# This file is autogenerated by printconf-backend during lpd init.
#
# Hand edited changes can be put in /etc/printcap.local, and will be included.

###############################################################################
## Everything below here is included verbatim from /etc/printcap.local       ##
###############################################################################
# printcap.local
#
# This file is included by printconf's generated printcap,
# and can be used to specify custom hand edited printers.

canon|bjc1000:sd=/var/spool/lpd/canon:sh:cm=bjc1000:lp=|/usr/share/printconf/smbprint:if=/usr/share/printconf/mf_wrapper:


Below is the /etc/samba/smb.conf file:

# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash) 
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not many any basic syntactic errors. 
#
#======================= Global Settings =====================================
[global]
	remote announce = 10.0.0.50/Workgroup
	printing = lprng
	dns proxy = no 
	encrypt passwords = yes
	protocol = NT1
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	wins support = true
	printcap name = /etc/printcap
	ssl ca certfile = /usr/share/ssl/certs/ca-bundle.crt
	workgroup = Workgroup
	server string = Samba Server
	netbios name = slave1
	log file = /var/log/samba/%m.log
	load printers = yes
	netbios aliases = slave1
	default = homes

[homes]
	writable = yes
	sync always = yes
	comment = Home Directories
	browseable = no
	preserve case = yes
	case sensitive = yes
	max connections = 5

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = no
   printable = yes

# This one is useful for people to share files
;[tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = no
;   public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
;   comment = Public Stuff
;   path = /home/samba
;   public = yes
;   writable = yes
;   printable = no
;   write list = @staff

# Other examples. 
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
;   comment = Fred's Printer
;   valid users = fred
;   path = /homes/fred
;   printer = freds_printer
;   public = no
;   printable = yes

# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
;   comment = Fred's Service
;   path = /usr/somewhere/private
;   valid users = fred
;   public = no
;   writable = yes
;   printable = no

# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %u option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
;  comment = PC Directories
;  path = /usr/pc/%m
;  public = no
;  writable = yes

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
;   path = /usr/somewhere/else/public
;   public = yes
;   only guest = yes
;   writable = yes
;   printable = no

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
;   comment = Mary's and Fred's stuff
;   path = /usr/somewhere/shared
;   valid users = mary fred
;   public = no
;   writable = yes
;   printable = no
;   create mask = 0765






More information about the samba mailing list