smbd problems

Hello,
I’ve installed SAMBA 2.2.7a from the public repository 6.21 but can’t seem
to get smbd to run. My /var/log/log.smbd file looks like this when I run
smbd -D -d10. Any ideas or solutions appreciated.


Adding chars 0x0 0x0 (l->u = False) (u->l = False)
Adding chars 0x21 0x0 (l->u = False) (u->l = False)
Adding chars 0x23 0x0 (l->u = False) (u->l = False)
Adding chars 0x24 0x0 (l->u = False) (u->l = False)
Adding chars 0x25 0x0 (l->u = False) (u->l = False)
Adding chars 0x26 0x0 (l->u = False) (u->l = False)
Adding chars 0x27 0x0 (l->u = False) (u->l = False)
Adding chars 0x28 0x0 (l->u = False) (u->l = False)
Adding chars 0x29 0x0 (l->u = False) (u->l = False)
Adding chars 0x2d 0x0 (l->u = False) (u->l = False)
Adding chars 0x2e 0x0 (l->u = False) (u->l = False)
Adding chars 0x30 0x0 (l->u = False) (u->l = False)
Adding chars 0x31 0x0 (l->u = False) (u->l = False)
Adding chars 0x32 0x0 (l->u = False) (u->l = False)
Adding chars 0x33 0x0 (l->u = False) (u->l = False)
Adding chars 0x34 0x0 (l->u = False) (u->l = False)
Adding chars 0x35 0x0 (l->u = False) (u->l = False)
Adding chars 0x36 0x0 (l->u = False) (u->l = False)
Adding chars 0x37 0x0 (l->u = False) (u->l = False)
Adding chars 0x38 0x0 (l->u = False) (u->l = False)
Adding chars 0x39 0x0 (l->u = False) (u->l = False)
Adding chars 0x40 0x0 (l->u = False) (u->l = False)
Adding chars 0x41 0x0 (l->u = False) (u->l = False)
Adding chars 0x42 0x0 (l->u = False) (u->l = False)
Adding chars 0x43 0x0 (l->u = False) (u->l = False)
Adding chars 0x44 0x0 (l->u = False) (u->l = False)
Adding chars 0x45 0x0 (l->u = False) (u->l = False)
Adding chars 0x46 0x0 (l->u = False) (u->l = False)
Adding chars 0x47 0x0 (l->u = False) (u->l = False)
Adding chars 0x48 0x0 (l->u = False) (u->l = False)
Adding chars 0x49 0x0 (l->u = False) (u->l = False)
Adding chars 0x4a 0x0 (l->u = False) (u->l = False)
Adding chars 0x4b 0x0 (l->u = False) (u->l = False)
Adding chars 0x4c 0x0 (l->u = False) (u->l = False)
Adding chars 0x4d 0x0 (l->u = False) (u->l = False)
Adding chars 0x4e 0x0 (l->u = False) (u->l = False)
Adding chars 0x4f 0x0 (l->u = False) (u->l = False)
Adding chars 0x50 0x0 (l->u = False) (u->l = False)
Adding chars 0x51 0x0 (l->u = False) (u->l = False)
Adding chars 0x52 0x0 (l->u = False) (u->l = False)
Adding chars 0x53 0x0 (l->u = False) (u->l = False)
Adding chars 0x54 0x0 (l->u = False) (u->l = False)
Adding chars 0x55 0x0 (l->u = False) (u->l = False)
Adding chars 0x56 0x0 (l->u = False) (u->l = False)
Adding chars 0x57 0x0 (l->u = False) (u->l = False)
Adding chars 0x58 0x0 (l->u = False) (u->l = False)
Adding chars 0x59 0x0 (l->u = False) (u->l = False)
Adding chars 0x5a 0x0 (l->u = False) (u->l = False)
Adding chars 0x5e 0x0 (l->u = False) (u->l = False)
Adding chars 0x5f 0x0 (l->u = False) (u->l = False)
Adding chars 0x60 0x0 (l->u = False) (u->l = False)
Adding chars 0x61 0x0 (l->u = False) (u->l = False)
Adding chars 0x62 0x0 (l->u = False) (u->l = False)
Adding chars 0x63 0x0 (l->u = False) (u->l = False)
Adding chars 0x64 0x0 (l->u = False) (u->l = False)
Adding chars 0x65 0x0 (l->u = False) (u->l = False)
Adding chars 0x66 0x0 (l->u = False) (u->l = False)
Adding chars 0x67 0x0 (l->u = False) (u->l = False)
Adding chars 0x68 0x0 (l->u = False) (u->l = False)
Adding chars 0x69 0x0 (l->u = False) (u->l = False)
Adding chars 0x6a 0x0 (l->u = False) (u->l = False)
Adding chars 0x6b 0x0 (l->u = False) (u->l = False)
Adding chars 0x6c 0x0 (l->u = False) (u->l = False)
Adding chars 0x6d 0x0 (l->u = False) (u->l = False)
Adding chars 0x6e 0x0 (l->u = False) (u->l = False)
Adding chars 0x6f 0x0 (l->u = False) (u->l = False)
Adding chars 0x70 0x0 (l->u = False) (u->l = False)
Adding chars 0x71 0x0 (l->u = False) (u->l = False)
Adding chars 0x72 0x0 (l->u = False) (u->l = False)
Adding chars 0x73 0x0 (l->u = False) (u->l = False)
Adding chars 0x74 0x0 (l->u = False) (u->l = False)
Adding chars 0x75 0x0 (l->u = False) (u->l = False)
Adding chars 0x76 0x0 (l->u = False) (u->l = False)
Adding chars 0x77 0x0 (l->u = False) (u->l = False)
Adding chars 0x78 0x0 (l->u = False) (u->l = False)
Adding chars 0x79 0x0 (l->u = False) (u->l = False)
Adding chars 0x7a 0x0 (l->u = False) (u->l = False)
Adding chars 0x7b 0x0 (l->u = False) (u->l = False)
Adding chars 0x7d 0x0 (l->u = False) (u->l = False)
Adding chars 0x7e 0x0 (l->u = False) (u->l = False)
[2003/06/10 17:46:39, 3] …/smbd/sec_ctx.c:get_current_groups(172)
get_current_groups: user is in 1 groups: 100
[2003/06/10 17:46:39, 0] …/smbd/server.c:main(707)
smbd version 2.2.7a started.
Copyright Andrew Tridgell and the Samba Team 1992-2002
[2003/06/10 17:46:39, 2] …/smbd/server.c:main(711)
uid=0 gid=0 euid=0 egid=0
[2003/06/10 17:46:39, 3] …/param/loadparm.c:init_globals(1272)
Initialising global parameters
[2003/06/10 17:46:39, 3] …/param/params.c:pm_process(577)
params.c:pm_process() - Processing configuration file
“/etc/samba/smb.conf”
[2003/06/10 17:46:39, 3] …/param/loadparm.c:do_section(3037)
Processing section “[global]”
doing parameter workgroup = WSL
doing parameter server string = QNX 6.2.1 Server
doing parameter encrypt passwords = Yes
doing parameter log file = /usr/local/samba/log.%m
doing parameter load printers = No
doing parameter preferred master = No
doing parameter local master = No
doing parameter domain master = No
doing parameter guest account = pcguest
[2003/06/10 17:46:39, 2] …/param/loadparm.c:do_section(3055)
Processing section “[homes]”
doing parameter comment = Home Directories
doing parameter read only = No
doing parameter create mask = 0750
[2003/06/10 17:46:39, 2] …/param/loadparm.c:do_section(3055)
Processing section “[tmp]”
doing parameter comment = Temporary file space
doing parameter path = /tmp
doing parameter guest ok = Yes
[2003/06/10 17:46:39, 4] …/param/loadparm.c:lp_load(3485)
pm_process() returned Yes
[2003/06/10 17:46:39, 3] …/param/loadparm.c:lp_add_ipc(2023)
adding IPC service IPC$
[2003/06/10 17:46:39, 3] …/param/loadparm.c:lp_add_ipc(2023)
adding IPC service ADMIN$
[2003/06/10 17:46:39, 10] …/param/loadparm.c:set_server_role(3439)
set_server_role: ROLE_STANDALONE
[2003/06/10 17:46:39, 7] …/param/loadparm.c:lp_servicenumber(3594)
lp_servicenumber: couldn’t find printers

Brett Wilton <bdwilton@xtra.co.nz> wrote:

Hello,
I’ve installed SAMBA 2.2.7a from the public repository 6.21 but can’t seem
to get smbd to run. My /var/log/log.smbd file looks like this when I run
smbd -D -d10. Any ideas or solutions appreciated.

Did you start nmbd first? Also, you will likly want to go in and edit
the /etc/sambs/smb.conf file to match your printers and where you want the
per-client logfiles placed.

chris

\

Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Yes, nmbd is running fine but when I start smbd it just disappears, I have
no printcap and no printers I wish to connect to at this stage. From the
log.smbd file in my last email it seems to be having a problem with the
printers but I can’t say this definitively. I have tried just putting a
simply /etc/printcap file and entry i.e.
lpt1:
:lp=/dev/par1:
but to no avail.

The /usr/local/samba directory does exist…smbclient -L <sever_name>
craps out, obviously because smbd is not running, I have also tried settings
things up in the inetd.conf file but had no luck here as well.

Below is the smb.conf file that I use, I can connect with swat

Samba config file created using SWAT

from brett.wsl.co.nz (192.168.1.77)

Date: 2003/06/11 12:19:42

Global parameters

[global]
workgroup = WSL
server string = QNX 6.2.1 Server
allow trusted domains = No
log file = /usr/local/samba/log.%m
load printers = No
preferred master = No
local master = No
domain master = No
guest account = pcguest

[homes]
comment = Home Directories
read only = No
create mask = 0750

[tmp]
comment = Temporary file space
path = /tmp
guest ok = Yes


“Chris McKillop” <cdm@qnx.com> wrote in message
news:bc46aq$fr8$1@nntp.qnx.com

Brett Wilton <> bdwilton@xtra.co.nz> > wrote:
Hello,
I’ve installed SAMBA 2.2.7a from the public repository 6.21 but can’t
seem
to get smbd to run. My /var/log/log.smbd file looks like this when I run
smbd -D -d10. Any ideas or solutions appreciated.


Did you start nmbd first? Also, you will likly want to go in and edit
the /etc/sambs/smb.conf file to match your printers and where you want the
per-client logfiles placed.

chris

\

Chris McKillop <> cdm@qnx.com> > “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Hi Bret,
Look in your smb.conf where does Samba store its lock files and remove
all dat, tdb and pid files.

Alain.

Brett Wilton a écrit:

Yes, nmbd is running fine but when I start smbd it just disappears, I have
no printcap and no printers I wish to connect to at this stage. From the
log.smbd file in my last email it seems to be having a problem with the
printers but I can’t say this definitively. I have tried just putting a
simply /etc/printcap file and entry i.e.
lpt1:
:lp=/dev/par1:
but to no avail.

The /usr/local/samba directory does exist…smbclient -L <sever_name
craps out, obviously because smbd is not running, I have also tried settings
things up in the inetd.conf file but had no luck here as well.

Below is the smb.conf file that I use, I can connect with swat

Samba config file created using SWAT

from brett.wsl.co.nz (192.168.1.77)

Date: 2003/06/11 12:19:42

Global parameters

[global]
workgroup = WSL
server string = QNX 6.2.1 Server
allow trusted domains = No
log file = /usr/local/samba/log.%m
load printers = No
preferred master = No
local master = No
domain master = No
guest account = pcguest

[homes]
comment = Home Directories
read only = No
create mask = 0750

[tmp]
comment = Temporary file space
path = /tmp
guest ok = Yes


“Chris McKillop” <> cdm@qnx.com> > wrote in message
news:bc46aq$fr8$> 1@nntp.qnx.com> …


Brett Wilton <> bdwilton@xtra.co.nz> > wrote:


Hello,
I’ve installed SAMBA 2.2.7a from the public repository 6.21 but can’t


seem


to get smbd to run. My /var/log/log.smbd file looks like this when I run
smbd -D -d10. Any ideas or solutions appreciated.



Did you start nmbd first? Also, you will likly want to go in and edit
the /etc/sambs/smb.conf file to match your printers and where you want the
per-client logfiles placed.

chris

\

Chris McKillop <> cdm@qnx.com> > “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/




\

Brett Wilton <bdwilton@xtra.co.nz> wrote:

Yes, nmbd is running fine but when I start smbd it just disappears, I have
no printcap and no printers I wish to connect to at this stage. From the
log.smbd file in my last email it seems to be having a problem with the
printers but I can’t say this definitively. I have tried just putting a
simply /etc/printcap file and entry i.e.
lpt1:
:lp=/dev/par1:
but to no avail.

Try changing the logfile directory to a valid location.

log file = /var/log/samba_log.%m

With that single change from the default smb.conf nmbd -D and smbd -D
work fine and I am able to remote mount my shares.

chris

\

Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Thanks for the help, it seems it was the lock files that was causing the problem…deleted them all and all seems to be working correctly (so far!).
“Alain Bonnefoy” <alain.bonnefoy@icbt.com> wrote in message news:3EE6BF80.8030000@icbt.com
Hi Bret,
Look in your smb.conf where does Samba store its lock files and remove all dat, tdb and pid files.

Alain.

Brett Wilton a écrit:

Yes, nmbd is running fine but when I start smbd it just disappears, I have
no printcap and no printers I wish to connect to at this stage. From the
log.smbd file in my last email it seems to be having a problem with the
printers but I can’t say this definitively. I have tried just putting a
simply /etc/printcap file and entry i.e.
lpt1:
:lp=/dev/par1:
but to no avail.

The /usr/local/samba directory does exist…smbclient -L <sever_name>
craps out, obviously because smbd is not running, I have also tried settings
things up in the inetd.conf file but had no luck here as well.

Below is the smb.conf file that I use, I can connect with swat

Samba config file created using SWAT

from brett.wsl.co.nz (192.168.1.77)

Date: 2003/06/11 12:19:42

Global parameters

[global]
workgroup = WSL
server string = QNX 6.2.1 Server
allow trusted domains = No
log file = /usr/local/samba/log.%m
load printers = No
preferred master = No
local master = No
domain master = No
guest account = pcguest

[homes]
comment = Home Directories
read only = No
create mask = 0750

[tmp]
comment = Temporary file space
path = /tmp
guest ok = Yes


“Chris McKillop” <cdm@qnx.com> wrote in message
news:bc46aq$fr8$1@nntp.qnx.com

Brett Wilton <bdwilton@xtra.co.nz> wrote:

Hello,
I’ve installed SAMBA 2.2.7a from the public repository 6.21 but can’t

seem

to get smbd to run. My /var/log/log.smbd file looks like this when I run
smbd -D -d10. Any ideas or solutions appreciated.


Did you start nmbd first? Also, you will likly want to go in and edit
the /etc/sambs/smb.conf file to match your printers and where you want the
per-client logfiles placed.

chris

\

Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Hi Chris,
The problem is that smbd/nmbd sometimes crashe or not terminate
correctly for some obscur reasons (since samba 2.2.1, for me!) and
leave its tdb, log, and pid files in its lock dir.
This is what prevent smbd/nmb to start after.

regards,
Alain.

Chris McKillop a écrit:

Brett Wilton <> bdwilton@xtra.co.nz> > wrote:


Yes, nmbd is running fine but when I start smbd it just disappears, I have
no printcap and no printers I wish to connect to at this stage. From the
log.smbd file in my last email it seems to be having a problem with the
printers but I can’t say this definitively. I have tried just putting a
simply /etc/printcap file and entry i.e.
lpt1:
:lp=/dev/par1:
but to no avail.




Try changing the logfile directory to a valid location.

log file = /var/log/samba_log.%m

With that single change from the default smb.conf nmbd -D and smbd -D
work fine and I am able to remote mount my shares.

chris
\

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

The problem is that smbd/nmbd sometimes crashe or not terminate
correctly for some obscur reasons (since samba 2.2.1, for me!) and
leave its tdb, log, and pid files in its lock dir.
This is what prevent smbd/nmb to start after.

Interesting. Have you taken a look at the code to see where it fails and
if we can’t force it remove the files itself?

chris

\

Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Chris McKillop a écrit:

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:


The problem is that smbd/nmbd sometimes crashe or not terminate
correctly for some obscur reasons (since samba 2.2.1, for me!) and
leave its tdb, log, and pid files in its lock dir.
This is what prevent smbd/nmb to start after.




Interesting. Have you taken a look at the code to see where it fails and
if we can’t force it remove the files itself?

chris




Absolutely not,

I admit that I have no time to see what’s the problem. It’s not so
significant for now to push me to take time for that.
Sorry Chris,
Alain.