[Samba] excessive lpstat calls

Andrew Morgan morgan at orst.edu
Wed Oct 12 18:59:50 GMT 2005


On Wed, 12 Oct 2005, Gerald (Jerry) Carter wrote:

> |> Andrew Morgan wrote:
> |> |
> |> | I run a fairly busy samba server that only serves up users' home
> |> | directory.  I am running Samba v3.0.20 under Solaris 10 on a Sun v440.
> |> | I'm seeing a large number of calls to '/usr/bin/lpstat -v'.  These are
> |> | probably occuring everytime a new client connects, but I'm not
> |> positive.
> |> |
> |> | The server does not have any printers attached to it, has no entries in
> |> | /etc/printers.conf, and is not running lp services at all.  I am unable
> |> | to remove the lp packages from the system due to dependencies.  I have
> |> | no intention of using Samba as a print server on this machine, so I'd
> |> | like to disable printing entirely and prevent Samba from calling lpstat
> |> | continuously.
> |> |
> |> | I've attached my smb.conf file.  Any suggestions?
> |>
> |> Try setting "printing = bsd" and "printcap name = /dev/null".
> |> Although we really shouldn't be looking for printers at all
> |> when there ie no [printers] section in smb.conf.
> |
> | Thanks Jerry, this worked.  Should I file a bug on
> | this so it doesn't get lost?
>
> You just just send me a level 10 smbd debug log of the lpstat
> issue?  I think I can figure it out pretty quickly.....

Do you want the level 10 debug log with the original settings, or the 
settings you recommended above?

 	Andy


More information about the samba mailing list