[Pkg-samba-maint] Bug#431696: Bug#431696: samba: segfault when adding a printer driver

Dietrich Clauss dc2 at clauss.dyndns.org
Thu Jul 12 21:13:39 UTC 2007


Steve Langasek wrote:
> On Thu, Jul 12, 2007 at 01:34:21PM +0200, Dietrich Clauss wrote:
> > > > line 13154
> > > > | INTERNAL ERROR: Signal 11 in pid 31594 (3.0.25b)
> 
> > > Hmmm, just before this, we see:
> 
> > > [2007/07/09 22:29:40, 10] smbd/open.c:fd_open(67)
> > >   fd_open: name W32X86/SETUP32.DLL, flags = 00 mode = 0664, fd = -1. Die Ressource ist zur Zeit nicht verfügbar
> > > [2007/07/09 22:29:40, 3] smbd/open.c:open_file(301)
> > >   Error opening file W32X86/SETUP32.DLL (NT_STATUS_ACCESS_DENIED) (local_flags=0) (flags=0)
> > > [2007/07/09 22:29:40, 5] smbd/files.c:file_free(454)
> > >   freed files structure 5418 (1 used)
> > > [2007/07/09 22:29:40, 3] printing/nt_printing.c:file_version_is_newer(1344)
> > >   file_version_is_newer: Can't open new file [W32X86/SETUP32.DLL], errno = 11
> > > [2007/07/09 22:29:40, 0] lib/fault.c:fault_report(41)
> 
> 
> > > I see something like "this resource is not available now" in German.
> 
> > > Could you check the permissions of the setup32.dll file? Just in
> > > case...
> 
> > There are several copies of this file, one in the print$ share and three
> > on the windows client.  Permissions seem OK.
> 
> > on server:
> > -rw-rw-r-- 1 dc2 lpadmin 48128 1999-11-05 06:32 /var/lib/samba/printers/W32X86/3/SETUP32.DLL
> 
> > on client (mounted the win partition as fuse/ntfs):
> > -rwxrwx--- 1 dos dos 48128 2001-08-03 07:50 ./EPSON/epson10056/WIN2000/SETUP/SETUP32.DLL
> > -rwxrwx--- 1 dos dos 48128 1999-11-05 06:32 ./WINNT/system32/spool/drivers/w32x86/3/SETUP32.DLL
> > -rwxrwx--- 1 dos dos 48128 1980-06-03 08:00 ./WINNT/system32/spool/drivers/w32x86/SETUP32.DLL
> 
> > Maybe the file was in use by some windows program and thus it was not
> > available for others.  I dont know how to check this in windows.
> 
> This could only be about the file on the server; it's samba trying to open
> the file, and samba isn't going to try to open files on the client.
> What are the permissions on the /var/lib/samba/printers/W32X86 directory? 

2755 root.lpadmin

> Note that the existing file on your filesystem is W32X86/3/SETUP32.DLL, but
> the error mesage is from trying to open W32X86/SETUP32.DLL.

There is no file W32X86/SETUP32.DLL.  Samba seems want to create it
("Can't open new file [W32X86/SETUP32.DLL]"); according to the
permissions, it definitely can.  The permissions of the files in
/var/lib/samba/printers are always <someuser>.lpadmin 664 and 775 the
directories.  I enforce them using this smb.conf entry:

| [print$]
|    comment = Printer Drivers
|    path = /var/lib/samba/printers
|    force group          = lpadmin
|    create mask          = 0664
|    force create mode    = 0664
|    directory mask       = 2775
|    force directory mode = 2775
|    read only = yes
|    write list = root, @lpadmin
|    guest ok = yes

Installing the first printer driver worked fine with this setup.

- Dietrich

-- 
Viele Wege führen nach Rom, nur der Mittelweg falscher Kompromisse nicht.
  (A. Schönberg)





More information about the Pkg-samba-maint mailing list