Hi We've noticed that we get zero length files left behind on Samba shares after printing to a Samba printer, of the form NExx: (appears as NExx~yy) from Windows due to name mangling. This only occurs in specific circumstances: Client running NT4 (SP6a) and Printing file on a Samba share and Printing to a Samba printer and Running particular applications (e.g. Word and Acrobat, but not Excel). Thus if the client is W2K or file is on an NT4 server or printer is on an NT4 server there's no problem. We're running 2.2.5. SMB.CONF below. It happens on all the Samba shares. Any suggestions much appreciated. Thanks Tim Allen # Samba config file created using SWAT # from vectrave.dcallen.co.uk (192.168.1.3) # Date: 2002/07/12 16:27:42 # Global parameters [global] workgroup = DCAE netbios name = GOLUX server string = Samba Server encrypt passwords = Yes username map = /usr/local/samba/lib/smbusers log level = 2 log file = /var/log/samba/log.%m max log size = 500 large readwrite = Yes time server = Yes socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8760 SO_RCVBUF=8760 local master = No dns proxy = No printer admin = @ntadmin hosts allow = 192.168.1. 127. printing = lprng oplocks = No [print$] path = /usr/local/samba/printers write list = @ntadmin,root guest ok = Yes [hp_lj3p] path = /shared/printers/spool printable = Yes print command = lpr -Fb -r -P %p %s printer name = lp [faxlp] path = /shared/printers/spool printable = Yes print command = lpr -r -P %p %s printer name = faxlp [Data] comment = Development data path = /shared/Data read only = No inherit permissions = Yes [Colleague] comment = Colleague Development path = "/shared/Data/Danby Medical/Colleague" read only = No inherit permissions = Yes [Admin] comment = Share for Admin group path = /shared/Admin read only = No inherit permissions = Yes [Apps] comment = Applications path = /shared/Apps read only = No create mask = 0644 [homes] comment = Home Directory path = /home/%S/pchome read only = No create mask = 0700 directory mask = 0700 browseable = No [Common] comment = Common directory for file sharing path = /shared/Common read only = No create mask = 0777 directory mask = 0777 [DCAE_Admin] comment = Share for DCAE_Admin path = /shared/Admin/DCAE_Admin read only = No inherit permissions = Yes [DCATS_Admin] comment = Share for DCATS_Admin path = /shared/Admin/DCATS_Admin read only = No inherit permissions = Yes
Found this on the subject: http://marc.theaimsgroup.com/?l=samba&m=97474174027152&w=2 Is this something that needs addressing in Samba? ----- Original Message ----- From: "Tim Allen" <timallen@ls83.fsnet.co.uk> To: <samba@lists.samba.org> Sent: Friday, July 12, 2002 4:47 PM Subject: [Samba] NE00: printer files left behind on Samba shares> Hi > > We've noticed that we get zero length files left behind on Samba shares > after printing to a Samba printer, of the form NExx: (appears as NExx~yy) > from Windows due to name mangling. This only occurs in specific > circumstances: > > Client running NT4 (SP6a) and > Printing file on a Samba share and > Printing to a Samba printer and > Running particular applications (e.g. Word and Acrobat, but not Excel). > > Thus if the client is W2K or file is on an NT4 server or printer is on an > NT4 server there's no problem. > > We're running 2.2.5. SMB.CONF below. It happens on all the Samba shares.Any> suggestions much appreciated. > > Thanks > > Tim Allen > > # Samba config file created using SWAT > # from vectrave.dcallen.co.uk (192.168.1.3) > # Date: 2002/07/12 16:27:42 > > # Global parameters > [global] > workgroup = DCAE > netbios name = GOLUX > server string = Samba Server > encrypt passwords = Yes > username map = /usr/local/samba/lib/smbusers > log level = 2 > log file = /var/log/samba/log.%m > max log size = 500 > large readwrite = Yes > time server = Yes > socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8760 SO_RCVBUF=8760 > local master = No > dns proxy = No > printer admin = @ntadmin > hosts allow = 192.168.1. 127. > printing = lprng > oplocks = No > > [print$] > path = /usr/local/samba/printers > write list = @ntadmin,root > guest ok = Yes > > [hp_lj3p] > path = /shared/printers/spool > printable = Yes > print command = lpr -Fb -r -P %p %s > printer name = lp > > [faxlp] > path = /shared/printers/spool > printable = Yes > print command = lpr -r -P %p %s > printer name = faxlp > > [Data] > comment = Development data > path = /shared/Data > read only = No > inherit permissions = Yes > > [Colleague] > comment = Colleague Development > path = "/shared/Data/Danby Medical/Colleague" > read only = No > inherit permissions = Yes > > [Admin] > comment = Share for Admin group > path = /shared/Admin > read only = No > inherit permissions = Yes > > [Apps] > comment = Applications > path = /shared/Apps > read only = No > create mask = 0644 > > [homes] > comment = Home Directory > path = /home/%S/pchome > read only = No > create mask = 0700 > directory mask = 0700 > browseable = No > > [Common] > comment = Common directory for file sharing > path = /shared/Common > read only = No > create mask = 0777 > directory mask = 0777 > > [DCAE_Admin] > comment = Share for DCAE_Admin > path = /shared/Admin/DCAE_Admin > read only = No > inherit permissions = Yes > > [DCATS_Admin] > comment = Share for DCATS_Admin > path = /shared/Admin/DCATS_Admin > read only = No > inherit permissions = Yes > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba > >
Andrew Bartlett
2002-Jul-12 20:49 UTC
[Samba] NE00: printer files left behind on Samba shares
Tim Allen wrote:> > Found this on the subject: > > http://marc.theaimsgroup.com/?l=samba&m=97474174027152&w=2 > > Is this something that needs addressing in Samba?We should probably look at why they are occouring - and get a sniff of it not happening on NT. I think we might be accepting files with a :, which are compleatly banned on NT - but its just a guess. Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net