最簡單的安裝檔案是。bff檔案了,菜鳥的最愛。我找了很久,現在奉獻出來:http://www.bullfreeware.com/
一、下載samba-3.0.4.0.bff
二、將檔案放在AIX系統的臨時安裝目錄下,如:/usr/samba
三、 smit installp,將安裝來源目錄定位到/usr/samba下,安裝;
四、安裝成功之後將會產生/usr/local/samba目錄,此路徑下的bin目錄是samba的應用程式,sbin目錄是samba的daemon,lib目錄下的smb.conf是samba的設定檔。
配置過程
1.編輯/usr/local/samba/lib/smb.conf/檔案,一個簡單的smb.conf檔案樣本如下:
[global]
workgroup = workgroup
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 = /jdlssoft/interface
read only = no
public = yes
[root]
comment = root directory
path = /
read only = no
public = yes
2. 檢查/etc/services檔案,看是否有如下幾行:
netbios-ns 137/tcp # NETBIOS Name Service
netbios-ns 137/udp # NETBIOS Name Service
netbios-dgm 138/tcp # NETBIOS Datagram Service
netbios-dgm 138/udp # NETBIOS Datagram Service
netbios-ssn 139/tcp # NETBIOS Session Service
netbios-ssn 139/udp # NETBIOS Session Service
swat 901/tcp # swat service of samba
如果沒有,則加上。
3. 檢查/etc/inetd.conf檔案,看是否有如下幾行:
netbios-ssn stream tcp nowait root /usr/local/samba/sbin/smbd smbd
netbios-ns dgram udp wait root /usr/local/samba/sbin/nmbd nmbd
swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat
如果沒有,則加上。
4. 由於AIX下與Windows下對密碼處理認證方式不同,因此導致輸入正確的密碼時還是無法通過,因此要將smb.conf的encrypt passwords = Yes,Samba 3.0.1.0目前的版本預設的是Yes,smb密碼檔案預設為/usr/local/samba/private/smbpasswd,可由SWAT工具修改;
5. 執行/usr/local/samba/bin/smbpasswd -a xxx,密碼與該使用者作業系統密碼相同,建立xxx使用者的存取密碼;
如/usr/local/samba/bin/smbpasswd -a root
6. refresh -s inetd,重新整理inetd啟動samba;
7. 使用Windows的用戶端共用訪問,測試是否配置成功。
oracle視頻教程請關注:http://u.youku.com/user_video/id_UMzAzMjkxMjE2.html