Printing from windows to samba

jason jason at welsh.dynip.com
Sun Aug 27 14:34:44 GMT 2000


Hey folks.
I have samba 2.0.7 running just fine on a freebsd server. I have file
shares that work just fine for my windows clients. I have set up a deskjet
842C on the freebsd box and I can print to it just fine. Im using
apsfilter with it. I have the printer set up and I can see it from my
windows clients, but print jobs submitted to the queue never get printed.
Im not sure wether to use bsd mode or plp or what.
I can see from my log.computername file that the user is connecting to the
printer service, but thats it. What else can I look at to troubleshoot
this?

from my log.winblows:

[2000/08/27 10:11:20, 1] smbd/service.c:close_cnum(583)
  winblows (10.1.1.11) closed connection to service DeskJet
[2000/08/27 10:11:21, 1] smbd/service.c:make_connection(550)
  winblows (10.1.1.11) connect to service DeskJet as user jason (uid=1000,
gid=1000) (pid 62205)
[2000/08/27 10:11:21, 1] smbd/service.c:close_cnum(583)
  winblows (10.1.1.11) closed connection to service DeskJet
[2000/08/27 10:11:51, 1] smbd/service.c:make_connection(550)
  winblows (10.1.1.11) connect to service lp as user jason (uid=1000,
gid=1000) (pid 62219)
[2000/08/27 10:11:51, 1] smbd/service.c:close_cnum(583)
  winblows (10.1.1.11) closed connection to service lp
[2000/08/27 10:11:54, 1] smbd/service.c:make_connection(550)
  winblows (10.1.1.11) connect to service lp as user jason (uid=1000,
gid=1000) (pid 62220)
[2000/08/27 10:11:54, 1] smbd/service.c:close_cnum(583)
  winblows (10.1.1.11) closed connection to service lp
[2000/08/27 10:11:56, 1] smbd/service.c:make_connection(550)
  winblows (10.1.1.11) connect to service lp as user jason (uid=1000,
gid=1000) (pid 62220)


Here is my smb.conf file,

# Samba config file created using SWAT
  # from bush (10.1.1.10)
  # Date: 2000/08/27 10:32:20

  # Global parameters
  [global]
          coding system = 
          client code page = 850
          workgroup = MYGROUP
          netbios name = 
          netbios aliases = 
          netbios scope = 
          server string = Samba Server
          interfaces = 
          bind interfaces only = No
          security = USER
          encrypt passwords = No
          update encrypted = No
          allow trusted domains = Yes
          hosts equiv = 
          min password length = 6
          map to guest = Never
          null passwords = No
          password server = 
          smb passwd file = /usr/local/private/smbpasswd
          root directory = /
          passwd program = /usr/bin/passwd
          passwd chat = *\n*ew\spassword* %n\n *ew\spassword* %n\n
*updating\sthe\sdatabase...\npasswd:\sdone\n
          passwd chat debug = No
          username map = 
          password level = 0
          username level = 0
          unix password sync = No
          restrict anonymous = No
          use rhosts = No
          debug level = 1
          syslog = 1
          syslog only = No
          log file = /var/log/log.%m
          max log size = 50
          debug timestamp = Yes
          debug hires timestamp = No
          debug pid = No
          debug uid = No
          protocol = NT1
          read bmpx = No
          read raw = Yes
          write raw = Yes
          nt smb support = Yes
          nt pipe support = Yes
          nt acl support = Yes
          announce version = 4.2
          announce as = NT
          max mux = 50
          max xmit = 65535
          name resolve order = lmhosts host wins bcast
          max ttl = 259200
          max wins ttl = 518400
          min wins ttl = 21600
          time server = No
          change notify timeout = 60
          deadtime = 0
          getwd cache = Yes
          keepalive = 300
          lpq cache time = 10
          max disk size = 0
          max open files = 10000
          read prediction = No
          read size = 16384
          shared mem size = 1048576
          socket options = TCP_NODELAY
          stat cache size = 50
          load printers = Yes
          printcap name = /etc/printcap
          printer driver file = /usr/local/etc/printers.def
          strip dot = No
          character set = 
          mangled stack = 50
          stat cache = Yes
          domain groups = 
          domain admin group = 
          domain guest group = 
          domain admin users = 
          domain guest users = 
          machine password timeout = 604800
          add user script = 
          delete user script = 
          logon script = 
          logon path = \\%N\%U\profile
          logon drive = 
          logon home = \\%N\%U
          domain logons = No
          os level = 63
          lm announce = Auto
          lm interval = 60
          preferred master = Yes
          local master = Yes
          domain master = Yes
          browse list = Yes
          dns proxy = No
          wins proxy = No
          wins server = 
          wins support = Yes
          wins hook = 
          kernel oplocks = Yes
          ole locking compatibility = Yes
          oplock break wait time = 10
          smbrun = /usr/local/bin/smbrun
          config file = 
          auto services = 
          lock directory = /var/spool/lock
          pidfile dir = /var/run
          default service = 
          message command = 
          dfree command = 
          valid chars = 
          remote announce = 
          remote browse sync = 
          socket address = 0.0.0.0
          homedir map = 
          time offset = 0
          unix realname = No
          NIS homedir = No
          source environment = 
          panic action = 
          comment = 
          path = 
          revalidate = No
          username = 
          guest account = nobody
          invalid users = 
          valid users = 
          admin users = 
          read list = 
          write list = 
          force user = 
          force group = 
          writeable = No
          create mask = 0744
          force create mode = 00
          security mask = -1
          force security mode = -1
          directory mask = 0755
          force directory mode = 00
          directory security mask = -1
          force directory security mode = -1
          inherit permissions = No
          guest only = No
          guest ok = No
          only user = No
          hosts allow = 10.1.1. 127.
          hosts deny = 
          status = Yes
          max connections = 0
          min print space = 0
          strict sync = No
          sync always = No
          write cache size = 0
          printable = No
          postscript = No
          printing = plp
          print command = lpr -r -P%p %s
          lpq command = lpq -P%p
          lprm command = lprm -P%p %j
          lppause command = 
          lpresume command = 
          queuepause command = 
          queueresume command = 
          printer = 
          printer driver = NULL
          printer driver location = 
          default case = lower
          case sensitive = No
          preserve case = Yes
          short preserve case = Yes
          mangle case = No
          mangling char = ~
          hide dot files = Yes
          delete veto files = No
          veto files = 
          hide files = 
          veto oplock files = 
          map system = No
          map hidden = No
          map archive = Yes
          mangled names = Yes
          mangled map = 
          browseable = Yes
          blocking locks = Yes
          fake oplocks = No
          locking = Yes
          oplocks = Yes
          level2 oplocks = No
          oplock contention limit = 2
          strict locking = No
          share modes = Yes
          copy = 
          include = 
          preexec = 
          preexec close = No
          postexec = 
          root preexec = 
          root preexec close = No
          root postexec = 
          available = Yes
          volume = 
          fstype = NTFS
          set directory = No
          wide links = Yes
          follow symlinks = Yes
          dont descend = 
          magic script = 
          magic output = 
          delete readonly = No
          dos filetimes = No
          dos filetime resolution = No
          fake directory create times = No

  [homes]
          comment = Home Directories
          writeable = Yes
          browseable = No

  [printers]
          comment = All Printers
          path = /var/spool/lpd/samba
          printable = Yes
          browseable = No

  [DeskJet]
          comment = DeskJet 842C
          path = /var/spool/lpd/samba
          writeable = Yes
          guest ok = Yes
          printable = Yes
          printer = bsd
          browseable = No

  [mp3z]
          comment = Public Stuff
          path = /home/ftp/pub
          writeable = Yes
          guest ok = Yes

  [Rita]
          comment = Ritas Web Page
          path = /usr/local/apache/htdocs/rita
          writeable = Yes
          guest ok = Yes

  [lp]
          comment = Printer1 cdj550 letter auto default
          path = /var/spool/lpd/samba
          writeable = Yes
          guest ok = Yes
          printable = Yes
          printer = lp
          oplocks = No
          share modes = No


regards,
Jason


--
=======================================================================
|  Jason Welsh   jason at welsh.dynip.com   |   If you think there's     |
|                                        |   good in everybody, you   |
|      http://welsh.dynip.com/           |   haven't met everybody.   |
=======================================================================








More information about the samba mailing list