Windows访问Linux下的共享目录的配置方法(share安全级别)
2014-06-25 14:26
811 查看
第一步:安装samba3
[root@rhce2 /]# yum groupinstall "CIFS file server"
第二步:修改配置文件
[root@rhce2 /]# vi /etc/samba/smb.conf
将security = user
修改为
security = share
第三步:配置共享目录
[test]
comment = test resource
path = /test
writable = yes
public = yes
第四步:保存退出
第五步:创建共享目录/test,并修改该目录的selinux的上下文类型
[root@rhce2 /]# cd /
[root@rhce2 /]# mkdir test
[root@rhce2 /]# chcon -t samba_share_t test
第六步:在Windows中的【我的电脑】中输入\\192.168.1.120
第七步:双击test目录,然后在里面新建一个文本文件
第八步:回到Linux下,看看/test目录下是否有了该文件
到此一个Linux下的非安全的匿名共享目录就共享完成了,在Windows下就可以访问它了
[root@rhce2 /]# yum groupinstall "CIFS file server"
第二步:修改配置文件
[root@rhce2 /]# vi /etc/samba/smb.conf
将security = user
修改为
security = share
第三步:配置共享目录
[test]
comment = test resource
path = /test
writable = yes
public = yes
第四步:保存退出
第五步:创建共享目录/test,并修改该目录的selinux的上下文类型
[root@rhce2 /]# cd /
[root@rhce2 /]# mkdir test
[root@rhce2 /]# chcon -t samba_share_t test
第六步:在Windows中的【我的电脑】中输入\\192.168.1.120
第七步:双击test目录,然后在里面新建一个文本文件
第八步:回到Linux下,看看/test目录下是否有了该文件
到此一个Linux下的非安全的匿名共享目录就共享完成了,在Windows下就可以访问它了
相关文章推荐
- Windows访问Linux下的共享目录的配置方法(user安全级别)
- 在Linux下访问Windows共享目录的配置方法
- Windows访问Linux下的共享目录的配置方法
- 在Linux下访问windows共享目录的配置方法
- Linux访问Windows共享目录的方法——smbclient
- 解决在Fedora 12 中配置后Samba服务后,Windows依然无法访问Linux共享目录的问题。
- ubuntu14.04中利用samba访问linux/windows共享目录的方法
- ubuntu14.04中利用samba访问linux/windows共享目录的方法
- Linux服务器访问Win7客户端共享目录的配置方法
- 树莓派下配置samba共享目录以及通过window和linux访问方法
- Linux smbclient访问Windows共享目录
- Linux的Ubuntu与windows共享目录快捷方法
- [原]linux与window文件目录共享——samba配置及在windows映射
- linux访问windows共享目录开机自动挂载
- linux下访问windows共享目录
- Linux下访问Windows共享目录
- 在Linux下访问windows共享文件并创建中文文件的方法
- linux访问windows的共享目录
- linux下访问Windows中的共享目录
- Linux下访问局域网内windows共享目录