[Samba] parameter default devmode missing in man pages and other
julius_ahenobarbus at yahoo.co.uk
Sat May 16 18:13:08 GMT 2009
would it make sense to for the developers to pull in some code from the wine or winelib projects to take care of device mode issues. I've replaced a few printers recently with ones for which I can't set up point and print with samba anymore...
From: Karolin Seeger <kseeger at samba.org>
To: Axel Werner <mail at awerner.homeip.net>
Cc: samba at lists.samba.org
Sent: Thursday, 14 May, 2009 4:30:23
Subject: Re: [Samba] parameter default devmode missing in man pages and other docs
On Thu, May 14, 2009 at 10:15:59AM +0200, Axel Werner wrote:
> Why is the smb.conf Parameter "default devmode" missing in pretty much any
> samba documentation like man page etc ??
> does someone have a good "official " explaination about this parameter ?
man smm.conf (3.3.4):
default devmode (S)
This parameter is only applicable to printable services. When
smbd is serving Printer Drivers to
Windows NT/2k/XP clients, each printer on the Samba server has
a Device Mode which defines
things such as paper size and orientation and duplex settings.
The device mode can only
correctly be generated by the printer driver itself (which can
only be executed on a Win32
platform). Because smbd is unable to execute the driver code to
generate the device mode, the
default behavior is to set this field to NULL.
Most problems with serving printer drivers to Windows NT/2k/XP
clients can be traced to a
problem with the generated device mode. Certain drivers will do
things such as crashing the
clientŽs Explorer.exe with a NULL devmode. However, other
printer drivers can cause the clientŽs
spooler service (spoolsv.exe) to die if the devmode was not
created by the driver itself (i.e.
smbd generates a default devmode).
This parameter should be used with care and tested with the
printer driver in question. It is
better to leave the device mode to NULL and let the Windows
client set the correct values.
Because drivers do not do this all the time, setting default
devmode = yes will instruct smbd to
generate a default one.
For more information on Windows NT/2k printing and Device
Modes, see the MSDN documentation.
Default: default devmode = yes
More information about the samba