I have had a RH5.2 server running Samba up for a long time. I upgraded to Mandrake 6.0. It broke Samba, so I reinstalled using the RPM on the CD. Samba works just fine, but SWAT will not! If I try to start it manually (/usr/sbin/swat) it just hangs. In /etc/services I have a line like this: swat 901/tcp In /etc/inetd.conf I have: swat stream tcp nowait.400 root /usr/sbin/swat swat Any Ideas? Steve Thank you, Steve Hight Systems Engineer Catholic Healthcare West Shared Business Services
Darrin M. Gorski <dgorski@ford.com> scribbled:> Message-ID: <199907152147.RAA26043@mailfw1.ford.com>> On Fri, 16 Jul 1999, Kevin Everets wrote: > > > ^L^[E^[%-12345X> ^L is a formfeed > ^[ is an escape, (which I'll write as [ESC] to ease reading) > [ESC]E is a PCL RESET command > [ESC]%-12345X is a PJL prefix (usually followed by a command), for > example: > > [ESC]%-12345X@PJL EOJ > > is a PJL end of job command, which tells the printer to prepare for > the next job;Actually, the [ESC}%-12345X is the PJL RESET command, the equivalent of the PCL reset command just issued. HP indicates you can (should?) put both of these commands at the beginning and end of your job, to ensure the pure state of the printer's configuration buffer. By issuing a PJL RESET, you force the printer back to its configured defaults; you also place the printer back in a mode to accept PJL commands, allowing the example above.> Anyway, it looks to me like the entire job is not making it to samba, as > the PJL command is missing.No, this is the standard ending for a job. Almost no-one uses the EOJ command when outputting PJL/PCL. It could be that PCL interpreters will ignore the PJL RESET command (because the format is within PCL specs), but will not ignore real text (such as the '@PJL EOJ' line) if they don't know what to do with it. In any event, neither of these should technically spit out a page, but it is possible that the PJL RESET could be misinterpreted by an older printer such as the LJ4, causing it to think its write buffer was no longer empty, and prompting the extra page. If you have set up the printer default to accept LF as CR, then the trailing CR in the job (there should be one) may also be causing the extra page.> > To get around the little extra page problem, I just popped a filter into > > the printcap file which runs sed and removes the extra garbage.Try limiting the filter to removing the [ESC]%-12345X at the end. Make sure you don't remove the one at the beginning - it's useful.
Dear list, i have try to find out the solution, how to print from my UNIX-Box (FreeBSD) to a WINDOWS 98 with HP OfficeJet 635. I am new in UNIX. I am able to create a printcap for a printer, who is connected with an UNIX-Server and it works well (this was a test, but i have no printer at the UNIX-Box). I am able to do a right setting in smb.conf and all WINDOWS machine are able to see any shared filesystem and any printer. I have no trouble to print any job to the printer, who is connected with any windows machine. But the most time, i work with the unix machine (development internet e-commerce system) and i must print a lot of files. What must i do? Can someone point me the right way to find the right information about this case? I have look around the documentation and i have search in the mail archiv. But i can not found the right information, how to set samba, printcap etc. to print a job from unix to winprinter. Sorry for my bad english! Any tips and hints are very welcome! Thanks! Joachim
On 17 Jul 99, Alex DeNeui <alexd@flex.net> had questions about Samba printing to unsupported linux printers:> I am in somewhat of a dilemma. I purchased a Xerox DocuPrint P8 > a while back, and recently have tried to set it up on my linux > box as a networked printer. The print drivers are only available > in Win*, therefore the printer will never work with linux. (It's > a "winprinter") When I tried to set it up using lpr, the page > would print about half way, then stop. My question is, is it > possible for me to change the print command option to something > like "cat %s > /dev/lp0"? Will that even have a chance of > working? I can serve the printer fine by sharing it in Win98.Are you *sure* it doesn't do something sane? My little $100 Xerox does PCL3, so it works with the HP DeskJet 550 driver under ghostscript. Even if it doesn't, it should work from a windoze client by setting the printer device to raw mode. I'm not sure where I saw it - printing HOWTO, samba docs, or the list (sorry). I try and make it a point never to buy anything that doesn't have a good linux driver, or support some sort of standard like PCL (or even better, PS). Hope you're not screwed, Steve ************************************************************* Steve Arnold sarnold@earthling.net http://www.rain.org/~sarnold This message composed of 100% recycled electrons. You should also recycle yourself. Become an organ donor. Discuss it with your family. Do it today. :-)
On 17 Jul 99, giulioo@tiscalinet.it (Giulio Orsero) had questions about 2.0.4b: logrotate problems with rh60:> >What if you try the above (mv, HUP) with this in between: > >touch /var/log/samba/log.smb? Does samba start logging to the new > >file?> No. > > >glibc changes; are you running the RedHat binary, or did you > >compile from source? Could it be related to the 64-bit file> I downloaded the src.rpm (because I need to customize the SPEC to > accomodate both rh60 and caldera13 in a single rpm). So I > compiled it. I verified the problem both on libc5/2.0.33 and > glibc2.1/2.2.10.Does your source have the patch for the above 64-bit glitch? Do you compile your own kernel too?> I just checked on a DG/UX samba.1.9.18 and it has the same > problem.No way. It works fine with 1.9.18p10 on RH4.2 (kernel 2.0.30, all libc5). Even 0 byte logs are correctly rotated and compressed (they're not good for much, but they're there). What version of logrotate are you running on DG/UX? The only bummer with the rotated log files is the text gets re-wrapped to even length lines :( Steve ************************************************************* Steve Arnold http://www.rain.org/~sarnold Things go better with Linux and King Crimson.
At 01:01 17/07/99 +1000, Kevin Everets wrote:> >I set up a print/fax server here using RH Linux 6.0, and Samba 2.0.3. The >printer is an old (but still very reliable) HP Laserjet 4. Printing from >the Linux box using lpr works fine. However, whenever someone tries to >print from a Windows98 box through SAMBA, there is an extra page printed >on the end. This gets really annoying to the users, more so because the >extra pages cannot be put back into the printer as they become slightly >curled and jam almost every time. >Most of the utilities that create a Linux printcap entry (such as RH installation or apsfilter) tell the spooler to perform a formfeed at the end of each print job. This is _not_ what you want when trying to serve printers for W95/W98 clients. If you add "sf" to the printcap entry the page throw will go away (though the last page may not eject correctly when printing Linux files). I use a special printer definition just for Samba use. This is obvious when someone points it out, but I struggled with it for ages (including posting to this list) before I realised what was going on. Best regards, Paul Paul Sherwin Consulting 22 Monmouth Road, Oxford OX1 4TD, UK Phone +44 (0)1865 721438 http://www.telinco.co.uk/psherwin/index.htm Mobile +44 (0)7931 578334 mailto:psherwin@telinco.co.uk Pager +44 (0)7666 797228
> Date: Thu, 15 Jul 1999 14:37:03 -0700 > From: "Stephen L Arnold" <arnold.steve@ensco.com> > To: samba@samba.org > Subject: Re: hosts allow/deny not working correctly > Message-ID: <199907152224.SAA22914@rodney.cnchost.com> > MIME-Version: 1.0 > Content-type: text/plain; charset=US-ASCII > Content-transfer-encoding: 7BIT > > When the world was young, "M. Tyson Bigler" <bigler@shellus.com> > carved some runes like this: > > > I am having difficult getting the hosts allow/deny to work with IP ranges > > or netmasks. Ideally I would prefer to use the IP/Netmask method, e.g. > > 111.22.33.0/255.255.255.0, because we have a flat ATM network with > > multiple class C's (netmask is really 255.255.252.0). This, however, > > doesn't work!! I can't do 111.22.33. either... I can't even do specific > > IP's, e.g. 111.22.33.44 but I CAN do hostnames (e.g. myhost). > [snip] > > Does solaris use the same /etc/hosts.allow and hosts.deny setup as > linux? If it's like file/dir permissions, etc, then the samba > settings will *not* override the underlying system settings. > > Just a thought, Steve > > ****************************************************************** > Stephen L Arnold http://www.rain.org/~sarnold > #include <std_disclaimer.h> > ******************************************************************Yes, Solaris has the same type of hosts.[allow|deny], but there's nothing in there for the smbd/nmbd (I am, however, restricting rsh, rlogin, telnet, and ftp). Plus, best I remember, when I had Samba on a test server I had the same problem and it didn't have the allow|deny files... Thanks! Tyson -- M. Tyson Bigler SEPTCo Computing Solutions Group Infrastructure Support Bellaire Technology Center bigler@shellus.com 3737 Bellaire Blvd., Room 1007B 713-245-7476 Houston, TX 77025
Hans-Joachim Leidinger wrote:> archiv. But i can not found the right information, how to set samba, > printcap etc. to print a job from unix to winprinter.The tool you are looking for is smbprint and comes with the Samba package. The documentation is in the comments of the script. Kevin -- _ | Kevin Ivory | Tel: ++49-551-3700005 |_ |\ | | Service Network GmbH | Fax: ++49-551-3700009 ._|ER | \|ET | Hannah-Vogt-Str. | mailto:Ivory@SerNet.de Service Network | D-37085 Goettingen | http://www.SerNet.de/
To Whom It May Concern, I recently installed Samba and SWAT on my RedHad Linux V6.2 machine. The installation process was quite easy. However, I am having one problem with SWAT: I have to log in as root to be able to edit anything. I have not read anywhere, in any documentation that I could find, about this behavior. Has anyone experienced this? What do I need to do to get SWAT to let me access it in "edit mode" without logging in as root? Take care, Darwin
AUTH is uttering the following error when I try to log into SWAT as root [from log file] PAM_smbpass[639]: Failed to find entry for user root. I never recalled swat wanting a root account in secrets.tdb to do this PS /etc/xinetd.d/swat is configured properly (i.e. turned on for user "root") Thanks! -- Scott