Operating System - HP-UX
1830050 Members
27477 Online
109998 Solutions
New Discussion

Samba, swat configuration

 
Alex Almaraz
Regular Advisor

Samba, swat configuration

Hi Managers,

I have a server N4000 server hpux 11.00, it has the samba installed and the daemos are up. But, when I try to get access to the swat page http://host:901 it says The page cannot be found. Any ideas?

It has the /etc/inetd.conf configured, the /etc/services also.

Regards
12 REPLIES 12
Geoff Wild
Honored Contributor

Re: Samba, swat configuration

So, your /etc/services has:

swat 901/tcp # SAMBA Web-based Admin Tool

And inetd.conf has:

swat stream tcp nowait.400 root /opt/samba/bin/swat swat


You say samba is installed - how? IE - was HP's CIFS Server installed - then it came with Swat. Older versions of samba may or may not have included swat.

Don you have a:

/opt/samba/swat



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.
Alex Almaraz
Regular Advisor

Re: Samba, swat configuration

# cat /etc/services |grep swat
swat 901/tcp # Samba

# cat /etc/inetd.conf |grep swat
swat stream tcp nowait.400 root /opt/samba/bin/swat swat

# ls -l /opt/samba/swat
total 4
drwxrwx--- 2 root sys 1024 Feb 7 2000 help
drwxrwx--- 2 root sys 1024 Feb 7 2000 images
drwxrwx--- 2 root sys 96 Feb 7 2000 include

I don't installed the samba, it was installed before by another sysadmin, not sure the status of this installation.

Regards
Geoff Wild
Honored Contributor

Re: Samba, swat configuration

Okay - that looks good so far.

Look in /var/opt/samba/log.swat and log.smbd for any errors related to swat.

Are you running ipfilter? that might be blocking it...

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.
Alex Almaraz
Regular Advisor

Re: Samba, swat configuration

The directory you say is empty :s

Regards
Yang Qin_1
Honored Contributor

Re: Samba, swat configuration

Hi, try to find swat binary in /opt/samba/bin. If it is there, then try to use ip as url instead of host or try with host name configure in your DNS like: host.xx.yyy:901

Yang
Geoff Wild
Honored Contributor

Re: Samba, swat configuration

What is log file = in your /etc/opt/samba/smb.conf file?

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.
Alex Almaraz
Regular Advisor

Re: Samba, swat configuration

I tried it before, but now working. I verified in another server and saw that the nmdb daemon was running but not in the required. How to be sure if all the required daemons are runnig?

I started the daemon by executing:
/opt/samba/bin/nmbd -D

it is running now, the smdb daemon also
/opt/samba/bin/smbd -D

Regards
Alex Almaraz
Regular Advisor

Re: Samba, swat configuration

no file /etc/opt/samba/smb.conf. I will copy the one of the another server.

regards
Geoff Wild
Honored Contributor

Re: Samba, swat configuration

You should just run:

/opt/samba/bin/startsmb

Again, check your log files to see if there are any issues...

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.
Alex Almaraz
Regular Advisor

Re: Samba, swat configuration

in other words, I need to configure samba as you can see, some very quick guide?

Regards
Alex Almaraz
Regular Advisor

Re: Samba, swat configuration

Geoff,

No startsmb file

# pwd;ls -l
/opt/samba/bin
total 13516
-rwxr-xr-x 1 root sys 1708 Feb 7 2000 addtosmbpass
-rwxr-xr-x 1 root sys 446 Feb 7 2000 convert_smbpasswd
-rwxr-xr-x 1 root sys 286720 Feb 7 2000 make_printerdef
-rwxr-xr-x 1 root sys 286720 Feb 7 2000 make_smbcodepage
-rwxr-xr-x 1 root sys 573440 Feb 7 2000 nmbd
-rwxr-xr-x 1 root sys 397312 Feb 7 2000 nmblookup
-rwxr-xr-x 1 root sys 749568 Feb 7 2000 rpcclient
-rwxr-xr-x 1 root sys 475136 Feb 7 2000 smbclient
-rwxr-xr-x 1 root sys 1245184 Feb 7 2000 smbd
-rwxr-xr-x 1 root sys 700416 Feb 7 2000 smbpasswd
-rwxr-xr-x 1 root sys 397312 Feb 7 2000 smbspool
-rwxr-xr-x 1 root sys 315392 Feb 7 2000 smbstatus
-rwxr-xr-x 1 root sys 4862 Feb 7 2000 smbtar
-rw-rw-rw- 1 root sys 0 Sep 15 2002 swap.tmp
-rwxr-xr-x 1 root sys 778240 Feb 7 2000 swat
-rw-rw-rw- 1 root sys 111621 Sep 15 2002 swat.tmp
-rw-rw---- 1 root sys 0 Apr 3 2002 test.log
-rwxr-xr-x 1 root sys 282624 Feb 7 2000 testparm
-rw-rw-rw- 1 root sys 7526 Sep 15 2002 testparm.log
-rwxr-xr-x 1 root sys 303104 Feb 7 2000 testprns

Regards
Yang Qin_1
Honored Contributor

Re: Samba, swat configuration

Look at time stamp of those files in /opt/samba/bin, it seems that your samba is an old one. You can get a new samba (HP call it CIFS) from:
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8725AA

Yang