<?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>ntlm &#8211; richliu&#039;s blog</title>
	<atom:link href="https://richliu.com/tag/ntlm/feed/" rel="self" type="application/rss+xml" />
	<link>https://richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Thu, 15 Apr 2021 06:28:39 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Windows 10 存取 Ubuntu Samba 問題</title>
		<link>https://richliu.com/2021/04/15/4453/windows-10-%e5%ad%98%e5%8f%96-ubuntu-samba-%e5%95%8f%e9%a1%8c/</link>
					<comments>https://richliu.com/2021/04/15/4453/windows-10-%e5%ad%98%e5%8f%96-ubuntu-samba-%e5%95%8f%e9%a1%8c/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Thu, 15 Apr 2021 06:28:38 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ntlm]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[windows 10]]></category>
		<guid isPermaLink="false">https://richliu.com/?p=4453</guid>

					<description><![CDATA[<p>不知道是不是公司控管電腦的問題，我公司的電腦一直沒辦法存取 Samba 的目錄 今天終於下定決定找一找可能是什 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2021/04/15/4453/windows-10-%e5%ad%98%e5%8f%96-ubuntu-samba-%e5%95%8f%e9%a1%8c/">Windows 10 存取 Ubuntu Samba 問題</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>不知道是不是公司控管電腦的問題，我公司的電腦一直沒辦法存取 Samba 的目錄<br /><br />今天終於下定決定找一找可能是什麼問題</p>



<span id="more-4453"></span>



<p>先在 /etc/sambs/smb.conf 加上</p>



<pre class="wp-block-code"><code>log level = 3 </code></pre>



<p>之後，重啟 nmb/smb server</p>



<pre class="wp-block-code"><code>systemctl restart nmbd
systemctl restart nmbd</code></pre>



<p>看到了  /var/log/samba/log.smbd 中的一段錯誤訊息</p>



<p>2021/04/15 12:11:11.313142, 3] ../lib/util/access.c:365(allow_access)<br />Allowed connection from 192.168.1.184 (192.168.1.184)<br />[2021/04/15 12:11:11.323575, 3] ../source3/lib/util_procid.c:54(pid_to_procid)<br />pid_to_procid: messaging_dgm_get_unique failed: No such file or directory<br />[2021/04/15 12:11:17.274381, 3] ../lib/util/access.c:365(allow_access)<br />Allowed connection from 192.168.1.184 (192.168.1.184)<br />[2021/04/15 12:11:17.289554, 3] ../source3/lib/util_procid.c:54(pid_to_procid)<br />pid_to_procid: messaging_dgm_get_unique failed: No such file or directory</p>



<p>跟劇此線索找到了有人提到，要修改 Windows Local Security Policy (secpol.msc) , 找到 Security Settings->Local Policies->Security Options->”Network security: LAN Manager authentication level.” Set it to “Send LM &amp; NTLM – use NTLMv2 session security if negotiated.” 或是改 register file <br /></p>



<pre class="wp-block-code"><code>Windows Registry Editor Version 5.00

&#91;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"LmCompatibilityLevel"=dword:00000001</code></pre>



<p>註：ntlm auth = yes 也要開，修改 /etc/samba/smb.conf ，然後重啟 nmbd/smbd</p>



<pre class="wp-block-code"><code>&#91;global]
ntlm auth = yes</code></pre>



<p>ref.<br />Samba and ntlm for Windows clients</p>
<p>The post <a rel="nofollow" href="https://richliu.com/2021/04/15/4453/windows-10-%e5%ad%98%e5%8f%96-ubuntu-samba-%e5%95%8f%e9%a1%8c/">Windows 10 存取 Ubuntu Samba 問題</a> appeared first on <a rel="nofollow" href="https://richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://richliu.com/2021/04/15/4453/windows-10-%e5%ad%98%e5%8f%96-ubuntu-samba-%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
