From: "Purple Shirt" <purpleshirt@hotmail.com> Date: Tue, 19 Dec 2000 16:54:43 Message-ID: <F203ONvzyJxArGvnCjn00003537@hotmail.com> Subject: printing, last time (maybe) I have been sitting on this printer problem since a week now and I refuse to give up. I am slowly starting to think I turn stupid.</P> I hope nobody is bothered by my details. I got HP2100TN printer with SuSE 7.0 box connected as 192.168.1.100(smurf) and I got LPRng/ifhp installed and printing fine. I got Samba 2.0.7 installed and it does work fine for a disk share. I got problem with printer share on Win98 though.</P> 1. My /etc/printcap:</P> murf:cm=Network Printer smurf:\ :lp=smurf.mydomain.com%9100:\<BR> :sd=/var/spool/lpd/%P:\<BR> :ifhp=model=hp2100,status@:\<BR> :sh:\<BR> :filter=/usr/local/libexec/filters/ifhp:\<BR> :mx#0</P> 2. My /etc/smb.conf:</P> [global] workgroup = SHADOWWARRIOR<BR> guest account = nobody<BR> keep alive = 30<BR> os level = 2<BR> kernel oplocks = false<BR> security = user<BR> encrypt passwords = yes<BR> log file = /var/log/samba-log.%m<BR> lock directory = /var/lock/samba<BR> hosts allow = 192.168.1.<BR> interfaces = 192.168.1.1/255.255.255.0<BR> load printers = yes</P> [network-drive] path = /winmount<BR> comment = Network Drive<BR> create mode = 644<BR> writeable = yes<BR> guest ok = yes</P> [printers] path = /var/spool/lpd/samba<BR> print ok = yes<BR> printing = lprng<BR> printable = yes<BR> printcap name = /etc/printcap<BR> guest ok = yes<BR> public = yes<BR> print command = /usr/bin/lpr -U%U@%M -P%p -r %s<BR> lpq command = /usr/bin/lpq -U%U@%M -P%p<BR> lprm command = /usr/bin/lprm -U%U@%M -P%p %j<BR> lppause command = /usr/sbin/lpc -U%U@%M hold %p %j<BR> lpresume command = /usr/sbin/lpc -U%U@%M release %p %j<BR> queuepause command = /usr/sbin/lpc -U%U@%M -P%p stop<BR> queueresume command = /usr/sbin/lpc -U%U@%M -P%p start</P> 3. Permissions:</P> mail:~ # ls -l /var/spool/lpdtotal 2<BR>drwxr-xr-x 4 lp lp 77 Dec 18 21:41 .<BR>drwxr-xr-x 14 root root 305 Dec 18 21:41 ..<BR>drwxrwxrwt 2 root root 66 Dec 19 07:38 samba<BR>drwx------ 2 lp lp 205 Dec 18 19:48 smurf</P> 4. </P> mail:~ # cat /etc/hosts192.168.1.100 smurf.mydomain.com smurf<BR>198.x.x.x mail.mydomain.com mail<BR>192.168.1.1 mail.mydomain.com<BR>192.168.1.2 lab1.mydomain.com lab1<BR>192.168.1.3 lab2.mydomain.com lab2</P> 5. Samba starts 'cat /var/log/log.smb':</P> [2000/12/19 11:32:16, 1] smbd/server.c:main(641) smbd version 2.0.7 started.<BR> Copyright Andrew Tridgell 1992-1998<BR>[2000/12/19 07:37:05, 0] param/loadparm.c:lp_do_parameter(2239)<BR> Global parameter printcap name found in service section!</P> 6. On Samba start up 'cat /var/log/samba-log.smb' says:</P> [2000/12/19 11:32:16, 1] smbd/files.c:file_init(216) file_init: Information only: requested 10000 open files, 1014 are available.</P> 7. </P> I installed HP printer drivers locally on Win98 on parallel port and then added port '\\mail\printers'. I then print and file gets spooled:</P> mail:~ # ls -l /var/spool/lpd/sambatotal 57<BR>drwxrwxrwt 2 root root 66 Dec 19 07:38 .<BR>drwxr-xr-x 4 lp lp 77 Dec 18 21:41 ..<BR>-rwxr--r-- 1 nobody nogroup 56603 Dec 19 10:18 PrinterTestPage</P> The file never gets printed though and never deleted.</P> 8.</P> mail:~ # testparmLoad smb config files from /etc/smb.conf<BR>Processing section "[network-drive]"<BR>Processing section "[printers]"<BR>Global parameter printcap name found in service section!<BR>Loaded services file OK.<BR>WARNING: You have some share names that are longer than 8 chars<BR>These may give errors while browsing or may not be accessible<BR>to some older clients<BR>Press enter to see a dump of your service definitions<BR># Global parameters<BR>[global]<BR> coding system =<BR> client code page = 850<BR> workgroup = SHADOWWARRIOR<BR> netbios name =<BR> netbios aliases =<BR> netbios scope =<BR> server string = Samba 2.0.7<BR> interfaces = 192.168.1.1/255.255.255.0<BR> bind interfaces only = No<BR> security = USER<BR> encrypt passwords = Yes<BR> update encrypted = No<BR> allow trusted domains = Yes<BR> hosts equiv =<BR> min password length = 5<BR> map to guest = Never<BR> null passwords = No<BR> password server =<BR> smb passwd file = /etc/smbpasswd<BR> root directory = /<BR> passwd program = /bin/passwd<BR> passwd chat = *new*password* %n\n *new*password* %n\n *changed*<BR> passwd chat debug = No<BR> username map =<BR> password level = 0<BR> username level = 0<BR> unix password sync = No<BR> restrict anonymous = No<BR> use rhosts = No<BR> debug level = 2<BR> syslog = 1<BR> syslog only = No<BR> log file = /var/log/samba-log.%m<BR> max log size = 5000<BR> debug timestamp = Yes<BR> debug hires timestamp = No<BR> debug pid = No<BR> debug uid = No<BR> protocol = NT1<BR> read bmpx = No<BR> read raw = Yes<BR> write raw = Yes<BR> nt smb support = Yes<BR> nt pipe support = Yes<BR> nt acl support = Yes<BR> announce version = 4.2<BR> announce as = NT<BR> max mux = 50<BR> max xmit = 65535<BR> name resolve order = lmhosts host wins bcast<BR> max ttl = 259200<BR> max wins ttl = 518400<BR> min wins ttl = 21600<BR> time server = No<BR> change notify timeout = 60<BR> deadtime = 0<BR> getwd cache = Yes<BR> keepalive = 30<BR> lpq cache time = 10<BR> max disk size = 0<BR> max open files = 10000<BR> read prediction = No<BR> read size = 16384<BR> shared mem size = 1048576<BR> socket options = TCP_NODELAY<BR> stat cache size = 50<BR> load printers = Yes<BR> printcap name = /etc/printcap<BR> printer driver file = /etc/printers.def<BR> strip dot = No<BR> character set =<BR> mangled stack = 50<BR> stat cache = Yes<BR> domain groups =<BR> domain admin group =<BR> domain guest group =<BR> domain admin users =<BR> domain guest users =<BR> machine password timeout = 604800<BR> add user script =<BR> delete user script =<BR> logon script =<BR> logon path = \\%N\%U\profile<BR> logon drive =<BR> logon home = \\%N\%U<BR> domain logons = No<BR> os level = 2<BR> lm announce = Auto<BR> lm interval = 60<BR> preferred master = No<BR> local master = Yes<BR> domain master = No<BR> browse list = Yes<BR> dns proxy = Yes<BR> wins proxy = No<BR> wins server =<BR> wins support = No<BR> wins hook =<BR> kernel oplocks = No<BR> ole locking compatibility = Yes<BR> oplock break wait time = 10<BR> smbrun = /usr/bin/smbrun<BR> config file =<BR> auto services =<BR> lock directory = /var/lock/samba<BR> default service =<BR> message command =<BR> dfree command =<BR> valid chars =<BR> remote announce =<BR> remote browse sync =<BR> socket address = 0.0.0.0<BR> homedir map =<BR> time offset = 0<BR> unix realname = No<BR> NIS homedir = No<BR> source environment =<BR> panic action =<BR> comment =<BR> path =<BR> revalidate = No<BR> username =<BR> guest account = nobody<BR> invalid users =<BR> valid users =<BR> admin users =<BR> read list =<BR> write list =<BR> force user =<BR> force group =<BR> writeable = No<BR> create mask = 0744<BR> force create mode = 00<BR> security mask = -1<BR> force security mode = -1<BR> directory mask = 0755<BR> force directory mode = 00<BR> directory security mask = -1<BR> force directory security mode = -1<BR> inherit permissions = No<BR> guest only = No<BR> guest ok = No<BR> only user = No<BR> hosts allow = 192.168.1.<BR> hosts deny =<BR> status = Yes<BR> max connections = 0<BR> min print space = 0<BR> strict sync = No<BR> sync always = No<BR> write cache size = 0<BR> printable = No<BR> postscript = No<BR> printing = bsd<BR> print command = lpr -r -P%p %s<BR> lpq command = lpq -P%p<BR> lprm command = lprm -P%p %j<BR> lppause command =<BR> lpresume command =<BR> queuepause command =<BR> queueresume command =<BR> printer =<BR> printer driver = NULL<BR> printer driver location =<BR> default case = lower<BR> case sensitive = No<BR> preserve case = Yes<BR> short preserve case = Yes<BR> mangle case = No<BR> mangling char = ~<BR> hide dot files = Yes<BR> delete veto files = No<BR> veto files =<BR> hide files =<BR> veto oplock files =<BR> map system = No<BR> map hidden = No<BR> map archive = Yes<BR> mangled names = Yes<BR> mangled map =<BR> browseable = Yes<BR> blocking locks = Yes<BR> fake oplocks = No<BR> locking = Yes<BR> oplocks = Yes<BR> level2 oplocks = No<BR> oplock contention limit = 2<BR> strict locking = No<BR> share modes = Yes<BR> copy =<BR> include =<BR> preexec =<BR> preexec close = No<BR> postexec =<BR> root preexec =<BR> root preexec close = No<BR> root postexec =<BR> available = Yes<BR> volume =<BR> fstype = NTFS<BR> set directory = No<BR> wide links = Yes<BR> follow symlinks = Yes<BR> dont descend =<BR> magic script =<BR> magic output =<BR> delete readonly = No<BR> dos filetimes = No<BR> dos filetime resolution = No<BR> fake directory create times = No</P> [network-drive] comment = Network Drive<BR> path = /winmount<BR> writeable = Yes<BR> create mask = 0644<BR> guest ok = Yes</P> [printers] path = /var/spool/lpd/samba<BR> guest ok = Yes<BR> printable = Yes<BR> printing = lprng<BR> print command = /usr/bin/lpr -U%U@%M -P%p -r %s<BR> lpq command = /usr/bin/lpq -U%U@%M -P%p<BR> lprm command = /usr/bin/lprm -U%U@%M -P%p %j<BR> lppause command = /usr/sbin/lpc -U%U@%M hold %p %j<BR> lpresume command = /usr/sbin/lpc -U%U@%M release %p %j<BR> queuepause command = /usr/sbin/lpc -U%U@%M -P%p stop<BR> queueresume command = /usr/sbin/lpc -U%U@%M -P%p start</P> 9. There is no such file as /etc/printers.def on my system. Is that problem?</P> 10.</P> mail:~ # netstat -anActive Internet connections (servers and established)<BR>Proto Recv-Q Send-Q Local Address Foreign Address State <BR>tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN <BR><cut> <BR>udp 0 0 192.168.1.1:138 0.0.0.0:* <BR>udp 0 0 192.168.1.1:137 0.0.0.0:* <BR>udp 0 0 0.0.0.0:138 0.0.0.0:* <BR>udp 0 0 0.0.0.0:137 0.0.0.0:* <BR><cut></P> 11. INTERESTING???</P> mail:~ # smbclient //mail/printersadded interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0<BR>session request to MAIL failed (Not listening for calling name)<BR>session request to *SMBSERVER failed (Not listening for calling name)<BR>mail:~ # date<BR>Tue Dec 19 11:50:12 EST 2000</P> End of /var/log/samba-log.smb:</P> 2000/12/19 11:50:09, 0] lib/access.c:check_access(262) Denied connection from mail.mydomain.com (198.x.x.x)<BR>[2000/12/19 11:50:09, 1] smbd/process.c:process_smb(611)<BR> Connection denied from 198.x.x.x<BR>[2000/12/19 11:50:09, 0] lib/access.c:check_access(262)<BR> Denied connection from mail.mydomain.com (198.x.x.x)<BR>[2000/12/19 11:50:09, 1] smbd/process.c:process_smb(611)<BR> Connection denied from 198.x.x.x</P> If I solve this before X-mas I don't want any other gifts! =)</P> mk</P><br clear=all><hr>Get your FREE download of MSN Explorer at http://explorer.msn.com</p>
participants (1)
-
purpleshirt@hotmail.com