Unix Technical Forum

smbd

This is a discussion on smbd within the Sco Unix forums, part of the Unix Operating Systems category; --> On a new installation of OSR 6.0.0, the smbd daemon does not daemonize itself. If I run 'mkdev samba', ...


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-15-2008, 05:25 PM
Jean-Pierre Radley
 
Posts: n/a
Default smbd

On a new installation of OSR 6.0.0, the smbd daemon does not daemonize
itself.

If I run 'mkdev samba', the script never terminates after announcing that
it is Enabling Samba.

If I reboot, /etc/rc2.d/messages/prc_sync records that S99smbd timed
out.

And if I type '/usr/sbin/smbd -D -s /etc/samba/smb.conf' from a root
prompt, it does not daemonize itself and I do not get another shell
prompt.

/var/adm/log/samba/log.smbd contains only three linesa:

[2005/09/20 13:18:41, 0] smbd/server.c798)
smbd version 3.0.13-2sco-SCO started.
Copyright Andrew Tridgell and the Samba Team 1992-2004


--
JP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-15-2008, 05:25 PM
Roger Cornelius
 
Posts: n/a
Default Re: smbd

Jean-Pierre Radley wrote:
> On a new installation of OSR 6.0.0, the smbd daemon does not daemonize
> itself.
>
> If I run 'mkdev samba', the script never terminates after announcing that
> it is Enabling Samba.
>
> If I reboot, /etc/rc2.d/messages/prc_sync records that S99smbd timed
> out.
>
> And if I type '/usr/sbin/smbd -D -s /etc/samba/smb.conf' from a root
> prompt, it does not daemonize itself and I do not get another shell
> prompt.
>
> /var/adm/log/samba/log.smbd contains only three linesa:
>
> [2005/09/20 13:18:41, 0] smbd/server.c798)
> smbd version 3.0.13-2sco-SCO started.
> Copyright Andrew Tridgell and the Samba Team 1992-2004


No help, but I'm using samba on OSR6 with no problem. You didn't say,
but I'll assume you've installed MP1. Have you tried running under
truss to see where it's hanging?

I get the same three lines in log.smbd (which is in /var/log/samba
here).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-15-2008, 05:25 PM
Jean-Pierre Radley
 
Posts: n/a
Default Re: smbd

Roger Cornelius typed (on Tue, Sep 20, 2005 at 03:38:55PM -0700):
| Jean-Pierre Radley wrote:
| > On a new installation of OSR 6.0.0, the smbd daemon does not daemonize
| > itself.
| >
| > [hangs after running 'mkdev samba']
| > [hangs after running /etc/rc2.d/S99smbd]
| >
| > And if I type '/usr/sbin/smbd -D -s /etc/samba/smb.conf' from a root
| > prompt, it does not daemonize itself and I do not get another shell
| > prompt.
|
| No help, but I'm using samba on OSR6 with no problem. You didn't say,
| but I'll assume you've installed MP1. Have you tried running under
| truss to see where it's hanging?

Sorry, yes, MP1 is applied.

Thanks for the suggestion!
Running 'truss /usr/sbin/smbd -D -s /etc/samba/smb.conf' gets into a loop:

open("/etc/resolv.conf", O_RDONLY, 0666) = 4
ioctl(4, TCGETS, 0x080467A4) Err#25 ENOTTY
fxstat(2, 4, 0x080467E4) = 0
brk(0x082AD8B0) = 0
read(4, " h o s t r e s o r d e r".., 8192) = 184
read(4, 0x082A9510, 8192) = 0
close(4) = 0
xsocket(UW71|XPG4, AF_INET, SOCK_DGRAM, 0) = 4
xconnect(UW71|XPG4, 4, 0xBFD74A04, 16) = 0
xsendmsg(UW71|XPG4, 4, 0x08045F48, 0) = 45
poll(0x08045D3C, 1, 5000) (sleeping...)
poll(0x08045D3C, 1, 5000) = 0
close(4) = 0
xsocket(UW71|XPG4, AF_INET, SOCK_DGRAM, 0) = 4
xsendmsg(UW71|XPG4, 4, 0x08045F40, 0) = 45
poll(0x08045D3C, 1, 5000) (sleeping...)
... und so weiter...


Now why in the world is it checking /etc/resolv.conf? Is my problem
due to the fact that this new machine has a fake hostname and domain,
which do not appear anywhere in real DNS tables, but solely in its own
/etc/hosts file?

That does seem to the problem. I followed some suggestions in

http://aplawrence.com/Bofcusm/713.html

and in

http://www.oreilly.com/catalog/samba...k/ch07_03.html

and inserted these two lines into the smb.conf file:

name resolve order = wins
wins server = [the_local_machine_name]

After rebooting, lsof confirms that nmbd/smbd are listening on ports 137,
138, and 139.

When I told 'mkdev samba' that I did want the Unix machine to be its own
WINS server, why didn't it insert such lines for me?

Thanks again, Roger!

--
JP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:03 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com