samba的安装

2009-05-13 03:27:27来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

  现在能上网了,能办公了,能娱乐了,好像还少点什么似的。对了,我还不能访问其他人的计算机呢。
  其实如果只是单纯的访问网络中的windows计算机。all安装的话客户端已经装好了,那么什么也不需要了。直接在文件浏览器中输入smb://+ip地址。然后输入用户名和密码就可以直接访问了。我现在想要其他人能够访问我的bsd。就需要用到桑巴了。
   ports安装net/samba。
   这样装完了之后是2.2.12版本的
   我想用3.0 所以我从网站上down下来了3的包进行安装。
   解压缩,make make install
   安装完了,运行、/usr/local/samba/bin/nmbd -D
   /usr/local/samba/bin/smbd -D
   找台计算机试试,//ip address 怎么不能访问呀。哦,斜杠输反了,换过来。怎么还是不能访问呢?看来是要找原因了。看看handbook吧。哦在/usr/local/etc/smb.conf.default 去看看,怎么没有呀。
   没办法,从解压缩的samba目录中去找吧。
   cp解压缩的samba包下的examples下的smb.conf.default文件到/usr/local/samba/lib/smb.conf
   按照handbook的方法找那个所谓的samba.sh还是没有。
再用浏览器试试?哈哈可以看到了。但是每个文件夹都无法访问呀,看来配置文件还是需要修改的。

# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# For a step to step guide on installing, configuring and using samba,
# read the Samba-HOWTO-Collection. This may be obtained from:
#  
http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
#
# Many working examples of smb.conf files can be found in the
# Samba-Guide which is generated daily and can be downloaded from:
#  
http://www.samba.org/samba/docs/Samba-Guide.pdf
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
   workgroup = samba #组名
# server string is the equivalent of the NT Description field
   server string = Samba Server
#描述信息,个人感觉实际意义不大。
# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the Samba-HOWTO-Collection for details.
   security = share  
# 安全模式。简单说就是需不需要密码。
# This option is important for security. It allows you to restrict

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:安装apache

下一篇:这个是blog,在她流行了2年后