[Samba] lp_servicenumber: couldn't find printers

Joel Hammer Joel at HammersHome.com
Thu Nov 28 03:07:00 GMT 2002


You should considered compiling the sources on your new server.

I don't know C well (understandment of the year) but:

Poking around in loadparm.c a couple of ideas come to mind.
1. In medicine, when it comes to a dermatitis, we say if it is dry wet it,
if is is wet dry it. 
So, if you don't have a printers section in your smb.conf, put one in. If
you do have one, take it out.
It can be very simple, like:

[printers]
        path = /tmp
        guest ok = yes
        printable = Yes

I must say, this had no effect on my smbd starting, however.

2. If you don't mind compiling, you might change some things in
your source code and give it a go. Knowing C might be an advantage here.
You might change something like this:
Globals.bLoadPrinters = True;   
to
Globals.bLoadPrinters = False;   

Of course, you could monkey with the offending subroutine.

3. Wait for a guru to tell you the answer.

Joel
 

On Wed, Nov 27, 2002 at 02:27:27PM -0500, Leo C. Holmberg (330) 672-1577 wrote:
> Hi:
> 
> I first installed samba (Version 2.0.7)  on an AIX 4.3 system about 3 years ago.
> 
> Yesterday the original system crashed, and I am now trying to get it going on
> another AIX system. To the best of my knowledege smb.conf, along with all the
> samba binaries have not changed, i.e. they are from the backup of the crashed
> system.
> 
> On the new system, when the smbd and nmbd daemons are started, they die 
> immedidately. I ran them with the following command....
> 
> /usr/local/samba/bin/smbd -D -d 10 -l /var/smbd.log -s /usr/local/samba/lib/smb.conf
> 
> and when I look in the log file the last entries I see are...
> 
> 
> [2002/11/27 11:16:02, 3] param/params.c:pm_process(552)
>   params.c:pm_process() - Processing configuration file "/usr/local/samba/lib/smb.conf"
> [2002/11/27 11:16:02, 3] param/loadparm.c:lp_load(2805)
>   pm_process() returned Yes
> [2002/11/27 11:16:02, 3] param/loadparm.c:lp_add_ipc(1594)
>   adding IPC service
> [2002/11/27 11:16:02, 7] param/loadparm.c:lp_servicenumber(2897)
>   lp_servicenumber: couldn't find printers
> 
> I never had any printers defined in the smb.conf file, and don't have any 
> printers on the system. I've tried putting 'load printers = no' in the
> global section with no affect. Does anyone have any idea what I did wrong.
> 



More information about the samba mailing list