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.
Just uncomment the line "printing = bsd" in /etc/smb.conf
fixed in samba-2.0.4b-1, in latest Raw Hide...
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.
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!