免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5700 | 回复: 3
打印 上一主题 下一主题

[samba] 怎样启动Samba服务才能在Windows下看到可爱的Unix机器? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-08-25 15:30 |只看该作者 |倒序浏览
text                                locname[30];
text                                remotecname[30];
/*
* 怎么启动Samba服务,怎么没有一篇关于samba的文章?
*
* Hp_Unix上应该能运行samba服务吧?我看了  有/etc/opt/samba/smb.conf
* 我改了配置文件,怎么使他生效?
* 怎样启动Samba服务才能在Windows下看到可爱的Unix机器?       
*/

论坛徽章:
0
2 [报告]
发表于 2003-08-26 10:47 |只看该作者

怎样启动Samba服务才能在Windows下看到可爱的Unix机器?

1.在HPUX上安装samba
2.编译samba
3.配置smb.conf文件,包括可以互相访问的主机地址(或主机名)、共享的目录、访问权限等
4.运行samba
5.a.HPUX上连接win2k:/usr/local/samba/bin/smbclient //win-hostname/share directory/
b.win2k上连接HPUX:同win2k之间互相访问(start -->;run -->; \\<ipaddres>;)

具体怎么做我也不是很清楚,期待高手出现。

论坛徽章:
0
3 [报告]
发表于 2003-08-26 11:47 |只看该作者

怎样启动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:

&amp; Domain-level

&amp; Server-leve

&amp; User-leve

&amp; 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

  

论坛徽章:
0
4 [报告]
发表于 2003-08-26 13:20 |只看该作者

怎样启动Samba服务才能在Windows下看到可爱的Unix机器?

不错!不错!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP