วันพุธที่ 27 กุมภาพันธ์ พ.ศ. 2551

samba for HP-UX (3.0.10)

http://hpux.connect.org.uk/hppd/hpux/Networking/Misc/samba-3.0.10/

ว่าจะ download เก็บไว้ซะหน่อย
เผื่อใช้ในอนาคตอันใกล้
แต่ dependencies มันเยอะเหลือเกิน


samba-3.0.10


The Samba SMB protocol for unix systems
Description: The Samba software suite is a collection of programs that implements the SMB protocol for UNIX systems, allowing you to serve files and printers to Windows, NT, OS/2 and DOS clients. This protocol is sometimes also referred to as the LanManager or Netbios protocol.

Author: Andrew Tridgell <samba@samba.org>
Home URL: http://www.samba.org/
License: GNU General Public License v2 Installation
Tree: /usr/local/samba


Languages used: C Perl Python
Build-time dependencies: bison db flex gcc gettext libiconv m4 make ncurses perl popt python readline
Run-time dependencies: bison db flex libgcc gettext libiconv m4 make ncurses perl popt readline

คำสั่ง showmount ไม่ทำงาน

อาการก็คือ เรียกแล้วก็ไม่ยอมทำงาน
เอ๊ะ มันยังงัย

[thada@localhost ~]$ /usr/sbin/showmount -e
mount clntudp_create: RPC: Program not registered

อ๊ะ ถ้าเห็น RPC Program not registered ยังงี้ล่ะก็นะ
สงสัย services เกี่ยวกะ nfs ยังไม่เปิดทำงานแหงๆ

เข้าไปที่ System - Administration - Server settings - Services
จากนั้นให้ enable nfs services (ถ้าจำเป็นก็ enable nfslock services ด้วยก็ได้ แล้วก็ portmap services - ใช้ทำไรหว่า)
หลังจากนั้นแล้วทุกอย่างจะดูโอเค อย่างนี้

[thada@localhost ~]$ /usr/sbin/showmount -e
Export list for localhost.localdomain:

ถ้าสั่ง showmount -e โดยไม่บอก ชื่อโฮสต์หรือ ip address มันจะมองหาว่า เครื่องของเรา share อะไรบ้าง โดยไปดูจาก export list ซึ่งอยู่ใน file /etc/exports

อย่างในตัวอย่างยังไม่ได้ share อะไรให้ใครเลย ก็เลยมีข้อมูลเท่านั้น

อือม ลองใช้ showmount ไปเช็คข้อมูลบนเครื่อง windows ดูหน่อยซิ
[thada@localhost ~]$ /usr/sbin/showmount -e windows_workstation
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive

อ่าว ไหงไม่ได้อีกล่ะ
สงสัยต้องใช้ smbclient อย่างเดียว
(เพราะ มันไม่มี portmap บนเครื่อง windows นี่นา อือม)

Note: ข้อมูลจาก man
showmount - show mount information for an NFS server
/usr/sbin/showmount [ -adehv ] [ --all ] [ --directories ]
[ --exports ] [ --help ] [ --version ] [ host ]