手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

CentOS中samba提示说无标号文件 /software

[日期:2012-09-11] 来源:Linux社区  作者:tianyihuyidao9 [字体:大 中 小]

今天重新做samba实验的时候,本来想设置 /software 为Linux和Windows的共享文件夹,并且让 /software 映射到Windows,实现Linux和Windows的共享

# chcon -t samba_share_t /software
chcon: can't apply partial context to unlabeled file /software

结果实验快成功时,遇到一个这样的问题:提示说无标号文件 /software,结果郁闷了半天,把所有防火前都关了,又把实验重新做了一遍,还是不行。

网上找了半天资料,后面发现问题就出在 selinux 防火墙上,关了也不行啊,立即开启,重新开机,一切OK!!

修改/etc/selinu/config 文件:

[root@master ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

然后reboot重启机器后,就好了。

linux
相关资讯       samba 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款