当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > SAMBAFORHP-UX的配置

Unix/Linux
linux 操作技巧收集_
linux下如何读取使用iso 镜像文件的方法
Linux平台下文件的压缩与解压参数说明
Linux下常用压缩格式的压缩与解压方法
Linux JDK,TOMCAT安装及环境设置
Linux sleep命令使用参数
Linux cat命令参数
nfs 配置的简单例子
linux kill 关闭进程命令
linux ultrasphinx Anonymous modules have no name to be referenced by
Linux oracle 9i图文安装方法一
Linux oracle 9i图文安装教程二
Linux oracle 9i图文安装教程三
Linux oracle 9i图文安装教程四
Linux oracle 9i图文安装教程五
Linux oracle 9i图文安装教程六 完结篇
linux AS3 oracle9i 安装指南
Linux 下 (RedHat 9.0) JDK,Tomcat,MySQL的安装
RedHat 9.0下Apache+PHP+MySQL服务器安装配置
Linux 下用 Python 连接 MSSql Server 2008

Unix/Linux 中的 SAMBAFORHP-UX的配置


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 51 ::
收藏到网摘: n/a


  软件环境:samba-2.0.7.tar.gz 
  操作系统:HP-UX 11。00
  *********************************************** 
  
  Step1:<解压软件>
  
  gzip -d samba-2.0.7.tar.gz
  tar -xvf samba-2.0.7.tar
  @生成samba-2。0。7目录 
  ***********************************************
  Step 2: 
  #cd samba-2.0.7/source
  #configure(--help)
  #make install(编译samba)
  #cp ./samba-2.0.7/example/smb.conf.default /usr//local/samba/lib/smb.conf
  (到此samba安装已经基本完成,先来的工作就是配置!)
  *****************************************************************
  Step 3:(配置smb。conf)
  [global]
  workgroup =talent
  netbios name=l1000
  passwd program=/usr/local/samba/bin/smbpasswd
  smb passwd file=/usr/local/samba/private/smbpasswd
  server string =Welcome to Samba Server/HP-UX
  guest account=root(也可以是其他用户,你所设置的用户和你win用户访问你的权限是相关的)
  security =share(有三种方式:share,user,server)

  password server =l1000
  encrypt passwords = yes
  wins support = yes
  lock directory = /usr/local/samba/var/locks
  share modes = yes
  [public]
  comment = Public Stuff
  path = /frankswf(unix下,你所想共享的目录)
  public = yes
  writable = yes
  printable = no
  write list = @staff
  guest ok=yes
  
  配置/etc/services
  netbios-ssn 139/tcp
  netbios-ns  137/udp
  运行#/usr/local/samba/bin/testparm测试的的服务
  *******************************************
  Step 4:运行samba
  #/usr/local/samba/bin/nmbd -D
  #/usr/local/samba/bin/smbd -D
  
  进入你的win下的网上邻居,哈哈。。。看到unix了。(windows———〉hp-ux)
  在unix使用/usr/local/samba/bin/smbclient //win-hostname/share directory/
  成功了,我们可以互相访问了。