|
 |
栏目导栏 |
|
| |
|
|
|
|
 |
资料搜索 |
|
| |
|
|
|
|
 |
热门文章 |
|
| |
|
|
|
|
 |
最新文章 |
|
| |
|
|
|
| |
| |
|
|
|
|
由于公司许多同事感觉在对UNIX进行文件存取时非常不方便,又羡慕LINUX的SAMBA pUTLinux联盟 .于是查了查SAMBA站点,发现可以在HP-UNIX上安装SAMBA,结果成功了,小弟愿与大家共享。 pUTLinux联盟 pUTLinux联盟 pUTLinux联盟 安装步骤: pUTLinux联盟 pUTLinux联盟 1、到SAMBA站点下载HP-UNIX的SAMBA 二进制文件。 pUTLinux联盟 pUTLinux联盟 http://us1.samba.org/samba/ftp/Binary_Packages/hp/samba2.2.5pUTLinux联盟 /samba_2.2.5_HPUX_withwinbind.depot.gz pUTLinux联盟 pUTLinux联盟 pUTLinux联盟 2、解压文件 pUTLinux联盟 pUTLinux联盟 tar -xzvf samba_2.2.5_HPUX_withwinbind.depot.gz pUTLinux联盟 或者直接用gzip 命令解开。 pUTLinux联盟 pUTLinux联盟 pUTLinux联盟 3、安装 pUTLinux联盟 pUTLinux联盟 文件解压后可以得到文件samba_2.2.5_HPUX_withwinbind.depot, pUTLinux联盟 然后用swinstall -s /yourdirectory/samba_2.2.5_HPUX_withwinbind.depot 安装该软件, pUTLinux联盟 如果您感觉在字符控制台模式下不太方便,可以通过设置export DISPLAY=yourhost:0.0 然后在你的机器上启动 X-WIN32作模拟X终端,进行安装。 pUTLinux联盟 pUTLinux联盟 pUTLinux联盟 4、配置 pUTLinux联盟 pUTLinux联盟 打开/usr/local/samba/lib/smb.con (该文件依具体安装目录的不同而不同)文件,修改文件中的安全项: pUTLinux联盟 pUTLinux联盟 # security_level.txt for details. pUTLinux联盟 security = server pUTLinux联盟 # Use password server option only with security = server or domain pUTLinux联盟 password server = your server ip pUTLinux联盟 pUTLinux联盟 pUTLinux联盟 然后添加 pUTLinux联盟 pUTLinux联盟 pUTLinux联盟 [tmp] pUTLinux联盟 path = /tmp #当前共享的目录 pUTLinux联盟 hosts allow = 211.88.9.160 #允许访问该共享的主机 pUTLinux联盟 pUTLinux联盟 pUTLinux联盟 存盘退出。 pUTLinux联盟 pUTLinux联盟 5、检测 pUTLinux联盟 pUTLinux联盟 请使用 testparm 命令监测 smb.conf语法是否正确,如果一切ok.则可以启动samba服务。 pUTLinux联盟 pUTLinux联盟 6、启动samba服务 pUTLinux联盟 pUTLinux联盟 Start smbd & nmbd by /sbin/init.d/samba start pUTLinux联盟 pUTLinux联盟 pUTLinux联盟 pUTLinux联盟 如果您在ie里面敲 \\your samba server 可以访问你刚建的共享tmp了,如果你不能创建新的文件夹,请确认您对当前目录是否有足够的权限。
Linux联盟收集整理 ,转贴请标明原始链接,如有任何疑问欢迎来本站Linux论坛讨论 |
|
|
|
|
|