<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>pwn-o-rama &#187; samba tips security</title>
	<atom:link href="http://blog.pwn.cl/tag/samba-tips-security/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pwn.cl</link>
	<description>occasionally braindumps</description>
	<lastBuildDate>Mon, 05 Jul 2010 00:14:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by/2.0/cl/</creativeCommons:license>		<item>
		<title>Samba client lanman auth</title>
		<link>http://blog.pwn.cl/2009/12/samba-client-lanman-auth/</link>
		<comments>http://blog.pwn.cl/2009/12/samba-client-lanman-auth/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 04:47:25 +0000</pubDate>
		<dc:creator>sneira</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[samba tips security]]></category>

		<guid isPermaLink="false">http://blog.pwn.cl/?p=277</guid>
		<description><![CDATA[Quería conectarme a un recurso compartido de Samba utilizando Nautilus (en Gnome ve a &#8220;Places &#62; Connect to Server&#8221;) y no podía conseguirlo. Los datos cómo el servidor, recurso, nombre de usuario y contraseña estaban correctos, sim embargo, Nautilus volvía y volvía a pedir la contraseña, no había ningún mensaje de error. Después de un [...]]]></description>
			<content:encoded><![CDATA[<p>Quería conectarme a un recurso compartido de Samba <a title="To Access a remote server" href="http://library.gnome.org/users/user-guide/stable/nautilus-server-connect.html.en" target="_blank">utilizando Nautilus</a> (en Gnome ve a &#8220;Places &gt; Connect to Server&#8221;) y no podía conseguirlo. Los datos cómo el servidor, recurso, nombre de usuario y contraseña estaban correctos, sim embargo, Nautilus volvía y volvía a pedir la contraseña, no había ningún mensaje de error. Después de un poco de debug utilizando smbclient, conseguí más información:</p>
<pre class="brush: plain; light: true;">
[root@awesom-o /]# smbclient -U sebastian //pulpero/torrents
Enter sebastian's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.0.10-security-rollup]
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
tree connect failed: NT_STATUS_ACCESS_DENIED
</pre>
<p>Ocurre porque el cliente tiene deshabilitada la autenticación utilizando el <a title="LM hash" href="http://en.wikipedia.org/wiki/LM_hash" target="_blank">protocolo lanman</a>, ya que es menos seguro que <a title="NTLM" href="http://en.wikipedia.org/wiki/NTLM" target="_blank">NTLM.</a> Estando consciente <a title=" [Bug 209520] Re: SMB error: Unable to mount location when server configured with security=share" href="http://www.mail-archive.com/ubuntu-bugs@lists.ubuntu.com/msg884832.html" target="_blank">de esto y de los riesgos que involucra</a>, para solucionar el problema sólo tienes que editar el archivo /etc/samba/smb.conf y agregar esta línea en la sección [global]</p>
<pre class="brush: plain; light: true;">
client lanman auth = yes
</pre>
<p>Ahora puedes volver a probar con smbclient</p>
<pre class="brush: plain; light: true;">
[root@awesom-o /]# smbclient -U sebastian //pulpero/torrents
smb: \&gt;
</pre>
<p>Con Nautilus también todo irá bien.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pwn.cl/2009/12/samba-client-lanman-auth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
