<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>M78星云samba</title>
	<atom:link href="http://liferar.com/tag/samba/feed" rel="self" type="application/rss+xml" />
	<link>http://liferar.com</link>
	<description>愿我们的梦想，像光那样，从一颗星到另一颗星!</description>
	<lastBuildDate>Wed, 07 Dec 2011 16:07:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>CentOS开启SELinux导致samba无法访问的解决办法</title>
		<link>http://liferar.com/samba_problem_cause_by_selinux</link>
		<comments>http://liferar.com/samba_problem_cause_by_selinux#comments</comments>
		<pubDate>Sun, 29 Mar 2009 15:43:21 +0000</pubDate>
		<dc:creator>CK猪</dc:creator>
				<category><![CDATA[CK猪是程序员]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[SELinux]]></category>
		<category><![CDATA[权限]]></category>

		<guid isPermaLink="false">http://www.liferar.com/?p=31</guid>
		<description><![CDATA[安装CentOS默认是开启SELinux的，所以会导致samba、ftp等应用程序无法访问相应目录，解决办法如下 开启Samba用户HOME目录权限 /usr/sbin/setsebool -P samba_enable_home_dirs=1 开启单个共享目录（path）权限 chcon -t samba_share_t path 开启所有共享目录 只读权限 /usr/sbin/setsebool -P samba_export_all_ro on 读写权限 /usr/sbin/setsebool -P samba_export_all_rw on 查看某个目录（path）是否开启了权限 ls -ldZ path 参考文献： http://ronald.blog.51cto.com/140996/51053 http://itgroup.blueshop.com.tw/yjhwang/linuxlab?n=convew&#038;i=3422 相关文章 关闭防火墙( 0 ) MySQL安装步骤( 0 ) CentOS国际化配置( 0 )]]></description>
			<content:encoded><![CDATA[<p>安装CentOS默认是开启SELinux的，所以会导致samba、ftp等应用程序无法访问相应目录，解决办法如下<br />
开启Samba用户HOME目录权限</p>
<pre lang="shell" line="1">/usr/sbin/setsebool  -P samba_enable_home_dirs=1</pre>
<p>开启单个共享目录（path）权限</p>
<pre lang="shell" line="1">chcon -t samba_share_t path</pre>
<p>开启所有共享目录<br />
只读权限
<pre lang="shell" line="1">/usr/sbin/setsebool -P samba_export_all_ro on</pre>
<p>读写权限
<pre lang="shell" line="1">/usr/sbin/setsebool -P samba_export_all_rw on</pre>
<p>查看某个目录（path）是否开启了权限</p>
<pre lang="shell" line="1">ls -ldZ path</pre>
<p>参考文献：<br />
<a href="http://ronald.blog.51cto.com/140996/51053">http://ronald.blog.51cto.com/140996/51053</a><br />
<a href="http://itgroup.blueshop.com.tw/yjhwang/linuxlab?n=convew&#038;i=3422">http://itgroup.blueshop.com.tw/yjhwang/linuxlab?n=convew&#038;i=3422</a><br />
<h3>相关文章</h3>
<ul class="related_posts">
<li><a href="http://liferar.com/turn_off_firewall" title="关闭防火墙" rel="bookmark inlinks">关闭防火墙</a><span class="count">( 0 )</span></li>
<li><a href="http://liferar.com/centos_i18n_config" title="CentOS国际化配置" rel="bookmark inlinks">CentOS国际化配置</a><span class="count">( 0 )</span></li>
<li><a href="http://liferar.com/install_mysql" title="MySQL安装步骤" rel="bookmark inlinks">MySQL安装步骤</a><span class="count">( 0 )</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://liferar.com/samba_problem_cause_by_selinux/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

