This service will be undergoing maintenance at 00:00 UTC, 2016-09-28. It is expected to last about 1 hours
Bug 2625 - printing configuration...stuck on sysV
printing configuration...stuck on sysV
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: samba (Show other bugs)
6.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-05-06 22:36 EDT by luc_lalonde
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-05-24 16:26:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description luc_lalonde 1999-05-06 22:36:27 EDT
Problem:
The version of Samba that ships with RedHat 6.0 will not
work for sharing printers with Win9x or WinNT.  Even after
specifying the printer as being "bsd" with "/etc/printcap",
it insists on looking for "lpstat" which is used for sysV
printing.
Solution:
I downloaded the rpm from the Samba FTP site and everything
work fine now.
Comment 1 s348842 1999-05-09 20:47:59 EDT
Just uncomment the line "printing = bsd" in /etc/smb.conf
Comment 2 Bill Nottingham 1999-05-24 16:26:59 EDT
fixed in samba-2.0.4b-1, in latest Raw Hide...
Comment 3 ct7 1999-06-17 16:15:59 EDT
I'm experiencing a related problem -- SWAT doesn't work correctly on
my system (RedHat 6.0, samba-2.0.3-8.i386.rpm) because it's trying to
run "/usr/bin/lpstat" (and failing) and printing an error message
before creating the HTML header (see below):

----------------------------------------------
$ lynx -source http://localhost:901/
sh: /usr/bin/lpstat: No such file or directory
HTTP/1.0 401 Authorization Required
WWW-Authenticate: Basic realm="SWAT"
Connection: close
Content-Type: text/html

<HTML><HEAD><TITLE>401 Authorization
Required</TITLE></HEAD><BODY><H1>401 Authorization Required</H1>You
must be authenticated to use this service<p></BODY></HTML>
----------------------------------------------

I've also tried this with the latest RPM from rawhide
(samba-2.0.4b-2.i386.rpm) and I get the same results.

The absence or presence of "printing = bsd" in /etc/smb.conf has no
effect on this.
Comment 4 ct7 1999-06-17 17:23:59 EDT
Found my problem -- Samba used (Samba 2.0.2 & RH 5.2) to default to
"printcap name = /etc/printcap" (BSD-style printing) for Red Hat
Linux, but now it defaults to "printcap name = lpstat" (SYSV-style
printing).  Adding "printcap name = /etc/printcap" to my /etc/smb.conf
file fixed this.

Of course, swat still shouldn't be sending shell errors to the TCP
socket!

Note You need to log in before you can comment on or make changes to this bug.