Samba Installation


 
Thread Tools Search this Thread
Operating Systems AIX Samba Installation
# 8  
Old 04-09-2008
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?
# 9  
Old 04-10-2008
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
# 10  
Old 04-10-2008
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?
# 11  
Old 04-10-2008
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.
# 12  
Old 04-11-2008
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
# 13  
Old 04-11-2008
Quote:
Originally Posted by farl
[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
# 14  
Old 04-11-2008
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 06:02 PM.. Reason: Tell about being out of town.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 flash installation - fatal error. Solaris installation program exited.

Not very helpful to say the least. Seems to read the flar file and go through the upgrade and then come up with this error. Any ideas? (1 Reply)
Discussion started by: psychocandy
1 Replies

2. Red Hat

Samba installation failing on Linux

We are trying to install samba server on linux environment but it's failing with following errors. Could any of you help me on this. body { margin: 0 0 0 0; padding:0 0 0 0 }td,div { font-family:Segoe UI;font-size:9pt;vertical-align:top }/* Copyright IBM Corp. 2011 All Rights Reserved. ... (4 Replies)
Discussion started by: talk1234
4 Replies

3. Red Hat

Samba installation issue

hey, i am trying to install a new samba server using the source package in my redhat machine.i am using samba 3.6.4 version.actually i am not able to find out the smb.conf file in there.can anyone give me any idea about where to look for this configuration file?? (3 Replies)
Discussion started by: htshshrm2
3 Replies

4. Solaris

samba issue: one samba share without password prompting and the others with.

Hi All, I've been trying to configure samba on Solaris 10 to allow me to have one share that is open and writable to all users and have the rest of my shares password protected by a generic account. If I set my security to user, my secured shares work just fine and prompt accordingly, but when... (0 Replies)
Discussion started by: ideal2545
0 Replies

5. UNIX for Dummies Questions & Answers

samba

hi all having lots of issues with Macs connecting to samba servers being published via Red Hat 5.1. Seems to be varring problems depending on what OSX version we run from 10.5 to 6.3. I found a not on one of the forums about adding the unix extenstions= no and that has cured a few macs but not.... (0 Replies)
Discussion started by: treds
0 Replies

6. UNIX for Advanced & Expert Users

Why Samba is still pointing to old version after installation

Hallo, I am new to administer a Unix machine. Basically I have just upgrade the samba version from 2.2.8a up to 3.0.22 on Sol 9 SV210. the installation was successful. but then when I checked the version by using /usr/sfw/bin/smbstatus it was still showing 2.2.8a. I've restarted samba... (1 Reply)
Discussion started by: Luky
1 Replies

7. Solaris

samba installation

Hi All, I want to install Samba packages in my server...I saw the processes that are related to samba are running. Being root, i dont have full permissions to stop samba and start it. I dont know whether i can kill the samba process. I was told to install samba on the system... ... (5 Replies)
Discussion started by: jegaraman
5 Replies

8. Solaris

installation of Solaris: installation bypasses network config.

hello solaris friends, I've tried installing Sun Solaris 10.0, but everytime it seems to bypass the network config. screen that looks similar to this...here's the url: http://www.hup.hu/old/images/hup/Solaris/Sol10beta7/9.png I'm able to install it all the way through but I get no... (2 Replies)
Discussion started by: cadmiumgreen
2 Replies

9. UNIX for Advanced & Expert Users

Samba installation

HI. I am still having problems installing samba. i found a site where there is a package for auto install. i click on the link and it start to data stream, what going on, i thought it suppose to install it to /usr/local/ . Here is the link i download or try to download the... (4 Replies)
Discussion started by: souldier
4 Replies
Login or Register to Ask a Question