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

Unix/Linux
linux查看内存的大小
在linux下写的代码,用的是utf-8,结果拿到XP下运行的时候,所有的中文都成乱码
linux su和sudo命令的区别
linux cron 下的定时执行工具使用技巧
linux 查找进程及终止进程操作的相关命令
redhat linux 安装 gcc编译器
Linux Mplayer播放各种格式的电影
一起回顾一下linux常用命令
Linux 网站项目发布要做哪些配置
linux SSH配合SecureCRT的密匙完美使用方法
GD 编译出错解决方法
Facebook Open Platform编译FAQ
Linux 系统硬盘 优化
linux 挂载详解
linux crontab定时命令
Linux 系统中确保访问三级域名畅通的方法
Linux 特权帐号VS普通帐号
确保Linux系统安全的前提条件 漏洞防护
Linux 监视系统资源使用率
Red Hat Linux上使用BIND建立DNS服务器

Unix/Linux 中的 SAMBAFORHP-UX的配置


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 41 ::
收藏到网摘: 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/
  成功了,我们可以互相访问了。