构建samba文件服务器


构建samba文件服务器
 
环境:fedora 12 i386
 
服务器IP:192.168.3.202
 
1使用yum网络安装的方式安装软件包
 
root@ns1 ~]# ping www.baidu.com
PING www.a.shifen.com (61.135.169.125) 56(84) bytes of data.
64 bytes from 61.135.169.125: icmp_seq=1 ttl=57 time=17.2 ms
64 bytes from 61.135.169.125: icmp_seq=2 ttl=57 time=54.7 ms
64 bytes from 61.135.169.125: icmp_seq=3 ttl=57 time=19.2 ms
 
安装
 
[root@ns1 ~]# yum install samba
已加载插件:presto, refresh-packagekit
设置安装进程
解决依赖关系
--> 执行事务检查
---> 软件包 samba.i686 0:3.4.9-60.fc12 将被 安装
--> 完成依赖关系计算
 
依赖关系解决
 
====================================================
 软件包             架构              版本                          仓库                  大小
====================================================
正在安装:
 samba              i686              3.4.9-60.fc12                 updates              4.3 M
 
事务概要
=====================================================
Install       1 Package(s)
 
总下载量:4.3 M
Installed size: 14 M
确定吗?[y/N]:y
下载软件包:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 4.3 M
samba-3.4.9-60.fc12.i686.rpm                                            | 4.3 MB     02:33     
运行 rpm_check_debug 
执行事务测试
事务测试成功
执行事务
  正在安装       : samba-3.4.9-60.fc12.i686                                                1/1 
 
已安装:
  samba.i686 0:3.4.9-60.fc12                                                                   
完毕!
 
2配置samba服务器的配置文件
 
[root@ns1 ~]# vim /etc/samba/smb.conf
 
[global] 
workgroup = ceshizu  //显示服务器工作组 
security = share     //服务器安全级别share(所有,不许要验证) 
[share]              //本地目录在网络中的共享名 
comment = ceshimulu  //注解 
path = /var/public/ceshi  //服务器本地路径 
public = yes              //在网上邻居中是否可见 
writable = yes            //能否创建修改文件 
 
3测试通过,(任意用户都能查看到共享目录但是不能删除,不能创建,)
 
(根据需要调整权限)
 

相关内容

    暂无相关文章