Samba Installation


 
Thread Tools Search this Thread
Operating Systems AIX Samba Installation
# 1  
Old 04-07-2008
Samba Installation

Need assistance installing Samba on AIX 5200-10 with a host name of banora.

Downloaded samba-3.0.4.0.bff off the Bull Freeware site
and installed it with smit okay.

Am using the IBM Redbook SG24-6004-00 Samba Installation, Configuration, and Sizing Guide July 2000 based on ver 2.0.6 as this is the only detailed AIX/Samba installation guide I could find.

The book says to test the installation, which failed.

I did the following.
# find / -name smbclient
/usr/local/samba/bin/smbclient

# /usr/local/samba/bin/smbclient -L banora
Error connecting to 192.168.0.144 (A remote host refused an attempted connect
operation.)
Connection to banora failed

# ping 192.168.0.1
PING 192.168.0.1: (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: icmp seq=O ttl=64 time=l ms
64 bytes from 192.168.0.1: icmp=seq=l ttl=64 time=l ms
64 bytes from 192.168.0.1: icmp seq=2 ttl=64 time=l ms
192.168.0.1 PING Statistics 3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1/1/1 ms

# ping 192.168.0.144
PING 192.168.0.144: (192.168.0.144): 56 data bytes
64 bytes from 192.168.0.144: icmp_seq=O ttl=255 time=O ms
64 bytes from 192.168.0.144: icmp_seq=l ttl=255 time=O ms
64 bytes from 192.168.0.144: icmp seq=2 ttl=255 time=O ms
192.168.0.144 PING Statistics 3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms

The /etc/samba/smb.conf and /usr/local/samba/lib/smb.conf files are as follows.

[global]
workgroup = OPEN SOURCE
server string = Samba 3.0.4.0
security = user
encrypt passwords = Yes
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

The Redbook says that inetd.conf should include smbd, nmbd, and SWAT entries with the SWAT entry to be uncommented. I can find none of the entries in inetd.conf.

Using Seamonkey I ran http://banora:901 but nothing came up in 5 minutes. I suppose this is because of no SWAT entry in smb.conf

Have a series of AIX and Windows machines on a P2P network and was looking to use Samba to communicate between them.

Would appreciate some help to get the samba-3.0.4.0.bff installation up and running.

Cannot proceed to chapter 3 Basic Configuration as cannot get SWAT up and running.

Thanks
# 2  
Old 04-07-2008
Samba Installation

Sorry forgot to add testparm results

# /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

Regards
# 3  
Old 04-07-2008
add "swat 901/tcp" to /etc/services
add "swat stream tcp nowait.400 root /usr/local/bin/swat.sh swat"
refresh -s inetd
Now browse to http://banora:901
Use swat to start services or:
Start smbd by entering "/usr/local/samba/sbin/smbd -D"
Start nmbd by entering "/usr/local/samba/sbin/nmbd -D"
Now try smbclient
# 4  
Old 04-08-2008
Samba Installation

Pritchard thanks for reply.
However I could not get your instructions to work.
Your reply gave me clues to search web

Did this as you asked
add "swat 901/tcp" to /etc/services

The next line of yours was added to /etc/inetd.conf not
/etc/services.
add "swat stream tcp nowait.400 root /usr/local/bin/swat.sh swat"
Now tried #refresh -s inetd and got
0513-095 The request for subsystem refresh was completely unsuccessful.

One web page said to be sure inetd path was correct.
#find / -name swat and got 2 hits in my conputer
/usr/local/samba/sbin/swat
/usr/local/samba/swat

So I tried these lines in /etc/inetd.conf
"swat stream tcp nowait.400 root /usr/local/samba/sbin/swat.sh swat" and
"swat stream tcp nowait.400 root /usr/local/samba/swat.sh swat" but
keep getting the 0513-095 error.

All the articles I saw never mentioned " swat.sh swat " they all said " swat swat " so I tried these lines in /etc/inetd.conf

"swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat" and
"swat stream tcp nowait.400 root /usr/local/samba/swat swat"
"swat stream tcp nowait.400 root /usr/local/bin/swat swat"
but still keep getting the 0513-095 error.

Would appreciate further help.

Regards
# 5  
Old 04-08-2008
My bad. I missed the /etc/inetd.conf and the correct path to swat. I was running a swat.sh script that set the LIBPATH due to a unique install of Samba. I no longer need that and have corrected it in the /etc/inetd.conf.

Looking at your "find / -name swat" output it appears that swat is /usr/local/samba/sbin/swat. See if swat will start from the command line without errors by entering "/usr/local/samba/sbin/swat".

Based on your reply and my errors I would revise my procedure to read:

add "swat 901/tcp" to /etc/services
add "swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat" to /etc/inetd.conf
refresh -s inetd
Now browse to http://banora:901
Use swat to start services or:
Start smbd by entering "/usr/local/samba/sbin/smbd -D"
Start nmbd by entering "/usr/local/samba/sbin/nmbd -D"
Now try smbclient

BTW did smbd or nmbd start without error?
# 6  
Old 04-08-2008
Samba Installation

Prichard. your help really appreciated.
Here is what happened

(1) add "swat 901/tcp" to /etc/services Done

(2) add "swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat" to /etc/inetd.conf Done

(3) refresh -s inetd Got message was successful

(4) Now browse to http://banora:901
Using Seamonkey got " Failed to connect. The connection was refused when attempting to contact banora:901. Though the site seems valid...etc etc etc "
Was able to connect to Google, IBM so connection is good.

(5)Use swat to start services or: Did (6) and (7) next

(6)Start smbd by entering "/usr/local/samba/sbin/smbd -D"
did this and it jumped to # so presume okay ?

(7)Start nmbd by entering "/usr/local/samba/sbin/nmbd -D"
did this and it jumped to # so presume okay ?

(8)Now try smbclient
Did #find / -name smbclient and got
/usr/local/samba/bin/smbclient
so entered
#/usr/local/samba/bin/smbclient -L banora
Password: here entered root
session setup failed : NT_STATUS_LOGON_FAILURE


(9)BTW did smbd or nmbd start without error?
See (6) and (7) above. Is this what you meant ?

Regards
# 7  
Old 04-08-2008
Samba Installation

Prichard hunting around web saw suggestions that

(a)#shutdown -Fr should be done after /etc/services and /etc/inetd.conf changes.
Did that and
#/usr/local/samba/bin/smbclient -L banora
now gives
" error connecting to 192.168.0.144 ( A remote host refused an attempted connect operation.) Connection to banora failed "

Browsing to http://banora:901 still fails.

(b)Looking at my /etc/inetd.conf a majority of the entries have " tcp6 " instead of " tcp " in that line
"swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat" and seen varied use on web re tcp or tcp6 .

(c) Some say "swat 901/tcp" to /etc/services should be in numerical order whereas I added it to end of file.

(d) Seen suggestions these two lines should be in in /etc/inetd also

netbios-ns dgram udp wait root /usr/local/samba/sbin/smbd smbd

netbios-ssn stream tcp nowait root /usr/local/samba/sbin/smbd smbd

Have not tried (b) (c) or (d).
Awaiting your reply.
Thanks
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