<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.2" -->
<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/"
	>

<channel>
	<title>Eduardo Habkost / diary</title>
	<link>http://raisama.net/diary</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Fri, 18 Jul 2008 13:29:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>
	<language>en</language>
			<item>
		<title>4a7d3d609129a9296bf7ac0608c2097</title>
		<link>http://raisama.net/diary/archive/2008/03/27/4a7d3d609129a9296bf7ac0608c2097</link>
		<comments>http://raisama.net/diary/archive/2008/03/27/4a7d3d609129a9296bf7ac0608c2097#comments</comments>
		<pubDate>Thu, 27 Mar 2008 17:33:14 +0000</pubDate>
		<dc:creator>Eduardo Habkost</dc:creator>
		
	<category>Inutilidades</category>
	<category>Curiosidades</category>
	<category>In English</category>
	<category>Lazyweb</category>
		<guid isPermaLink="false">http://raisama.net/diary/archive/2008/03/27/4a7d3d609129a9296bf7ac0608c2097</guid>
		<description><![CDATA[Can somebody explain to me where this hex string comes from?

It has lots of matches on Google. Most of them are on blog comments. But they appear on valid comments, so I don&#8217;t think it is some marker string being used by spam bots.
]]></description>
			<content:encoded><![CDATA[<p>Can somebody explain to me where this hex string comes from?</p>

<p>It has <a href="http://www.google.com/search?q=4a7d3d609129a9296bf7ac0608c2097">lots of matches on Google</a>. Most of them are on blog comments. But they appear on valid comments, so I don&#8217;t think it is some marker string being used by spam bots.</p>
]]></content:encoded>
			<wfw:commentRSS>http://raisama.net/diary/archive/2008/03/27/4a7d3d609129a9296bf7ac0608c2097/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Dear lazyweb,</title>
		<link>http://raisama.net/diary/archive/2008/01/21/uol-voip-gpl</link>
		<comments>http://raisama.net/diary/archive/2008/01/21/uol-voip-gpl#comments</comments>
		<pubDate>Mon, 21 Jan 2008 14:31:20 +0000</pubDate>
		<dc:creator>Eduardo Habkost</dc:creator>
		
	<category>Nerd</category>
	<category>Curiosidades</category>
	<category>Leis</category>
	<category>Em Português</category>
	<category>Lazyweb</category>
		<guid isPermaLink="false">http://raisama.net/diary/archive/2008/01/21/uol-voip-gpl</guid>
		<description><![CDATA[Me mandaram um caso curioso de mais um software do UOL com licença esquisita (como no caso do Acelerador UOL, que era uma violação da GPL e deu trabalho para resolver). Mas hoje eu estou com preguiça de investigar do que se trata de verdade, por isso vou colocar as informações que encontrei aqui, e [...]]]></description>
			<content:encoded><![CDATA[<p>Me mandaram um caso curioso de mais um software do UOL com licença esquisita (como no caso do <a href="http://www.raisama.net/diary/archive/2005/03/15/2005-03-15-17-58">Acelerador UOL</a>, que era uma violação da GPL e <a href="http://www.halldolivro.com.br/doutord/main.asp?link=aceleradoruol">deu trabalho para resolver</a>). Mas hoje eu estou com preguiça de investigar do que se trata de verdade, por isso vou colocar as informações que encontrei aqui, e o resto da humanidade que se vire para investigar.</p>

<p>O UOL tem um produto chamado <a href="http://voip.uol.com.br/">UOL Voip</a>. A <a href="http://dellalibera.sourceforge.net/uol-GPL.jpg">tela &#8220;sobre&#8221; do software</a> tem o texto da GPL. Porém não parece haver nada que indique <em>o que</em> está sob a GPL, e onde encontrar o código sob a GPL (que a partir da tela, não há como saber se pertence ao UOL ou a terceiros).</p>

<p>Daniel de Oliveira <a href="http://pidgin.im/pipermail/devel/2007-August/002184.html">notou  isso</a> há algum tempo, e <a href="http://gplviolation.blogspot.com/">publicou as informações que encontrou</a> em um blog. Segundo reportado pelo Daniel, o UOL Voip parece ser baseado no Pidgin, mas o UOL nega isso.</p>

<p>Em uma resposta ao Daniel, alguém apontou para o <a href="http://messenger.uol.com.br/codigo_fonte.jhtm">código do UOL Messenger</a>, que parece ser baseado no Pidgin também.</p>

<p>Mas a situação não está muito clara. Então o que eu espero que o resto da humanidade verifique (e não eu, porque tenho preguiça), é:</p>

<ul>
<li>O código publicado para o UOL messenger também é o código para o UOL Voip? (me parece que não)</li>
<li>UOL Voip é ou não é um trabalho derivado do Pidgin distinto do UOL Messenger? Se sim, há código a mais no UOL Voip que também precisa ser publicado sob a GPL? (me parece que sim)</li>
<li>Alguém com mais paciência que eu pode tentar contactar o UOL e tentar esclarecer a situação?</li>
</ul>
]]></content:encoded>
			<wfw:commentRSS>http://raisama.net/diary/archive/2008/01/21/uol-voip-gpl/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Como finalizar uma noite romântica</title>
		<link>http://raisama.net/diary/archive/2007/12/20/como-finalizar-uma-noite-romantica</link>
		<comments>http://raisama.net/diary/archive/2007/12/20/como-finalizar-uma-noite-romantica#comments</comments>
		<pubDate>Thu, 20 Dec 2007 13:13:31 +0000</pubDate>
		<dc:creator>Eduardo Habkost</dc:creator>
		
	<category>Humor</category>
	<category>Curiosidades</category>
	<category>Em Português</category>
	<category>Textos Enormes</category>
		<guid isPermaLink="false">http://raisama.net/diary/archive/2007/12/20/como-finalizar-uma-noite-romantica</guid>
		<description><![CDATA[Meia noite e meia. A Paçoca já dormindo. Eu, ainda tentando dormir.

toc, toc, toc, toc, toc, toc, toc

Um martelo?

toc, toc, toc. toc, toc.

O vizinho de cima resolveu martelar meia noite e meia!?

toc, toc, toc, toc, toc

Puta merda. Nesse ponto, a Kátia já tinha acordado também. Levantamos para procurar de onde vem o maldito barulho.

&#8211; Ei, [...]]]></description>
			<content:encoded><![CDATA[<p>Meia noite e meia. A <a href="http://katia.raisama.net">Paçoca</a> já dormindo. Eu, ainda tentando dormir.</p>

<p><em>toc, toc, toc, toc, toc, toc, toc</em></p>

<p>Um martelo?</p>

<p><em>toc, toc, toc. toc, toc.</em></p>

<p>O vizinho de cima resolveu <strong>martelar</strong> meia noite e meia!?</p>

<p><em>toc, toc, toc, toc, toc</em></p>

<p>Puta merda. Nesse ponto, a Kátia já tinha acordado também. Levantamos para procurar de onde vem o maldito barulho.</p>

<p>&#8211; Ei, vem do vizinho do lado. Não de cima.</p>

<p>Saio para o corredor, e o barulho é alto. Ouço um pouco para me certificar que estou acordando a pessoa certa. É, o barulho vem do apartamento ao lado.</p>

<p>Bato na porta.</p>

<p>Voz de homem: <em>hmmsrmmafmfmmrmrm&#8230;</em></p>

<p><a id="more-1324"></a></p>

<p>Provavelmente ele não falou isso, mas foi o que eu ouvi. Um resmungo ao longe. Toco a campainha.</p>

<p>Voz de mulher: <em>A Maria tem a chave!</em></p>

<p>Minha explicação: estão fazendo uma festa, alguém bateu, acharam que era outro convidado, e ficaram <em>com preguiça</em> de abrir a porta.</p>

<p>Bato na porta novamente. Ouço um resmungo de novo. As marteladas parecem ter parado. Ótimo! &#8212; pensei &#8212; notaram que é o vizinho reclamando mas ficaram com vergonha de atender à porta. Vamos voltar a dormir.</p>

<p><em>toc, toc, toc, toc</em></p>

<p>Porra!</p>

<p>Volto ao corredor, toco a campainha.</p>

<p>Voz de mulher: <em>chama um chaveiro!</em></p>

<p>Minha teoria mudou: alguém brigou e ficou trancado para fora de casa. A outra pessoa ficou tão puta que se recusa a abrir a porta. E manda o sujeito chamar um chaveiro!</p>

<p>Insisto na campainha.</p>

<p>Voz de mulher: <em>estamos presos no banheeeeiro!!!</em></p>

<p>Hah!</p>

<p>Corri para dentro de casa para cair na gargalhada.  Um casal conseguiu ficar preso no banheiro!  A solução que encontraram foi bater no chão e nas paredes para acordar os vizinhos.</p>

<p>Eu grito: <em>vou chamar um chaveiro!</em></p>

<p>Eu fui o primeiro a bater na porta do vizinho para reclamar. O que eu ainda não sei é se isso é porque sou o vizinho mais próximo, ou porque sou o vizinho <em>mais chato</em>.</p>

<p>Procuro o telefone de um chaveiro. Enquanto a Kátia liga, vou tentar acordar a síndica. &#8220;Maria&#8221; é a porteira do prédio. Talvez exista uma chave do apartamento no armário do condomínio. A síndica não atende a porta.</p>

<p>Enquanto tento acordar a síndica, uma vizinha sai para ver o que está acontecendo, porque também está ouvindo as batidas. Nós moramos no 12º andar. A vizinha que levantou mora no 6º andar. 6 andares de distância. Eles devem ter acordado pelo menos metade do prédio com as suas batidas!</p>

<p>Volto para casa. Os vizinhos não devem ter me ouvido: continuam com suas batidas de socorro. Em um determinado momento, ouço alguém gritando para a rua: <em>Estamos presos no banheiro!!!</em>.</p>

<p>É, eles não me ouviram.</p>

<p>Vou até a porta e grito: <em>O chaveiro já está vindooooooo!!!</em>.</p>

<p>Voz de mulher: <em>Obrigado!!!</em></p>

<p>Ótimo. Agora o resto do prédio vai poder dormir sossegado.</p>

<p>Menos eu, porque tenho que esperar o chaveiro.</p>

<hr />

<p>O chaveiro chega e finalmente consegue abrir a porta. Na sala, uma mesinha com uma garrafa de vinho e duas taças. Não reparei nos outros detalhes porque não queria ser <em>muito</em> enxerido.</p>

<p>E finalmente descubro o que exatamente aconteceu:</p>

<p>O banheiro não estava trancado a chave (o que seria estranho, já que o casal estava sozinho em casa). A maçaneta da porta do banheiro caiu. Pego a maçaneta caída no chão e abro a porta do banheiro. O casal, aliviado, sai enrolado em toalhas.</p>

<p>A grande questão não respondida é: como eles conseguiram arrancar a maçaneta da porta do banheiro?</p>

<p>Volto para casa e deixo o casal a sós com o chaveiro. Pelo menos na hora de pagar a conta, o casal merece um pouco de privacidade.</p>

<p>Volto para a cama. Levo duas horas para conseguir dormir, porque não consigo parar de rir.</p>
]]></content:encoded>
			<wfw:commentRSS>http://raisama.net/diary/archive/2007/12/20/como-finalizar-uma-noite-romantica/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Levando choque dentro do ouvido</title>
		<link>http://raisama.net/diary/archive/2007/06/21/levando-choque-dentro-do-ouvido</link>
		<comments>http://raisama.net/diary/archive/2007/06/21/levando-choque-dentro-do-ouvido#comments</comments>
		<pubDate>Thu, 21 Jun 2007 20:21:28 +0000</pubDate>
		<dc:creator>Eduardo Habkost</dc:creator>
		
	<category>Nerd</category>
	<category>Inutilidades</category>
	<category>Curiosidades</category>
	<category>Em Português</category>
		<guid isPermaLink="false">http://raisama.net/diary/archive/2007/06/21/levando-choque-dentro-do-ouvido</guid>
		<description><![CDATA[Material necessário


  Fones de ouvido, daqueles &#8220;de colocar dentro do ouvido&#8221; (com &#8220;alça&#8221;, porque eu não tenho segurador de fone)
  Computador
  Chinelos de borracha
  Cadeira de escritório com rodinhas


Como fazer


  Coloque os fones no ouvido
  Conecte os fones ao computador
  Deslize a cadeira pelo chão do escritório
  [...]]]></description>
			<content:encoded><![CDATA[<h4>Material necessário</h4>

<ul>
  <li>Fones de ouvido, daqueles &#8220;de colocar dentro do ouvido&#8221; (com &#8220;alça&#8221;, <a href="http://raisama.net/diary/archive/2005/10/08/orelha-defeituosa">porque eu não tenho segurador de fone</a>)</li>
  <li>Computador</li>
  <li>Chinelos de borracha</li>
  <li>Cadeira de escritório com rodinhas</li>
</ul>

<h4>Como fazer</h4>

<ul>
  <li>Coloque os fones no ouvido</li>
  <li>Conecte os fones ao computador</li>
  <li>Deslize a cadeira pelo chão do escritório</li>
  <li>Não toque em nenhum objeto, exceto a cadeira, que deve ter rodinhas de plástico</li>
  <li>Arraste os chinelos de borracha no chão enquanto desliza</li>
  <li>Quanto maior a velocidade, melhor</li>
  <li>Quanto maior a resistência entre os chinelos e o chão, melhor</li>
  <li>Sinta o choque no fundo dos seus ouvidos, ao mesmo tempo que ouve um zumbido no fone</li>
</ul>

<p>Eu tenho feito isso, sem querer, várias vezes na última semana. Isso <strong>dói</strong>! Na primeira vez eu até achei engraçado. Tenho que trocar de chinelos. Espero que não estrague os fones. Nem meus ouvidos.</p>
]]></content:encoded>
			<wfw:commentRSS>http://raisama.net/diary/archive/2007/06/21/levando-choque-dentro-do-ouvido/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Google is Smart</title>
		<link>http://raisama.net/diary/archive/2007/02/01/google-mdv-vs-mdk</link>
		<comments>http://raisama.net/diary/archive/2007/02/01/google-mdv-vs-mdk#comments</comments>
		<pubDate>Thu, 01 Feb 2007 15:05:23 +0000</pubDate>
		<dc:creator>Eduardo Habkost</dc:creator>
		
	<category>Nerd</category>
	<category>Curiosidades</category>
	<category>Interessante</category>
	<category>In English</category>
		<guid isPermaLink="false">http://raisama.net/diary/archive/2007/02/01/google-mdv-vs-mdk</guid>
		<description><![CDATA[This surprised me:



How Google knows that &#8220;mandriva&#8221; was formerly called &#8220;mandrake&#8221;, to be smart enough to highlight &#8220;mandrake&#8221; on the results as if I had also searched for &#8220;mandrake&#8221;?

I don&#8217;t think they have added this to a &#8220;synonyms table&#8221; manually. I believe this was somehow detected automatically. My question is: how the Google software could [...]]]></description>
			<content:encoded><![CDATA[<p>This surprised me:</p>

<p><a href="http://www.google.com/search?q=rpm+mandriva&amp;ie=UTF-8&amp;oe=UTF-8"><img src="http://raisama.net/img/mdv-mdk.png" alt="'mandrake' highlighted when searching for 'mandriva' on Google search" /></a></p>

<p>How Google knows that &#8220;mandriva&#8221; was formerly called &#8220;mandrake&#8221;, to be smart enough to highlight &#8220;mandrake&#8221; on the results as if I had also searched for &#8220;mandrake&#8221;?</p>

<p>I don&#8217;t think they have added this to a &#8220;synonyms table&#8221; manually. I believe this was somehow detected automatically. My question is: how the Google software could have detected this automatically?</p>

<p><strong>Update (Feb 2nd 2006)</strong>: I think I&#8217;ve found how this was done. I&#8217;ve described my theory in <a href="http://raisama.net/diary/archive/2007/02/01/google-mdv-vs-mdk#comments">the comments</a>.</p>
]]></content:encoded>
			<wfw:commentRSS>http://raisama.net/diary/archive/2007/02/01/google-mdv-vs-mdk/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Pedro Lauro</title>
		<link>http://raisama.net/diary/archive/2006/04/18/pedro-lauro</link>
		<comments>http://raisama.net/diary/archive/2006/04/18/pedro-lauro#comments</comments>
		<pubDate>Tue, 18 Apr 2006 16:54:01 +0000</pubDate>
		<dc:creator>Eduardo Habkost</dc:creator>
		
	<category>Humor</category>
	<category>Curiosidades</category>
	<category>Política</category>
	<category>Em Português</category>
		<guid isPermaLink="false">http://raisama.net/diary/archive/2006/04/18/pedro-lauro</guid>
		<description><![CDATA[Pesquisando um pouco mais sobre o cara das placas &#8220;Cassinos no Brasil&#8221;, descobri coisas interessantes:

Ele foi eleito deputado em 1974:


[&#8230;] no Paraná houve outras vitórias surpreendentes: Pedro Lauro Domareski, dono de uma banca de jornais e revistas que tinha sido prejudicada pelas modificações urbanísticas de Jaime Lerner na Prefeitura - e que aproveitou da forma [...]]]></description>
			<content:encoded><![CDATA[<p>Pesquisando um pouco mais sobre o cara das <a href="http://www.flickr.com/groups/cassinosnobrasil/">placas &#8220;Cassinos no Brasil&#8221;</a>, descobri coisas interessantes:</p>

<p>Ele foi <a href="http://www.millarch.org/imprimir.asp?id=8046">eleito deputado em 1974</a>:</p>

<blockquote><em>
[&#8230;] no Paraná houve outras vitórias surpreendentes: Pedro Lauro Domareski, dono de uma banca de jornais e revistas que tinha sido prejudicada pelas modificações urbanísticas de Jaime Lerner na Prefeitura - e que aproveitou da forma mais brega para criticá-lo nos programas de televisão - foi o grande azarão com 6.119 votos chegou a Brasília.
</em></blockquote>

<p>Agora, o mais divertido são seus <a href="http://www.camara.gov.br/internet/sileg/Prop_lista.asp?Autor=450108&amp;Limite=N">projetos de lei</a>. Destaques:</p>

<ul>
<li>PROIBE A LUTA DE BOXE EM TODO O TERRITORIO NACIONAL</li>
<li>PROIBE A CONFECÇÃO DE ARTIGOS DE VESTUARIO COM DIZERES EM IDIOMA ESTRANGEIRO</li>
<li>TORNA A IMAGEM REPRESENTATIVA DE PAPAI NOEL EM SEU USO SOB QUALQUER FORMA DE PROPAGANDA, DE PROPRIEDADE DE INSTITUIÇÕES BENEFICENTES NA FORMA QUE ESPECIFICA</li>
<li>PROIBE COMENTARIOS PELA IMPRENSA, SOBRE FILMES DE PROCEDENCIA ESTRANGEIRA</li>
<li>PROIBE O CONSUMO DE ALIMENTOS E BEBIDAS ESTRANGEIRAS EM FESTAS OFICIAIS</li>
<li>INCLUI A COR VERMELHA NA BANDEIRA NACIONAL</li>
<li>DISPÕE SOBRE A PROIBIÇÃO DE CONTRATAÇÃO DE ARBITRO ESPORTIVO ESTRANGEIRO, EM TODO O TERRITORIO NACIONAL</li>
<li>SUSPENDE, PELO PRAZO DE SEIS MESES, AS IMPORTAÇÕES DE FILMES E &#8216;VIDEO-TAPES&#8217; DESTINADOS A EMISSORAS DE TELEVISÃO</li>
<li>DISPÕE SOBRE A EXECUÇÃO OBRIGATORIA DE MUSICAS BRASILEIRAS PELOS SERVIÇOS DE MUSICA AMBIENTE, E DA OUTRAS PROVIDENCIAS</li>
<li>DETERMINA A EXECUÇÃO DE MUSICAS AO VIVO NOS LOCAIS DE DIVERSÕES QUE ESPECIFICA. Explicação: ONDE HAJA PISTA DE DANÇA</li>
</ul>

<p>É hilário.</p>
]]></content:encoded>
			<wfw:commentRSS>http://raisama.net/diary/archive/2006/04/18/pedro-lauro/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Unbelievable</title>
		<link>http://raisama.net/diary/archive/2005/12/16/unbelievable</link>
		<comments>http://raisama.net/diary/archive/2005/12/16/unbelievable#comments</comments>
		<pubDate>Fri, 16 Dec 2005 16:10:29 +0000</pubDate>
		<dc:creator>Eduardo Habkost</dc:creator>
		
	<category>Nerd</category>
	<category>Rants&#038;Críticas</category>
	<category>Curiosidades</category>
	<category>In English</category>
		<guid isPermaLink="false">http://raisama.net/diary/?p=1268</guid>
		<description><![CDATA[Look at this post.

On a previous story the guy told a story of someone accessing a URL that would hose a Windows machine, if accessed using Internet Explorer and Windows. They have clearly warned people about it:

&#8220;NEVER under any circumstance visit this url using Internet Explorer and Windows &#8230; you have been warned.&#8221;

But, wonder, there [...]]]></description>
			<content:encoded><![CDATA[<p>Look at <a href="http://lobby4linux.com/WordPress/?p=67">this post</a>.</p>

<p>On a <a href="http://lobby4linux.com/WordPress/?p=59">previous story</a> the guy told a story of someone accessing a URL that would hose a Windows machine, if accessed using Internet Explorer and Windows. They have clearly warned people about it:</p>

<blockquote><em>&#8220;NEVER under any circumstance visit this url using Internet Explorer and Windows &#8230; you have been warned.&#8221;</em></blockquote>

<p>But, wonder, there were <strong>lots</strong> of people that actually accessed it! Read <a href="http://lobby4linux.com/WordPress/?p=67">the complete story</a> and the comments he got, if you want some fun. Some examples:</p>

<blockquote><em>11/25/05 &#8220;&#8230;and I hold you personally responsible for the damage you inflicted upon my computer. I am turning this over to my attorney in the morning. When he is done with you and your website, you will never hack another computer again&#8230;&#8221;</em></blockquote>

<blockquote><em>11/26/05 &#8220;&#8230;and how much did Linux pay you to infect our computers? I hope it was alot because when my lawyer is finished, you will be living in a cardboard box&#8230;&#8221;</em></blockquote>
]]></content:encoded>
			<wfw:commentRSS>http://raisama.net/diary/archive/2005/12/16/unbelievable/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Things you must never do on your system</title>
		<link>http://raisama.net/diary/archive/2005/06/22/stupid-perm-problem-explained</link>
		<comments>http://raisama.net/diary/archive/2005/06/22/stupid-perm-problem-explained#comments</comments>
		<pubDate>Wed, 22 Jun 2005 17:08:37 +0000</pubDate>
		<dc:creator>Eduardo Habkost</dc:creator>
		
	<category>Trabalho</category>
	<category>Humor</category>
	<category>Nerd</category>
	<category>Curiosidades</category>
	<category>In English</category>
		<guid isPermaLink="false">http://www.raisama.net/diary/?p=1222</guid>
		<description><![CDATA[Now, the solution for the problem I described on my previous post.

First, the immediate cause of the problem: permission on /. Simple. When investigating the problem, I&#8217;ve checked everything, all directories on the way to the file that the user hadn&#8217;t permissions to acces, except the permissions of /. I would never imagine that the [...]]]></description>
			<content:encoded><![CDATA[<p>Now, the solution for the problem I described on my <a href="http://www.raisama.net/diary/archive/2005/06/16/stupid-perm-problem">previous post</a>.</p>

<p>First, the immediate cause of the problem: permission on <code>/</code>. Simple. When investigating the problem, I&#8217;ve checked everything, all directories on the way to the file that the user hadn&#8217;t permissions to acces, <strong>except</strong> the permissions of <code>/</code>. I would never imagine that the permission of the root directory would change unexpectedly. The <code>/</code> had no execution permission for anybody, except its owner. So, everytime a process made setuid() to another user, all filesystem operations failed, because the user wasn&#8217;t supposed enter anywhere on the filesystem.</p>

<p>Now the question was: how the hell had the permissions on <code>/</code> changed? That is part of list of things you must never do on your system. I&#8217;ve took some time to figure out how it happened. But I remembered some things I&#8217;ve did some minutes before the problem appeared, that I didn&#8217;t imagine that would cause this.</p>

<p>I was compiling software on a machine, but wanted to install on my machine the software I was building. So, the first thing that came to my mind was: just install it using <code>DESTDIR</code>, and copy the files to your machine. It was just for a quick test, so it seemed to be a good idea.</p>

<p>Let&#8217;s go: <code>mkdir /tmp/mysoftware; make install DESTDIR=/tmp/mysoftware; cd /tmp/mysoftware; tar -zcvf /tmp/mysoftware.tgz .</code>. Looks right.</p>

<p>Copied <code>mysoftware.tgz</code> to my machine. <code>cd /; tar -zxvf mysoftware.tgz</code>. It seemed to be a sane thing to do: the only contentes of mysoftware.tgz were files on <code>usr/local</code>. Everything was ok, except that lots of stuff on my machine simply stopped working after I&#8217;ve extracted the tarball.</p>

<p>The only problem was: the contents of the tarball weren&#8217;t just files on <code>usr/local</code>. There was a evil entry on the file:</p>

<pre>
drwx------ ehabkost/ehabkost 0 2005-06-13 17:11:33 ./
</pre>

<p>See? That caused all the problems. I&#8217;ve extracted the tarball, this entry was extracted, the permissions of <code>/</code> were changed. Simple.</p>

<p>I&#8217;ve told you that it was stupid.</p>
]]></content:encoded>
			<wfw:commentRSS>http://raisama.net/diary/archive/2005/06/22/stupid-perm-problem-explained/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Horror story</title>
		<link>http://raisama.net/diary/archive/2005/06/16/stupid-perm-problem</link>
		<comments>http://raisama.net/diary/archive/2005/06/16/stupid-perm-problem#comments</comments>
		<pubDate>Thu, 16 Jun 2005 17:19:14 +0000</pubDate>
		<dc:creator>Eduardo Habkost</dc:creator>
		
	<category>Trabalho</category>
	<category>Humor</category>
	<category>Nerd</category>
	<category>Ferramentas</category>
	<category>Curiosidades</category>
	<category>In English</category>
		<guid isPermaLink="false">http://www.raisama.net/diary/?p=1221</guid>
		<description><![CDATA[In the beginning of this week, suddenly my machine here at work started to behave very weirdly. I will try to describe what happened, here.

Monday, about one hour before I going home, mutt suddenly closed the connection with my local IMAP server (I use cyrus-imapd to store my mail on my own machine). The message [...]]]></description>
			<content:encoded><![CDATA[<p>In the beginning of this week, suddenly my machine here at work started to behave very <em>weirdly</em>. I will try to describe what happened, here.</p>

<p>Monday, about one hour before I going home, mutt suddenly closed the connection with my local IMAP server (I use cyrus-imapd to store my mail on my own machine). The message was something like &#8220;IMAP connection terminated unexpectedly&#8221;.</p>

<p>I&#8217;ve restarted cyrus-imapd. And then, what I&#8217;ve seen on the logs was <strong>lots</strong> of this message:</p>

<pre>
IOERROR: stat /var/lib/imap/mailboxes.db: Permission denied
</pre>

<p>Weird, huh? I&#8217;ve checked the permissions of <code>/var/lib/imap</code>, <code>/var/lib/imap/*</code>, and so on. There was nothing wrong with them.</p>

<p>Then, I&#8217;ve noticed that procmail wasn&#8217;t delivering my mail, too. I use procmail+cyrus-deliver to deliver my mail (I had no patience to convert my procmail file to sieve, yet). The message was even worse:</p>

<pre>
/usr/lib/cyrus-imapd/deliver: error while loading shared libraries: libsasl2.so.2: cannot open shared object file: Permission denied
</pre>

<p>Permission denied when loading a library? Huh?</p>

<p>Then I&#8217;ve noticed that similar problems were happening on some non-root suid binaries. I&#8217;ve tried <code>su cyrus -c /some/non-suid/binary</code>, too. Same problem.</p>

<p>stracing it, what I&#8217;ve seen was:</p>

<pre>
19616 setfsuid32(74)                    = 0
19616 setfsgid32(12)                    = 0
19616 open("/etc/passwd", O_RDONLY)     = -1 EACCES (Permission denied)
19616 open("/etc/ld.so.cache", O_RDONLY) = -1 EACCES (Permission denied)
</pre>

<p>And lots of other calls returning <code>EACCESS</code>.</p>

<p>On all cases, the problem was the same: just after doing <code>setuid()</code>, <strong>all</strong> file operations were returning <code>EACCESS</code>. I was confused.</p>

<p>I gave up, and rebooted the machine. Same problem. I went home, and then discovered that I couldn&#8217;t even login through ssh from home to my machine.</p>

<p>On the next day, it became even worse: now I couldn&#8217;t even login as the &#8216;ehabkost&#8217; user, that was working before reboot.</p>

<p>I&#8217;ve booted with a different kernel, using the Conectiva Linux rescue disk. chrooted to my root partition, and same problem.</p>

<p>More tests: created <code>/chr</code>, as a test chroot. Copied <code>/etc</code>, <code>/bin</code> and <code>/lib</code> to this directory. chrooted there. And, <strong>it worked</strong>: the problem didn&#8217;t happen inside the chroot. Uh, oh.</p>

<p>I thought: &#8220;let&#8217;s create another partition, copy my root partition there, and test if the problem happens again&#8221;. Created a new LV, mounted as <code>/tmproot</code>, <code>cp -xa / /tmproot</code>, <code>chroot /tmproot</code>, and&#8230; <strong>it didn&#8217;t work!</strong>. I removed everything from <code>/tmproot</code><code>, leaving only </code><code>/etc</code>, <code>/bin</code> and <code>/lib</code>. chrooted there and <strong>it didn&#8217;t work</strong>. I&#8217;ve even moved <code>/tmproot/*</code> to <code>/chr</code>, and it was always working on <code>/chr</code>, but not on <code>/tmproot</code>. My conclusion after seeing this was: the problem happens when the root is a mounted LV or partition, but not if it is a subdirectory of a filesystem on a LV or partition.</p>

<p>I&#8217;ve lost my patience to track the problem, and recreated the filesystem on my root partition. Copied the contents of the <code>tmproot</code> LV, and the problem vanished. Miracle. My conclusion: there was something very weird with my filesystem (yes, I&#8217;ve tried fsck before my first tests, and it reported no errors).</p>

<p>Tuesday, all the truth was revealed to me when I was thinking about the problem. When thinking about what could give <code>EACCESS</code> errors on all filesystem operations, except when running was root, I was enlightened and noticed what caused the problem. Very stupid problem. Until yesterday, I couldn&#8217;t even think on how it could happen. Then I&#8217;ve discovered that it was my fault.</p>

<p>I won&#8217;t tell you what was the problem, neither what caused it, right now. The problem was really simple and easily fixed with a single and simple command. Let&#8217;s see if someone can tell what the problem was, or what I forgot to check when tracing the problem.</p>

<p>See the solution and the description of the stupid thing I did on the next post.</p>
]]></content:encoded>
			<wfw:commentRSS>http://raisama.net/diary/archive/2005/06/16/stupid-perm-problem/feed/</wfw:commentRSS>
		</item>
		<item>
		<title></title>
		<link>http://raisama.net/diary/archive/2005/01/14/2005-01-14-10-15</link>
		<comments>http://raisama.net/diary/archive/2005/01/14/2005-01-14-10-15#comments</comments>
		<pubDate>Fri, 14 Jan 2005 12:15:33 +0000</pubDate>
		<dc:creator>Eduardo Habkost</dc:creator>
		
	<category>Cinema</category>
	<category>Curiosidades</category>
	<category>Ciência</category>
	<category>Em Português</category>
		<guid isPermaLink="false">/comment/2005/01/14/10/15</guid>
		<description><![CDATA[
Já assistiram Bagdad Cafe?
Nós assistimos só o começo,
porque o nosso adorável drive de DVD não funciona direito, mais.



Eu havia ficado intrigado com aquelas &#8220;coisas&#8221; que brilhavam no céu, em algumas cenas.
Hoje descobri que são halos,
após encontrar uma página muito interessante sobre
óptica atmosférica.
A página inclui informações técnicas sobre coisas como
arco-íris e os halos,
desde os mais comuns [...]]]></description>
			<content:encoded><![CDATA[<p>
Já assistiram <a href="http://www.imdb.com/title/tt0095801/">Bagdad Cafe</a>?
<a href="http://palavrasdescalcas.blogger.com.br">Nós</a> assistimos só o começo,
porque o nosso adorável drive de DVD não funciona direito, mais.
</p>

<p>
Eu havia ficado intrigado com aquelas &#8220;coisas&#8221; que brilhavam no céu, em algumas cenas.
Hoje descobri que são <a href="http://www.sundog.clara.co.uk/halo/halosim.htm"><em>halos</em></a>,
após encontrar uma página muito interessante sobre
<a href="http://www.sundog.clara.co.uk/atoptics/phenom.htm">óptica atmosférica</a>.
A página inclui informações técnicas sobre coisas como
<a href="http://www.sundog.clara.co.uk/rainbows/bows.htm">arco-íris</a> e os <em>halos</em>,
desde os <a href="http://www.sundog.clara.co.uk/halo/common.htm">mais comuns</a> até
os <a href="http://www.sundog.clara.co.uk/halo/unusual.htm">mais raros</a>.
Os que aparecem no filme são parecidos com os <a href="http://www.sundog.clara.co.uk/halo/supinf.htm">infralaterais</a>.
Achei curioso não ter nenhuma foto de algum desse tipo na página.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://raisama.net/diary/archive/2005/01/14/2005-01-14-10-15/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
