The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
samba user23 UNIX for Dummies Questions & Answers 0 05-21-2008 10:08 AM
Samba Gegestic SUN Solaris 1 05-30-2006 11:49 AM
installation of Solaris: installation bypasses network config. cadmiumgreen SUN Solaris 2 07-15-2005 07:31 PM
Samba phapvn UNIX for Advanced & Expert Users 13 12-07-2001 09:54 AM
Samba installation souldier UNIX for Advanced & Expert Users 4 11-07-2001 01:59 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 04-09-2008
Registered User
 

Join Date: Mar 2008
Posts: 28
Getting the prompt back after entering smbd and nmbd usually means they started. Enter "ps -ef|grep mbd" and you should see them running. Also have you created an smb.conf? If not, I don't think smbd will start. Of course if you want to use swat to create an smb.conf then you need to resolve your swat problems first.

Adding them to /etc/inetd.conf is just another way of starting them. In fact I like that way since inetd starts them when that service is requested by a user. Use the way that makes most sense to you.

Rebooting is ok but it just tests to see if a samba start up occurs after a reboot. Good thing to test on a production machine.

I'm confused as to the host name of your AIX box. Is it banora? Is its ip address 192.168.0.144? Determine the ip address of your AIX box with "ifconfig -a". Then use a browser other than IE to browse to that ipaddress:901.

What are the logs telling you in /usr/local/samba/var?
Reply With Quote
Forum Sponsor
  #9  
Old 04-10-2008
Registered User
 

Join Date: Aug 2005
Posts: 18
Samba Installation

Prichard. Thanks for the time you are spending on this with me.
Sorry to give you so much reading. Answers to your questions are in the print outs below.

Well I found I had more than one inetd file and when I put the swat entry and the two netbios-ns and netbios-ssn lines in both #/usr/local/samba/bin/smbclient -L banora sprang to life as you can see below.
The aix5.2 machine all this is happening on is host banora 192.168.0.144.
In the smbclient printout below GIGI is my XP machine in the P2P network and Printer is a HP4500N on the P2P network connected via cat5 cable to the Switch/Hub like GIGI and banora are.

#/usr/local/samba/bin/testparm also looks good as per below.

The only thing not working is http://banora:901 which I put into seamonkey on banora and cannot get that Samba configuration page to come up.
Have a W2K machine on P2P network with Firefox and it did not work in this. GIGI/XP runs IE7 but it did not work on this either. Tried http://banora:901, http://banora and http://192.168.0.144 on both W2K and XP.

This http://banora:901 seems to be bound up with the " swat 901/tcp " entry I put in /etc/services . As you can see below there is another 3 " services " items in the computer.

(a) /usr /lpp/bos. net/inst_ root/ etc/services This looks exactly the same as /etc/services
(b) /usr /websm/codebase/com/ibm/websm/ apps/wsmperf/services Services here is a directory
(c) /etc/security/services This has a few port/tcp lines

Should the line " swat 901/tcp " go into the services file in (a) and (c) above. Did not want to fiddle with files.

Thanks

PS Note there are also two smb.conf files, both the same content as set out below.

Print outs for your perusal

# find / -name inetd.conf
/usr/lpp/bos.net/inst_ root/etc/inetd.conf
/etc/inetd.conf
# find / -name smb.conf
/usr/local/samba/lib/smb.conf
/etc/samba/smb.conf .
# find / -name smbd
/usr/local/samba/sbin/smbd
# find / -name nmbd
/usr/local/samba/sbin/nmbd
# find / -name swat
/usr/local/samba/sbin/swat
/usr/local/samba/swat
# find / -name services
/usr /lpp/bos. net/inst_ root/ etc/services
/usr /websm/codebase/com/ibm/websm/ apps/wsmperf/services
/etc/security/services
/etc/services
# find / -name smbclient
/usr/local/samba/bin/smbclient
# /usr/local/samba/bin/smbclient -L banora
Password:
Anonymous login successful
Domain=[OPEN SOURCE] OS=[Unix] Server=[Samba 3.0.4]
Sharename Type Comment
homes Disk
public Disk
IPC$ IPC IPC Service (Samba 3.0.4.0)
ADMIN$ IPC IPC Service (Samba 3.0.4.0)
pc14500dup Printer
psdup Printer
Anonymous login successful
Domain=[OPEN SOURCE] OS=[Unix] Server=[Samba 3.0.4]
Server Comment
BANORA Samba 3.0.4.0
Workgroup Master
OPEN SOURCE BANORA
WORKGROUP GIGI
# find / -name testparm
/usr/local/samba/bin/testparm
# /usr/local/samba/bin/testparm
Load smb config files from /usr/local/samba/lib/smb.conf
Processing section" [homes]"
Processing section" [printers]"
Processing section" [public]"
Loaded services file OK.
Server role: ROLE_ STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = OPEN SOURCE
server string = Samba 3.0.4.0
smb passwd file = /var/samba/private/smbpasswd
log file = /usr/local/samba/var/log.%m
mangle case = Yes
[homes]
force user = %U
read only = No
hosts allow = 129.183.
[printers]
comment = All Printers
path = /usr/spool/samba
printable = Yes
browseable = No
[public]
path = /tmp
guest ok = Yes
# ifconfig -a
enD: flags=4e080863,80<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROU
PRT, 64BIT, PSEG,CHAIN>
inet 192.168.0.144 netmask OxffffffOO broadcast 192.168.0.255
100: flags=e08084b<UP, BROADCAST, LOOPBACK,RUNNING, SIMPLEX, MULTI CAST,GROUPRT,64
BIT>
inet 127.0.0.1 netmask OxffOOOOOO broadcast 127.255.255.255
inet6 : :1/0
tcp_ sendspace 65536 tcp recvspace 65536
# hostname
banora
#

log.banora is empty

log.192.168.0.144 is empty

log.nmbd
[2008/04/09 11:36:41, 0] nmbd/nmbd.c:main(664)
Netbios nameserver version 3.0.4 started.
Copyright Andrew Tridgell and the Samba Team 1994-2004
~fO08/O4/09 11:42:27, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(39
*****
Samba name server BANORA is now a local master browser for workgroup OPEN S
OURCE on subnet 192.168.0.144
*****
[2008/04/09 12:02:57, 0] nmbd/nmbd.c:terminate(54)
Got SIGTERM: going down...
[2008/04/10 12:50:09, 0] nmbd/nmbd.c:main(664)
Netbios nameserver version 3.0.4 started.
Copyright Andrew Tridgell and the Samba Team 1994-2004
~fO08/O4/10 12:55:58, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(39
*****
Samba name server BANORA is now a local master browser for workgroup OPEN S
OURCE on subnet 192.168.0.144
*****
[2008/04/10 12:56:00, 0] nmbd/nmbd. c: terminate (54)
Got SIGTERM: going down...
[2008/04/10 15:14:13, 0] nmbd/nmbd.c:main(664)
Netbios nameserver version 3.0.4 started.
Copyright Andrew Tridgell and the Samba Team 1994-2004
[2008/04/10 15:19:56, 0] nmbd/nmbd_become_lmb.c:become local master stage2(39
6) - - -
*****
Samba name server BANORA is now a local master browser for workgroup OPEN S
OURCE on subnet 192.168.0.144
*****
log,smbd
[2008/04/09 11:35:44, 0] smbd/server.c:main(757)
smbd version 3.0.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2008/04/10 12:39:23, 0] smbd/server.c:main(757)
smbd version 3.0.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2008/04/10 12:43:00, 0] smbd/server.c:main(757)
smbd version 3.0.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2008/04/10 12:43:02, 0] smbd/server.c:main(757)
smbd version 3.0.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2008/04/10 15:28:19, 0] smbd/server.c:main(757)
smbd version 3.0.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
[2008/04/10 15:28:23, 0] smbd/server.c:main(757)
smbd version 3.0.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2004
Reply With Quote
  #10  
Old 04-10-2008
Registered User
 

Join Date: Mar 2008
Posts: 28
swat 901/tcp goes into /etc/services

grep 901 /etc/services and make sure some other service is not using 901. Also enter "ypcat services |grep 901" if you are running NIS, making sure there is not some other service using 901.

One can administer samba without swat. It is just a convenience.

Can you ping 192.168.0.144 from Windows PC? On your Windows PC what does nslookup 192.168.0.144 return?

Looking at the logs smbd is running. Have you browsed to 192.168.0.144\public from your Windows PC?
Reply With Quote
  #11  
Old 04-10-2008
Registered User
 

Join Date: Aug 2005
Posts: 18
Samba Installation

Prichard replies to you questions.
(1)#grep 901 /etc/services
nimsh 3901/tcp
nimsh 3901/udp
swat 901/tcp

(2)#ypcat services |grep 901
ypcat 1831-142 the domainname has not been set on this machine.

(3) " One can administer samba without swat. It is just a convenience. "
Really needed for a newbie. Books advise not to try and edit smb.conf manually.

(4)Can you ping 192.168.0.144 from Windows PC?
Microsoft windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\>ping 192.168.0.144
pinging 192.168.0.144 witn 32 bytes of data:
Reply from 192.168.0.144: bytes=32 time<lms TTL=255
Reply from 192.168.0.144: bytes=32 time<lms TTL=255
Reply from 192.168.0.144: bytes=32 time<lms TTL=255
Reply from 192.168.0.144: bytes=32 time<lms TTL=255
ping statistics for 192.168.0.144:
Packets: sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = Oms, Maximum = Oms, Average = Oms

Ping from banora back to XP
# ping 192.168.0.130
PING 192.168.0.130: (192.168.0.130): 56 data bytes
64 bytes from 192.168.0.130: icmp seq=O ttl=128 time=O ms
64 bytes from 192.168.0.130: icmp-seq=l ttl=128 time=O ms
64 bytes from 192.168.0.130: icmp-seq=2 ttl=128 time=O ms
64 bytes from 192.168.0.130: icmp-seq=3 ttl=128 time=O ms
AC -
192.168.0.130 PING Statistics 4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms

(5)On your Windows PC what does nslookup 192.168.0.144 return?

C:\>nslookup 192.168.0.144
*** Can't find server name for address 203.49.70.20: Non-existent domain
server: sy-dns04.tmns.net.au
Address: 139.134.2.190
*** sy-dns04.tmns.net.au can't find 192.168.0.144: Non-existent domain

nslookup on banora back to XP
# nslookup 192.168.0.130
Server: sy-dns03.tmns.net.au
Address: 139.134.5.51
*** sy-dns03.tmns.net.au can't find 192.168.0.130:Non-existent host/domain

(6)Have you browsed to 192.168.0.144\public from your Windows PC?
Tried 192.168.0.144\public and http://192.168.0.144\public in XP/IE7 and W2K/Firefox with no luck.

(7)Looking at the logs smbd is running.
# lssrc -a
Subsystem Group PID Status
syslogd ras 10578 active
sendmail mail 10836 active
portmap portmap 8342 active
inetd tcpip 8786 active
snmpd tcpip 9034 active
hostmibd tcpip 9292 active
snmpmibd tcpip 9550 active
aixmibd tcpip 9808 active
muxatmd tcpip 14448 active
biod nfs 14706 active
rpc.statd nfs 13934 active
rpc.lockd nfs 13178 active
qdaemon spooler 12982 active
writesrv spooler 10350 active
ctrmc rsct 4948 active
IBM.ServiceRM rsct rm 14202 active
IBM.ERRM rsct-rm 5522 active
IBM.CSMAgentRM rsct=rm 13688 active
IBM.AuditRM rsct rm 16274 active
Ipd spooler inoperative
clvrnd inoperative
LUMlmd lumls inoperative
LUMgdb lumls inoperative
Truncated a couple of dozen more inoperatives off list for brevity.

Prichard I am just trying to to transfer files across my P2P network. I orignally tried sendmail with attatchments and that was a disaster. Got lost in a myriad of permission's denied using ftp and telnet. Now Samba is not as simple as the books make out.
A guy has suggested WinAxe on my XP machine.
Open to suggestions.
Pity as with your help I felt I was nearly there with Samba.
Reply With Quote
  #12  
Old 04-11-2008
Registered User
 

Join Date: Aug 2005
Posts: 18
Samba Installation

Prichard. Found some more items on further web reading. Dangerous I know, but you comments appreciated.

I do not think some files are running.

Remember I said that running the commands below the screen just jumped to # and you said this signifies they are running.
#ps -ef | grep smbd
#ps -ef | grep nmbd
#ps -ef | grep swat
In Samba in 24 Hours a reply like
root 29054 1 0 15:53 ? 00:00:00 /usr/local/samba/sbin/smbd -D
should be received to show smdb is running.

In a Redbook is said to see the server is started and listening on the SWAT port 901 run
#netstat -an | grep 901 giving a reply like
tcp4 0 0 *.901 *.* LISTEN
I do not get a reply it just jumps to #

Regards
Reply With Quote
  #13  
Old 04-11-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,262
Quote:
Originally Posted by farl View Post
[homes]
force user = %U
read only = No
hosts allow = 129.183.
[printers]
I don't know Samba all too good, but doesn't the part marked bold look like the wrong network? Just guessing....

bakunin
Reply With Quote
  #14  
Old 04-11-2008
Registered User
 

Join Date: Mar 2008
Posts: 28
I think bakunin found the main problem. Here is some things to think about:

Lets work on the Samba problem first and then Swat.

From your earlier posts you have put smbd and nmbd in /etc/inetd.conf. That means they will be started when needed. Also your smbclient worked, that tells me samba is most likely working fine. The log.smb also indicates samba is working.

What I'm seeing in your email is that your "browsing" understanding and syntax is not quite right.

One way to test samba is to open Windows explorer and use the syntax, now don't flip the slash directions: \\192.168.0.144

Another way to test samba is to open Internet Explorer and type file://192.168.0.144 Again, do not flip the slash directions.

What are your results?

I will be unavailable for the next week. I will check when I get back on 4/21

Last edited by prichard; 04-11-2008 at 02:02 PM. Reason: Tell about being out of town.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0