- 论坛徽章:
- 0
|
怎样启动Samba服务才能在Windows下看到可爱的Unix机器?
Let me show!
第一步 獲得CIFS/9000 server
HP CIFS/9000雖然不是在安裝HP-UX 11.0之後的標準配備,但卻是不需要額外付費的軟體,您可以在"March, 2000 HP-UX 11 Application Release"以及之後版本的光碟中安裝,或直接從http://www.software.hp.com下載
CIFS/9000 Server License for HP 9000 servers: Product No is B8725AA
CIFS/9000 Server License for HP 9000 workstation: Product No is B8726AA
第二步 安裝CIFS/9000 server
1. 以root login系統
2. 下載B8725AA.depot或B8726AA.depot檔案之後,搬到 /tmp
3. 確認下載後的檔案是OK
Note: swlist and swinstall require you to specify the full path name to the source depot.
# swlist -d @ /tmp/B8725AA.depot
# Initializing...
# Contacting target "localhost"...
#
# Target: localhost:/tmp/B8725AA.depot
#
#
# Bundle(s):
#
B8725AA A.01.01 CIFS/9000 Server Lic. for 9000 Servers
4. 安裝前記得將系統備份
5. 用swinstall來完成安裝
# swinstall -s /tmp/B8725AA.depot
第三步 設定CIFS/9000 server
用samba_setup script來設定domain名稱以及安全認證層次(authentication security type),CIFS/9000提供四種不同的level:
& Domain-level
& Server-leve
& User-leve
& Share-level security
一般如果我們只是要將此CIFS/9000 server 加入windows中一個已經設定好的domain,則選擇Share-level,如此一來每個共享的目錄將至少會有一組密碼作為存取認可的依據。
[註]:範例中的server1以及TWN_DOMAIN應該直接對應您的主機與domain名稱
# /opt/samba/bin/samba_setup
This is a utility to help you configure your HP-UX system as
a SAMBA server. This should only be run once after the initial
installation of SAMBA.
Do you wish to continue with the configuration?
(Y or N)? : y
Proceeding with samba_setup...
You now must choose what level of authentication you
would like this SAMBA server to use:
1) domain
2) server
3) user
4) share
5) CANCEL
#? 4
You have chosen share level authentication
Is this correct?
(Y or N)? : y
Enter the name you wish the SAMBA server to be known as (the
netbios name), or just hit enter if you want to keep the default
server name (server1):
Enter the name of the domain or workgroup that
you want this SAMBA server to be a part of: TWN_DOMAIN
Configuring SAMBA server with share level authentication...
Your SAMBA server should now be ready to start.
You may wish to put /opt/samba/bin in the PATH for root
so that you don't have to type the fully qualified path
name for the SAMBA utilities and commands.
第四步 定義CIFS/9000 server 的共享資源
您可以直接新增或修改/etc/opt/samba/smb.conf。
#========================= Share Definitions =======================
[homes]
comment = Home Directories
browseable = no
# This one is useful for people to share files
[tmp]
path = /tmp
[userdata]
path = /mis/data
[printer05]
printable=yes
print command = /usr/bin/lp -d printer05
printer = printer05
ready only = yes
guets ok = yes
按照上面的例子,您可以透過網路芳鄰看到"tmp","userdata"兩個目錄以及"printer05"被share出來smb.conf的man page有更詳細的說明。
第五步 啟動CIFS/9000 server
# /opt/samba/bin/startsmb
Samba started successfully; process ids: smbd: 7216, nmbd: 7214
|
|