Printing Problem

Jeelani Gulam jeelani at ccube.com
Fri Jan 16 00:01:20 GMT 1998


Hi All

	I am having problem printing from my Win95 machine on a Linux Box running Samba Server.

	I can print locally, but it fails to print when i try it from Win95.

	My printer share is as follows

	[printers]
		comment = All Printers
		path = /var/spool/lpd/lp
		browseable = no
		printable = yes
		guest ok = no
		writable = no
		create mask = 0700


	The following is my log file. 

01/15/98 12:28:20 Transaction 1 of length 158
switch message SMBnegprot (pid 1964)
Requested protocol [PC NETWORK PROGRAM 1.0]
Requested protocol [MICROSOFT NETWORKS 3.0]
Requested protocol [DOS LM1.2X002]
Requested protocol [DOS LANMAN2.1]
Requested protocol [Windows for Workgroups 3.1a]
Requested protocol [NT LM 0.12]
Selected protocol NT LM 0.12
01/15/98 12:28:20 Transaction 2 of length 161
switch message SMBsesssetupX (pid 1964)
Domain=[INETTEST]  NativeOS=[Windows 4.0] NativeLanMan=[Windows 4.0]
sesssetupX:name=[JEELANI]
adding home directory jeelani at /home/jeelani
jeelani is in 1 groups
100 
uid 1001 registered to name jeelani
Clearing default real name
Chained message
switch message SMBtconX (pid 1964)
ACCEPTED: validated uid ok as non-guest
found free connection number 99
Connect path is /tmp
chdir to /tmp
chdir to /usr/local/samba/bin
01/15/98 12:28:20 jeelani1 (192.168.1.3) connect to service IPC$ as user jeelani (uid=1001,gid=100) (pid 1964)
01/15/98 12:28:20 tconX service=ipc$ user=jeelani cnum=99
01/15/98 12:28:20 Transaction 3 of length 129
switch message SMBtrans (pid 1964)
chdir to /tmp
trans <\PIPE\LANMAN> data=0 params=49 setup=0
Got API command 70 of form <zWrLh> <B13BWWWzzzzzWN> (tdscnt=0,tpscnt=49,mdrcnt=1000,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=2 name=LP
Running the command `lpq -Plp' gave 0
fill_printq_info on <lp> gave 0 entries
01/15/98 12:28:20 Transaction 4 of length 129
switch message SMBtrans (pid 1964)
trans <\PIPE\LANMAN> data=0 params=49 setup=0
Got API command 70 of form <zWrLh> <B13BWWWzzzzzWN> (tdscnt=0,tpscnt=49,mdrcnt=1000,mprcnt=6)
Doing DosPrintQGetInfo
PrintQueue uLevel=2 name=LP
Using cached lpq output
fill_printq_info on <lp> gave 0 entries
01/15/98 12:28:22 Transaction 5 of length 39
switch message SMBtdis (pid 1964)
chdir to /usr/local/samba/bin
01/15/98 12:28:22 jeelani1 (192.168.1.3) closed connection to service IPC$
Yielding connection to 99 IPC$
01/15/98 12:28:22 tdis cnum=99
end of file from client
Closing connections
01/15/98 12:28:22 Server exit  (normal exit)
01/15/98 12:28:45 Transaction 1 of length 158
switch message SMBnegprot (pid 1966)
Requested protocol [PC NETWORK PROGRAM 1.0]
Requested protocol [MICROSOFT NETWORKS 3.0]
Requested protocol [DOS LM1.2X002]
Requested protocol [DOS LANMAN2.1]
Requested protocol [Windows for Workgroups 3.1a]
Requested protocol [NT LM 0.12]
Selected protocol NT LM 0.12
01/15/98 12:28:45 Transaction 2 of length 161
switch message SMBsesssetupX (pid 1966)
Domain=[INETTEST]  NativeOS=[Windows 4.0] NativeLanMan=[Windows 4.0]
sesssetupX:name=[JEELANI]
adding home directory jeelani at /home/jeelani
jeelani is in 1 groups
100 
uid 1001 registered to name jeelani
Clearing default real name
Chained message
switch message SMBtconX (pid 1966)
ACCEPTED: validated uid ok as non-guest
found free connection number 77
Connect path is /var/spool/lpd/lp
jeelani is in 1 groups
100 
chdir to /var/spool/lpd/lp
chdir to /usr/local/samba/bin
01/15/98 12:28:45 jeelani1 (192.168.1.3) connect to service lp as user jeelani (uid=1001,gid=100) (pid 1966)
01/15/98 12:28:45 tconX service=lp user=jeelani cnum=77
01/15/98 12:28:45 Transaction 3 of length 70
switch message SMBopenX (pid 1966)
chdir to /var/spool/lpd/lp
unix_clean_name []
unix_clean_name [jeelan.a01966]
Allocated new file_fd_struct 0, dev = ffffffff, inode = ffffffff
Error opening file jeelan.a01966 (Permission denied) (flags=65)
fd_attempt_close on file_fd_struct 0, fd = -1, dev = ffffffff, inode = ffffffff, open_flags = 1, ref_count = 1.
01/15/98 12:28:45 error packet at line 1235 cmd=45 (SMBopenX) eclass=1 ecode=5
error string = Permission denied
01/15/98 12:28:45 Transaction 4 of length 70
switch message SMBopenX (pid 1966)
unix_clean_name []
unix_clean_name [jeelan.a01966]
Allocated new file_fd_struct 0, dev = ffffffff, inode = ffffffff
Error opening file jeelan.a01966 (Permission denied) (flags=65)
fd_attempt_close on file_fd_struct 0, fd = -1, dev = ffffffff, inode = ffffffff, open_flags = 1, ref_count = 1.
01/15/98 12:28:45 error packet at line 1235 cmd=45 (SMBopenX) eclass=1 ecode=5
error string = Permission denied
01/15/98 12:28:45 Transaction 5 of length 39
switch message SMBtdis (pid 1966)
chdir to /usr/local/samba/bin
01/15/98 12:28:45 jeelani1 (192.168.1.3) closed connection to service lp
Yielding connection to 77 lp
Yielding connection to 77 STATUS.
Yield successful
01/15/98 12:28:45 tdis cnum=77
end of file from client
Closing connections
01/15/98 12:28:45 Server exit  (normal exit)



	Thanks in advance 

RGDS
Jeelani


More information about the samba mailing list