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
  #1  
Old 04-06-2008
Registered User
 

Join Date: Aug 2005
Posts: 18
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
Reply With Quote
Forum Sponsor
  #2  
Old 04-07-2008
Registered User
 

Join Date: Aug 2005
Posts: 18
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
Reply With Quote
  #3  
Old 04-07-2008
Registered User
 

Join Date: Mar 2008
Posts: 28
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
Reply With Quote
  #4  
Old 04-07-2008
Registered User
 

Join Date: Aug 2005
Posts: 18
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
Reply With Quote
  #5  
Old 04-08-2008
Registered User
 

Join Date: Mar 2008
Posts: 28
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?
Reply With Quote
  #6  
Old 04-08-2008
Registered User
 

Join Date: Aug 2005
Posts: 18
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
Reply With Quote
  #7  
Old 04-08-2008
Registered User
 

Join Date: Aug 2005
Posts: 18
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
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:35 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