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

Unix/Linux
Linux 核心--5.Linux进程
Linux 核心--2.硬件基础
Linux 核心--4.内存管理
以Linux做路由器的问题
Linux 核心--1.前言
Linux 核心--3.软件基础
Automount mini-Howto 文件系统自动挂载程序
对光驱和软驱实现Automount
xf86config使用说明
如何在Linux中设置磁盘限额?
Linux下的各种备份方法汇总
网卡设置指南
Beowulf 中文HOWTO
Sound Blaster AWE 32/64 HOWTO 如何在Linux设定声卡
Linux Remote-Boot mini-HOWTO
Soundblaster 16 PnP Mini-Howto 如何在Linux设定16位P
新闻 Leafsite mini-HOWTO
使用LILO做为Win95+WinNT+Linux多重开机 mini-HOWTO
LINUX modules 模块安装 MINI-HOWTO
Linux + NT OS Loader mini-HOWTO

Unix/Linux 中的 SAMBAFORHP-UX的配置


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