1.配置好PACKAGESITE
(freebsd 7 是setenv  PACKAGESITE ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/amd64/7.0-RELEASE/packages/Latest/)
2.pkg_add -rv samba3
3.修改/etc/rc.conf 增加 “samba_enable="YES"”
4.修改/etc/inet.conf 却表有下面几行
  1. netbios-ssn stream tcp nowait root /usr/local/sbin/smbd smbd
  2. netbios-ns dgram udp wait root /usr/local/sbin/nmbd nmbd
  3. swat stream tcp nowait/400 root /usr/local/sbin/swat swat
5.增加smb用户
smbpasswd -a test1 回车 输入密码
12-08 07:55