Welcome 微信登录

首页 / 操作系统 / Linux / CentOS中samba提示说无标号文件 /software

今天重新做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重启机器后,就好了。虚拟机Ubuntu 12.04串口连接PandaBoard开发板Fedora下adsl共享上网相关资讯      samba 
  • CentOS部署Samba企业文件共享服务  (06月23日)
  • Redhat 7安装Samba服务后只能读取  (01月01日)
  • 通过Samba从Windows向Linux系统传  (10/22/2015 19:36:59)
  • 给Samba添加回收站功能  (06月18日)
  • Samba 4.3.2 发布下载,最新稳定版  (12/02/2015 10:52:56)
  • Samba 4.3 发布下载,最新稳定版本  (09/09/2015 07:57:02)
本文评论 查看全部评论 (0)
表情: 姓名: 字数