Operating System - HP-UX
1834800 Members
2589 Online
110070 Solutions
New Discussion

Re: Samba SWAT no start smbd/nmbd

 
Jeroen_D
Regular Advisor

Samba SWAT no start smbd/nmbd

Hi,

I have just recently installed several Samba 2.2.3a's but on none of them can I use SWAT completely.

In the statustab, I can stop the smbd and nmbd but I can't start them again.
I have to go to /sbin/init.d/samba and type samba start in order to get them started again. I can use swat to configure samba.

I have to admit that I changed the sourcefiles a bit (before my compilation). Reason for this is that the HP-UX package wants to install samba in /usr/local/samba whilst I wanted it in /opt/samba and /var/opt/samba

In any case, even after creating a link from /usr/local/samba to /opt/samba, I still can't start the samba services from within swat.

Any help would be greatly appreciated.

Jeroen.
6 REPLIES 6
U.SivaKumar_2
Honored Contributor

Re: Samba SWAT no start smbd/nmbd

hi,
i guess there may be some permission problem.
compare the permission , ownership of files
swat with smbd and nmbd.
Refer /etc/inetd.conf for swat executable which
is invoked .
Also check the port of swat in /etc/services and ensure no other service uses it as source port or endpoint port.


regards,
U.SivaKumar
Innovations are made when conventions are broken
Steve Steel
Honored Contributor

Re: Samba SWAT no start smbd/nmbd

Hi


Change the smb.conf file to point where you want and use it when you start swat

swat
Name
swat -- Samba Web Administration Tool
Synopsis
swat [-s ] [-a]

DESCRIPTION
This tool is part of the Samba suite.

swat allows a Samba administrator to configure the complex smb.conf(5) file via a Web browser. In addition, a swat configuration page has help links to all the configurable options in the smb.conf file allowing an administrator to easily look up the effects of any change.

swat is run from inetd

OPTIONS

-s smb configuration file
The default configuration file path is determined at compile time. The file specified contains the configuration details required by the smbd server. This is the file that swat will modify. The information in this file includes server-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide. See smb.conf for more information.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Jeroen_D
Regular Advisor

Re: Samba SWAT no start smbd/nmbd

Hi,

I have done a chmod 777 in /opt/samba/bin directory but still I can't start Samba from within swat.

I do NOT have any problem launching swat or configuring the smb.conf

I can stop the smbd and nmbd from within the statuspage in swat, but I can not start them again. In order to start them, I have to go do the command line and type /sbin/init.d/samba start.

The swat daemon is running under the root account.

Jeroen.
Garrett Meiers
New Member

Re: Samba SWAT no start smbd/nmbd

Hello!

I too have this same problem. I'm running Samba 2.2.8a installed from a binary distribution for HP-UX 11.00 on a HP-UX 11.00 box.

I can also use SWAT to do everything including stopping the SMBD and NMBD processes.. However I can't start them from SWAT.

Just wondering if anyone had found a solution yet?

Thanks!
Steven E. Protter
Exalted Contributor

Re: Samba SWAT no start smbd/nmbd

New version available, based on Samba 2.2.5

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B8725AA

This should fix you right up.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geoff Wild
Honored Contributor

Re: Samba SWAT no start smbd/nmbd

Okay - does anything go into:

/var/opt/samba/log.nmbd and log.smbd

when you try to start them?

If, no, increase log level to 1 and try again.

You might want to try this version:

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=CIFSTP22

I am - and it works fine.

I used to get nmbd issue where I couldn't start it as well - turned out that the stop didn't really stop - and left a nmbd process running - after you do a stop - make sure with a ps -ef |grep nmbd that there are no nmbd's running...

RGds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.