<?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>chmod &#8211; 這世上 沒有偶然 只有必然</title>
	<atom:link href="https://wordpress.lokidea.com/tag/chmod/feed/" rel="self" type="application/rss+xml" />
	<link>https://wordpress.lokidea.com</link>
	<description>幻幽的小小分享區</description>
	<lastBuildDate>Fri, 24 Jun 2016 04:12:58 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>網頁伺服器的目錄與檔案存取設定【176/366】</title>
		<link>https://wordpress.lokidea.com/1018/%e7%b6%b2%e9%a0%81%e4%bc%ba%e6%9c%8d%e5%99%a8%e7%9a%84%e7%9b%ae%e9%8c%84%e8%88%87%e6%aa%94%e6%a1%88%e5%ad%98%e5%8f%96%e8%a8%ad%e5%ae%9a%e3%80%90176-366%e3%80%91/</link>
					<comments>https://wordpress.lokidea.com/1018/%e7%b6%b2%e9%a0%81%e4%bc%ba%e6%9c%8d%e5%99%a8%e7%9a%84%e7%9b%ae%e9%8c%84%e8%88%87%e6%aa%94%e6%a1%88%e5%ad%98%e5%8f%96%e8%a8%ad%e5%ae%9a%e3%80%90176-366%e3%80%91/#respond</comments>
		
		<dc:creator><![CDATA[Barney Chen]]></dc:creator>
		<pubDate>Fri, 24 Jun 2016 04:12:58 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[全端之路]]></category>
		<category><![CDATA[必然]]></category>
		<category><![CDATA[每日一篇]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[linux]]></category>
		<guid isPermaLink="false">https://wordpress.lokidea.com/?p=1018</guid>

					<description><![CDATA[遇到之前剛好改到伺服器上面的檔案與資料夾權限 竟然通通改為777了!~! 為了改回來只好找一下語法 資料夾要改 &#8230; <a href="https://wordpress.lokidea.com/1018/%e7%b6%b2%e9%a0%81%e4%bc%ba%e6%9c%8d%e5%99%a8%e7%9a%84%e7%9b%ae%e9%8c%84%e8%88%87%e6%aa%94%e6%a1%88%e5%ad%98%e5%8f%96%e8%a8%ad%e5%ae%9a%e3%80%90176-366%e3%80%91/" class="more-link">閱讀全文 <span class="screen-reader-text">網頁伺服器的目錄與檔案存取設定【176/366】</span></a>]]></description>
										<content:encoded><![CDATA[<p>遇到之前剛好改到伺服器上面的檔案與資料夾權限<br />
竟然通通改為777了!~!<br />
為了改回來只好找一下語法<br />
資料夾要改為755，檔案要改為644<br />
Google了一會~ <a href="http://stackoverflow.com/questions/3740152/how-to-set-chmod-for-a-folder-and-all-of-its-subfolders-and-files-in-linux-ubunt">終於有篇文章了</a><br />
<span id="more-1018"></span><br />
因為我用apache<br />
所以看到兩段語法似乎都可以適用</p>
<blockquote><p>find /var/www \<br />
\( -type f -exec chmod ug+rw,o+r {} \; \) , \<br />
\( -type d -exec chmod ug+rwxs,o+rx {} \; \)</p></blockquote>
<p>上面一次做完，下面分兩行執行</p>
<blockquote><p>chmod 755 $(find /var/www -type d)<br />
chmod 644 $(find /var/www -type f)</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://wordpress.lokidea.com/1018/%e7%b6%b2%e9%a0%81%e4%bc%ba%e6%9c%8d%e5%99%a8%e7%9a%84%e7%9b%ae%e9%8c%84%e8%88%87%e6%aa%94%e6%a1%88%e5%ad%98%e5%8f%96%e8%a8%ad%e5%ae%9a%e3%80%90176-366%e3%80%91/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
