Username:

Password:


FedoraChina 论坛 系统支持与应用 服务器与安全 (版主: Cvivi, Qadir, Hades) 主题: 开启SELinux的情况下允许Samba写操作
页: [1]   向下
« 上一篇主题 下一篇主题 »
打印
作者 主题: 开启SELinux的情况下允许Samba写操作  (阅读 4101 次)
0 会员 以及 1 访客 正在阅读本主题.
Kimia Zhu
管理员
高级会员
******
离线 离线

帖子: 422


开源万世传,因有我参与!

kimiazhu@hotmail.com
个人网站 电子邮件
开启SELinux的情况下允许Samba写操作
« 于: 六月 06, 2007, 02:27:57 下午 »

        ---- Author: Kimia Zhu -----
        ---- Link http://www.fedorachina.cn/index.php/topic,173.0.html ----

      默认的,SELinux禁止网络上对Samba服务器上的共享目录进行写操作,即使你在smb.conf中允许了这项操作。

      假设你已经配置了共享目录/share并允许用户进行读写,而你又不想关闭SELinux的话,可以试试以下操作:

程序代码:
#/usr/sbin/setsebool -P allow_smbd_anon_write=1
#chcon -t public_content_rw_t /share

其中第一条语句设置SELinux放行标记了public_content_rw_t的内容,第二条语句把欲共享的/share目录标记为public_content_rw_t。
已记录

Software systems are like cathedrals. First we build them and then we pray ...
http://blog.fedorachina.cn/
cmanlee
访客
Re: 开启SELinux的情况下允许Samba写操作
« 回复 #1 于: 六月 17, 2007, 06:33:41 下午 »

楼主是否可以简单介绍一下selinux的作用?
已记录
Kimia Zhu
管理员
高级会员
******
离线 离线

帖子: 422


开源万世传,因有我参与!

kimiazhu@hotmail.com
个人网站 电子邮件
Re: 开启SELinux的情况下允许Samba写操作
« 回复 #2 于: 六月 18, 2007, 05:06:03 下午 »

      你可以看看这里的入门。
已记录

Software systems are like cathedrals. First we build them and then we pray ...
http://blog.fedorachina.cn/
cmanlee
访客
Re: 开启SELinux的情况下允许Samba写操作
« 回复 #3 于: 六月 18, 2007, 10:16:51 下午 »

谢谢!
已记录
zoufan
初级会员
**
离线 离线

帖子: 10


电子邮件
Re: 开启SELinux的情况下允许Samba写操作
« 回复 #4 于: 九月 17, 2007, 09:24:29 上午 »

晕死了。我怎么就没有看到这个贴子呢?还一直在钻SAMBA配置错误问题这个牛角钻,原来还有SELINUX这东东的存在
已记录
zxcd82
初级会员
**
离线 离线

帖子: 22


Re: 开启SELinux的情况下允许Samba写操作
« 回复 #5 于: 三月 19, 2009, 12:34:06 上午 »

selinux是好东西,楼主的方法不错!
已记录
yoyohh
初级会员
**
离线 离线

帖子: 16


电子邮件
Re: 开启SELinux的情况下允许Samba写操作
« 回复 #6 于: 十一月 30, 2009, 11:17:41 上午 »

The club will probably have a heated swimming pool, and you’ll enjoy some great summer weekends with new found friends, an all over tan, and a sense of deep relaxation.wow power leveling Answers such as enjoying wow gold uk the feeling of freedom, feeling closer to nature, getting wow power leveling an all-over tan, the wonderful feeling of swimming naked, the fact cheapest wow gold that social nudity is a great leveller, oh…and its fun!Around gold for wow the time that one reaches what many people have come to think of as middle age those annoying things that are known as age spots begin to appear.

已记录
页: [1]   向上
打印
FedoraChina 论坛 系统支持与应用 服务器与安全 (版主: Cvivi, Qadir, Hades) 主题: 开启SELinux的情况下允许Samba写操作
« 上一篇主题 下一篇主题 »
跳到:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC

Fedorachina by SMF
陕ICP备08100029号
本页花了 0.043 秒, 以及 46 次的数据库查询.
加载中...