Okay... seems I still cannot get anything working right with this as far getting it to print. Here is the three different files which I would like all to look at and see what I have screwed up since it refuses to print. Here is the setup of the network: HP 5L connected to Win95 - 192.168.0.1 Linux - Zeus - 192.168.0.3 -----------SMB.CONF FILE------------ ; /etc/smb.conf [global] printing = bsd printcap name = /etc/printcap load printers = yes guest account = nobody invalid users = root announce as = Win95 allow hosts = 192.168.0.3 192.168.0.4 192.168.0.1 remote announce = 192.168.0.255/GV2 remote browse sync = 192.168.0.255 security = share workgroup = GV2 server string = %h server (Samba %v) socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096 encrypt passwords = yes wins support = no os level = 0 domain master = no local master = yes preferred master = no name resolve order = bcast host wins dns proxy = no preserve case = yes short preserve case = yes unix password sync = false passwd program = /usr/bin/passwd %u passwd chat = *New\spassword:* %n\n *Re-enter\snew\spassword:* %n\n *Passwor max log size = 1000 [home] comment = Home Directories browseable = yes path=/ writable=yes public=yes directory mask = 0775 [printers] comment = All Printers browseable = yes path = /tmp printable = yes public = yes writable = yes create mode = 0775 ; A sample share for sharing your CD-ROM with others. ;[cdrom] ; comment = Samba server's CD-ROM ; writable = no ; locking = no ; path = /cdrom ; public = yes ; [public] comment=Zeus path=/ only guest=yes public=yes writable=yes printable=no ------------PRINTCAP FILE----------------- # Printcap Configuration File lp|hplj5l|HP Laserjet 5L:\ :sd=/var/spool/lpd/hplj5l:\ :mx#0:\ :af=/var/log/hpl5jl-acct:\ :lf=/var/log/hplj5l-errs:\ :if=/usr/bin/smbprint:\ :sh: ------------SMBPRINT FILLE---------------- #!/bin/sh -x ( echo "print -" /etc/magicfilter/ljet4l-filter "$@" ) | /usr/bin/smbclient "\\\\GOD_SERVER\\HP5L" -I 192.168.0.1 -N -P> /var/log/smbprint.logSo... here is the problem. The linux cannot print out to the HP Printer 5L that is connected to the Windoze. And top of it off... The Win95 clients cannot even browse or get inside the Linux directories at all. Reason I have the IP addresses in there is for secure method of allowing certain hosts to have free access into the Linux to do the work even at the top. But the good news is... I can mount the 2 Windoze shares on the Linux using Smbmount and edited the samba start-up/shutdown files to mount and unmount them on the fly with no problem. So... the printing and the Win95 access into the linux is what I needed to make this work and I will be so happy that I can leave this behind and start focusing on other tasks. It would be nice if there is a way to mount the printer to the port on Linux instead of this way as it is right now. So... anyone who can edit this configuration and make it work like I wanted would be very much appreciated. Thanks for your time. ---------------------------------- Date: 21-Jan-99 Time:15:18:12 Russell Rademacher Grapevine2 Technical Support Specialist Pager: 800-480-9498 #1041 Phone: 716-214-5644 Fax: 716-214-5642 TDD: 716-214-5643 ICQ: 10663810 AIM: ElikCyber ----------------------------------
Just a few remarks which may be hints:> Here is the setup of the network: > HP 5L connected to Win95 - 192.168.0.1 > Linux - Zeus - 192.168.0.3 > > -----------SMB.CONF FILE------------ > ; /etc/smb.conf > [global] > printing = bsd > printcap name = /etc/printcap > load printers = yes > guest account = nobody > invalid users = root > announce as = Win95 > allow hosts = 192.168.0.3 192.168.0.4 192.168.0.1 > remote announce = 192.168.0.255/GV2 > remote browse sync = 192.168.0.255 > security = share > workgroup = GV2 > server string = %h server (Samba %v) > socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096 > encrypt passwords = yesYou users have encrypted passwords and enabeld accounts in ../privat/smbpasswd? As far as I know some Versions of w95 want them working?> wins support = no > os level = 0 > domain master = no > local master = yes > preferred master = no > name resolve order = bcast host wins > dns proxy = no > preserve case = yes > short preserve case = yes > unix password sync = false > passwd program = /usr/bin/passwd %u > passwd chat = *New\spassword:* %n\n *Re-enter\snew\spassword:* %n\n *Passwor > max log size = 1000 > > [home] > comment = Home Directories > browseable = yes > path=/ > writable=yes > public=yes > > directory mask = 0775 > [printers] > comment = All Printers > browseable = yes > path = /tmp > printable = yes > public = yes > writable = yes > create mode = 0775 > > ; A sample share for sharing your CD-ROM with others. > ;[cdrom] > ; comment = Samba server's CD-ROM > ; writable = no > ; locking = no > ; path = /cdrom > ; public = yes > ; > [public] > comment=Zeus > path=/ > only guest=yes > public=yesAre you sure your guest accont is working? Are you trying to contact as user xyz or as guest?> writable=yes > printable=no > > ------------PRINTCAP FILE----------------- > # Printcap Configuration File > lp|hplj5l|HP Laserjet 5L:\ > :sd=/var/spool/lpd/hplj5l:\ > :mx#0:\ > :af=/var/log/hpl5jl-acct:\ > :lf=/var/log/hplj5l-errs:\ > :if=/usr/bin/smbprint:\ > :sh: > > ------------SMBPRINT FILLE---------------- > #!/bin/sh -x > ( > echo "print -" > /etc/magicfilter/ljet4l-filter "$@" > ) | /usr/bin/smbclient "\\\\GOD_SERVER\\HP5L" -I 192.168.0.1 -N -P > > /var/log/smbprint.logAre there any messages in smbprint.log? What happens if you try the smbclient-commend directly? Christian _______________________________________________________________________ In a world without walls and fences, who needs windows and gates? (SUN)
When the world was young, Benjamin Scott carved some runes like this:> Subject: Re: [WIN NT] uppercase > > On Thu, 21 Jan 1999, Tajthy Tamas wrote: > > I have a problem. If I create a file under UNIX (samba 1.18.xx) with capital > > letters in its name and look at this file under NT the name become small > > letters. Not under Win95. > > This is a "feature" of the IE4 shell. If you don't like it, talk to > Microsoft. :-)Somewhere in the samba docs (I forget where) is a discussion of the case-handling in windoze. AFAIK, none of them are case-sensitive (while unix/linux/etc are). The pain-in-the-ass part comes because win9x/NT are "case-remembering" (a silly behavior IMHO), ie, if you create a file under win95 called "XXX-lower.ext" it will be displayed that way in explorer, but to the file system it's really all the same case. I've also noticed that sometimes windoze will upper-case the first letter and sometimes not. Just another example of what total pieces of crap M$ products really are... If you use the recommended (default) settings for case handling in smb.conf, at least windoze exploder should display the case of unix files correctly. ************************************************************ Stephen L. Arnold arnold.steve@ensco.com Linux: It's not for wimps
When the world was young, Todd Bedell <bedellt@macom.com> carved some runes like this:> I have just installed samba version 1.9.16 on HPUX 10.20 and everything > works fine for Win95 clients, but when I try to access share's from > WinNT, I get a login box that ask's for username and password, and after > entering an appropriate UNIX login, it denies me access with an error > saying "The account is not authorized to login from this station". > > Any help would be greatly appreciated,This has been a much-asked FAQ recently (but wouldn't be if people read the samba docs first ;-) From WinNT.txt (note the last paragraph):> One of the most annoying problems with WinNT is that NT refuses to > connect to a server that is in user level security mode and that > doesn't support password encryption unless it first prompts the user > for a password. > > This means even if you have the same password on the NT box and the > Samba server you will get prompted for a password. Entering the > correct password will get you connected only if Windows NT can > communicate with Samba using a compatible mode of password security. > > All versions of Windows NT prior to 4.0 Service Pack 3 could > negotiate plain text (clear text) passwords. Windows NT 4.0 Service > Pack 3 changed this default behaviour so it now will only handle > encrypted passwords. The following registry entry change will > re-enable clear text password handling: > > Run regedt32.exe and locate the hive key entry: > HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Rdr\Parameters\ > > Add the following value: > EnablePlainTextPassword:REG_DWORD=1 > > Alternatively, use the NT4_PlainPassword.reg file in this directory > (either by double clicking on it, or run regedt32.exe and select > "Import Registry File" from the "Registry" Menu). > > The other major ramification of this feature of NT is that it can't > browse a user level non-encrypted server unless it already has a > connection open. This is because there is no spot for a password > prompt in the browser window. It works fine if you already have a > drive mounted (for example, one auto mounted on startup).The solution is to open a command prompt on the NT box and mount a share (don't forget to use the username switch) as a local drive. You can then browse other shares from windoze exploder. You may have a binary samba package that doesn't have the complete set of docs (on linux, check /usr/doc/samba-x.xx). If so, check the samba web pages; all the included docs (as well as a few others) are online. You can also download one or more source packages. The 1.9.x and 2.0 docs are a little different; some new things are specific to the new 2.0 version, but some of the more general docs (such as Browsing.txt) have been expanded (thus the 2.0 docs will help even if you're still running an older version). **************************************************************** Stephen L. Arnold Senior Systems Engineer ENSCO Inc. email: arnold.steve@ensco.com P.O. Box 5488 www: http://www.ensco.com Vandenberg AFB, CA 93437 voice: 805.734.8232 x68838 fax: 805.734.4779 #include <std_disclaimer.h> ****************************************************************