<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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>chmod &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/chmod/</link>
	<description>Feed of posts on WordPress.com tagged "chmod"</description>
	<pubDate>Sun, 29 Nov 2009 11:13:42 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Using Find to change file permissions ]]></title>
<link>http://bobpapa.wordpress.com/2009/11/26/using-find-to-change-file-permissions/</link>
<pubDate>Wed, 25 Nov 2009 18:10:35 +0000</pubDate>
<dc:creator>bobpapa</dc:creator>
<guid>http://bobpapa.wordpress.com/2009/11/26/using-find-to-change-file-permissions/</guid>
<description><![CDATA[The command below will find any file whose  permission exactly  matches  read,  write, and execute a]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The command below will find any file whose  permission<br />
exactly  matches  read,  write, and execute access for user,<br />
and read and execute access for group and other:<br />
and change the permission to 750.</p>
<p>Please note: -print gives you a short listing of the file:</p>
<p>::</p>
<p>find . -perm u=rwx,g=rx,o=rx -print -exec chmod 750 {} \;<br />
find . -perm u=rwx,g-w,o-w -exec chmod 750 {} \;</p>
<p>Please note: -ls gives you a long listing of the file:</p>
<p>::</p>
<p>find . -perm u=rwx,g=rx,o=rx -ls -exec chmod 750 {} \;<br />
find . -perm u=rwx,g=rx,o=rx -exec chmod 750 {} \;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Deixando as permissões corretas para o Cron whm/cpanel centos/redhat]]></title>
<link>http://littleoak.wordpress.com/2009/11/23/deixando-as-permissoes-corretas-para-o-cron-whmcpanel-centosredhat/</link>
<pubDate>Mon, 23 Nov 2009 12:55:00 +0000</pubDate>
<dc:creator>littleoak</dc:creator>
<guid>http://littleoak.wordpress.com/2009/11/23/deixando-as-permissoes-corretas-para-o-cron-whmcpanel-centosredhat/</guid>
<description><![CDATA[Para saber como deixar seu cron rodando filé acesse: http://www.nerdblog.info/2009/11/23/colocando-a]]></description>
<content:encoded><![CDATA[Para saber como deixar seu cron rodando filé acesse: http://www.nerdblog.info/2009/11/23/colocando-a]]></content:encoded>
</item>
<item>
<title><![CDATA[Comandos Infaltables!!]]></title>
<link>http://freeakx.wordpress.com/2009/11/18/comandos-infaltables/</link>
<pubDate>Wed, 18 Nov 2009 21:40:20 +0000</pubDate>
<dc:creator>Cesar Troya S.</dc:creator>
<guid>http://freeakx.wordpress.com/2009/11/18/comandos-infaltables/</guid>
<description><![CDATA[En esta Oportunidad les Traigo una recopilación de lo q yo concidero son los comandos más, utiles, i]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>En esta Oportunidad les Traigo una recopilación de lo q yo concidero son los comandos más, utiles, importantes y usados tanto en Ubuntu como en muchas otras distros linux</p>
<ul>
<li style="text-align:left;"><strong>Adduser: </strong>Se utiliza para añadir un usuario.</li>
</ul>
<blockquote>
<blockquote><p>Uso: adduser &#60;nombreusuario&#62;</p></blockquote>
</blockquote>
<ul>
<li><strong>Alias (este esta bien explicado en un post anterior)<br />
</strong></li>
</ul>
<p style="padding-left:120px;">Uso: alias nombrequeledamos=’comando’</p>
<ul>
<li><strong>apt-get install nombredelprograma</strong><strong> =  i</strong>nstala el paquete.</li>
</ul>
<ul>
<li><strong>apt-get remove nombredelprograma = </strong>Borra el paquete. Con la opción –purge borra tambien la configuración del paquete instalado.</li>
</ul>
<ul>
<li><strong>apt-get update = </strong>Actualiza la lista de paquetes disponibles para instalar.</li>
</ul>
<ul>
<li style="text-align:left;"><strong>apt-get upgrade  = </strong>Instala las nuevas versiones de los diferentes paquetes disponibles.</li>
</ul>
<ul>
<li><strong>cd = </strong>Cambia el directorio.</li>
</ul>
<blockquote><p>Uso: cd nombredirectorio</p></blockquote>
<p><span style="color:#ff6600;"><em><strong>Continuar leyendo el resto de comandos:</strong></em></span></p>
<ul>
<li><!--more--><strong>chmod: </strong>Cambia los permisos de los archivos.</li>
</ul>
<p style="padding-left:90px;">r:lectura w:escritura x:ejecución<br />
+: añade permisos -:quita permisos<br />
u:usuario g:grupo del usuario o:otros<br />
Uso: chmod permisos nombrearchivo</p>
<ul>
<li><strong>chown: </strong>Cambia el propietario de un archivo.</li>
</ul>
<p style="padding-left:90px;">Uso: chown &#60;nombrepropietario&#62; &#60;nombrearchivo&#62;</p>
<ul>
<li><strong>cp:</strong>Copia archivos en el directorio indicado.</li>
</ul>
<p style="padding-left:60px;">Uso: cp archivoorigen archivodestino</p>
<ul>
<li><strong>deluser: </strong>Elimina una cuenta de usuario</li>
</ul>
<p style="padding-left:90px;">Uso: deluser &#60;nombreusuario&#62;</p>
<ul>
<li><strong>exit:</strong> Cierra las ventanas o las conexiones remotas establecidas</li>
</ul>
<ul>
<li><strong>fsck: </strong>Sirve para chequear si hay errores en nuestro disco duro.</li>
</ul>
<p style="padding-left:90px;">Uso: fsck -t &#60;fs_typo&#62; &#60;dispositivo&#62;</p>
<ul>
<li><strong>ftp: </strong>Protocolo de Transferencia de Archivos, permite transferir archivos de y para computadores remotos.</li>
</ul>
<p style="padding-left:60px;">Uso: ftp &#60;maquina_remota&#62;</p>
<ul>
<li><strong>grep</strong>: Su funcionalidad es la de escribir en salida estándar aquellas líneas que concuerden con un patrón. Busca patrones en archivos.</li>
</ul>
<p style="padding-left:90px;">grep: grep &#60;patronabuscar&#62; &#60;nombrearchivos&#62;</p>
<ul>
<li><strong>ifconfig: </strong>Obtener información de la configuración de red</li>
</ul>
<ul>
<li><strong>kill:</strong> Termina un proceso</li>
</ul>
<p style="padding-left:60px;">Uso: kill numeroPID</p>
<ul>
<li><strong>ls:</strong>Lista los archivos y directorios dentro del directorio de trabajo.</li>
</ul>
<ul>
<li><strong>make:</strong> Crea ejecutables a partir de los archivos fuente.</li>
</ul>
<ul>
<li><strong>man: </strong>muestra el manual de un programa o comando si este esta disponible</li>
</ul>
<p style="padding-left:90px;">Uso: man &#60;nombredelcomando&#62;</p>
<ul>
<li><strong>mkdir: </strong>Crea un nuevo directorio.</li>
</ul>
<p style="padding-left:90px;">Uso: mkdir nombredirectorio</p>
<ul>
<li><strong>mount: </strong>Monta una unidad.</li>
</ul>
<p style="padding-left:90px;">Uso: mount -t&#60; sistema_de_archivo&#62; &#60;dispositivo&#62; &#60;nombredirectorio&#62;</p>
<p><strong><br />
</strong></p>
<ul>
<li><strong>mv: </strong>Este comando sirve para renombrar un archivo.</li>
</ul>
<p style="padding-left:60px;">Uso: mv &#60;nombrearchivo&#62; &#60;nuevonombrearchivo&#62;</p>
<ul>
<li><strong>netstat:</strong>Muestra las conexiones y puertos abiertos por los que se establecen las comunicaciones.</li>
</ul>
<ul>
<li><strong>poweroff: </strong>Apaga el ordenador.</li>
</ul>
<ul>
<li><strong>ps: </strong>Muestra información acerca de los procesos activos.</li>
</ul>
<ul>
<li><strong>rlogin: </strong>Conecta un host local con un host remoto.</li>
</ul>
<p style="padding-left:90px;">Uso: rlogin &#60;maquina_remota&#62;</p>
<ul>
<li><strong>rm: </strong>Remueve o elimina un archivo.</li>
</ul>
<p style="padding-left:60px;">Uso: rm &#60;rutaynombrearchivo&#62;</p>
<ul>
<li><strong>rmdir: </strong>Elimina el directorio indicado, el cual debe estar vacío.</li>
</ul>
<p style="padding-left:90px;">Uso: rmdir nombredirectorio</p>
<ul>
<li><strong>sudo o su:</strong> Con este comando accedemos al sistema como root.</li>
</ul>
<ul>
<li><strong>umount: </strong>Desmontar unidades montadas anteriormente</li>
</ul>
<p style="padding-left:120px;">Uso: umount &#60;nombredirectorio&#62;</p>
<ul>
<li><strong>wc:</strong>Cuenta los caráteres, palabras y líneas del archivo de texto.</li>
</ul>
<p style="padding-left:60px;">Uso: wc nom_archivo</p>
<p style="padding-left:60px;">
<ul>
<li><strong>whereis: </strong>Devuelve la ubicación del archivo especificado, si existe.</li>
</ul>
<p style="padding-left:60px;">Uso: whereis nomb_archivo</p>
<p><strong>Larga vida a la consola!!</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Linux File Permissions]]></title>
<link>http://bitsofwizardry.wordpress.com/2009/11/12/linux-file-permissions/</link>
<pubDate>Thu, 12 Nov 2009 18:43:17 +0000</pubDate>
<dc:creator>masterperas</dc:creator>
<guid>http://bitsofwizardry.wordpress.com/2009/11/12/linux-file-permissions/</guid>
<description><![CDATA[I&#8217;ve allways struggled with how the linux permissions work. Recently i had another one of thos]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I&#8217;ve allways struggled with how the linux permissions work. Recently i had another one of those times where i had to change a folders permission recursively so, once again, i <a href="http://www.google.pt/search?q=linux+permissions" target="_blank">googled </a>it. The 5th result is a <a href="http://code.google.com/edu/tools101/linux/ownership_permissions.html" target="_blank">Google Code University Lab</a> which actually explained it in a way i could get.</p>
<p><span style="text-decoration:underline;"><strong>This post is a simple sumary of the lab.</strong></span></p>
<p>When you do an ls -l on your console you will see something like the following</p>
<pre style="padding-left:30px;">drwxr-xr-x. 2 sapiens sapiens 4096 2009-10-19 14:20 Desktop
drwxr-xr-x. 2 sapiens sapiens 4096 2009-10-07 23:55 Documents
-rwxr-xr-x. 3 sapiens sapiens 4096 2009-11-05 18:42 myStuff.txt</pre>
<p>If you look at the start of the line you will notice a bunch of letters, they are actually 10 of them. At first when you are getting into linux these will seem like gibberish to you and you will basicly ignore them, but when you need to actually change the folders permissions you might want to try and learn how to read them.</p>
<p>The letters on that text means the following :</p>
<ul>
<li><strong>d</strong> &#8211; directory;</li>
<li><strong>r</strong> &#8211; read granted;</li>
<li><strong>w</strong> &#8211; write granted;</li>
<li><strong>x </strong>- execute granted;</li>
<li><strong>-</strong> &#8211; Not granted.</li>
</ul>
<p>Tha piece of text can be divided in 4 groups (1st group composed of the first caracther, then 3 groups of 3 characters each) :</p>
<ol>
<li>first letter states wether the file is a folder or not (if it has a &#8216;d&#8217; its a directory);</li>
<li>the next 3 letters states the permissions for the file Owner</li>
<li>The next 3 letters states the permissions for the Group</li>
<li>the last 3 letters states the permissions for Everyone</li>
</ol>
<p>So you&#8217;ve learned how to read it, but how do you change it well basicly you will be using chmod for that (just <em>man</em> it). As for the arguments you can either write the whole text for the given file or use the short hand.The following table shows you how to use short hand version to give permissions:</p>
<div style="text-align:center;">
<table style="height:196px;" width="456">
<tbody>
<tr>
<th> Number</th>
<th> Read (r)</th>
<th> Write (w)</th>
<th> Execute (x)</th>
</tr>
<tr style="text-align:center;">
<td style="text-align:center;">0</td>
<td style="text-align:center;">-</td>
<td style="text-align:center;">-</td>
<td style="text-align:center;">-</td>
</tr>
<tr>
<td style="text-align:center;">1</td>
<td style="text-align:center;">-</td>
<td style="text-align:center;">-</td>
<td style="text-align:center;">x</td>
</tr>
<tr>
<td style="text-align:center;">2</td>
<td style="text-align:center;">-</td>
<td style="text-align:center;">w</td>
<td style="text-align:center;">-</td>
</tr>
<tr>
<td style="text-align:center;">3</td>
<td style="text-align:center;">-</td>
<td style="text-align:center;">w</td>
<td style="text-align:center;">x</td>
</tr>
<tr>
<td style="text-align:center;">4</td>
<td style="text-align:center;">r</td>
<td style="text-align:center;">-</td>
<td style="text-align:center;">-</td>
</tr>
<tr>
<td style="text-align:center;">5</td>
<td style="text-align:center;">r</td>
<td style="text-align:center;">-</td>
<td style="text-align:center;">x</td>
</tr>
<tr>
<td style="text-align:center;">6</td>
<td style="text-align:center;">r</td>
<td style="text-align:center;">w</td>
<td style="text-align:center;">-</td>
</tr>
<tr>
<td style="text-align:center;">7</td>
<td style="text-align:center;">r</td>
<td style="text-align:center;">w</td>
<td style="text-align:center;">x</td>
</tr>
</tbody>
</table>
</div>
<p><strong><span style="text-decoration:underline;">Note: The above table was directly taken from the google lab, it also presents a good way to remember this table</span></strong></p>
<p>&#160;</p>
<p>In order to change a files permission you would write a 3 digit number, using the table above,  that defines the permissions for the groups mentioned above (owner, group, everyone else) for instance:</p>
<ul>
<li>644 would change a file/folder pemission to be read-only to everyone but the owner which would have full permissions</li>
<li> 755 (probably one of the most used) would make the file executable and readable to everyone and full permissions to the file owner.</li>
</ul>
<p>&#160;</p>
<p>External Links :</p>
<ul>
<li>Google Code Lab &#8211; <a href="http://code.google.com/edu/tools101/linux/ownership_permissions.html">Linux Ownership and Permissions Lab</a></li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Linux chmod explained]]></title>
<link>http://pagetribe.wordpress.com/2009/11/12/linux-chmod-explained/</link>
<pubDate>Thu, 12 Nov 2009 05:30:11 +0000</pubDate>
<dc:creator>pagetribe</dc:creator>
<guid>http://pagetribe.wordpress.com/2009/11/12/linux-chmod-explained/</guid>
<description><![CDATA[There are different groups on Linux with file permissions. They are user, group and others. User ]]></description>
<content:encoded><![CDATA[There are different groups on Linux with file permissions. They are user, group and others. User ]]></content:encoded>
</item>
<item>
<title><![CDATA[Tips'nTricks: ASUS e il LED delle email]]></title>
<link>http://idl3.wordpress.com/2009/11/10/tipsntricks-asus-e-il-led-delle-email/</link>
<pubDate>Tue, 10 Nov 2009 06:36:09 +0000</pubDate>
<dc:creator>idl3</dc:creator>
<guid>http://idl3.wordpress.com/2009/11/10/tipsntricks-asus-e-il-led-delle-email/</guid>
<description><![CDATA[Appena ho installato CheckGmail e&#8217; sorta l&#8217;esigenza di far accendere il LED blu del port]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Appena ho <a href="http://idl3.wordpress.com/2009/11/09/tipsntricks-checkgmail-e-lerrore-401/">installato CheckGmail</a> e&#8217; sorta l&#8217;esigenza di far <strong>accendere il <acronym title="Light Emitting Diode">LED</acronym></strong> blu del portatile che notifica la <strong>ricezione di una nuova email</strong>. Ero abituato a quando il file dove inserire lo zero e l&#8217;uno &#8211; a seconda si volesse spegnere o accendere il LED &#8211; era posizionato in <code>/proc/acpi/asus/mled</code>. Invece <strong>e&#8217; cambiato</strong>.</p>
<p><img src="http://idl3.wordpress.com/files/2009/11/led.jpg?w=150" alt="led" title="led" width="150" height="110" class="alignleft size-thumbnail wp-image-988" />Prima bastava <strong>inserire</strong> in uno script (o nell&#8217;apposito form di un programma come nel caso di <strong>CheckGmail</strong>):</p>
<pre>echo 0 &#62; /proc/acpi/asus/mled</pre>
<p>per <strong>spegnere</strong> o:</p>
<pre>echo 1 &#62; /proc/acpi/asus/mled</pre>
<p>per <strong>accendere</strong> il LED.</p>
<p>Ho notato invece che <strong>ora il percorso e&#8217;</strong> <code>/sys/class/leds/asus::mail/</code> e il file non e&#8217; <code>mled</code> ma <code>brightness</code>. Quindi le due righe di prima diventano:</p>
<pre>echo 0 &#62; /sys/class/leds/asus::mail/brightness</pre>
<p>e</p>
<pre>echo 1 &#62; /sys/class/leds/asus::mail/brightness</pre>
<p>State attenti che molto probabilmente il vostro file <code>brightness</code> ha i <strong>permessi</strong> in scrittura solo per l&#8217;utente <strong>root</strong>, mentre per gli altri ha <strong>solo i permessi in lettura</strong>. Ovviamente dobbiamo estendere a tutti il <strong>permesso in scrittura</strong> per poter inserire lo zero o l&#8217;uno a seconda del caso. Avevo <a href="http://idl3.wordpress.com/2009/10/17/howto-i-permessi-su-gnulinux/">gia&#8217; scritto</a> come <strong>funzionano</strong> e come <strong>cambiare</strong> i permessi ai file e alle directory.</p>
<p>Apriamo un <strong>terminale</strong>, spostiamoci nella directory giusta:<br />
<code>$ cd /sys/class/leds/asus\:\:mail/</code><br />
<strong>controlliamo</strong> i permessi:<br />
<code>$ ls -l</code></p>
<pre>[...]
-rw-r--r-- 1 root root 4096  9 nov 08:48 brightness
[...]</pre>
<p>Diamo dunque questo <strong>comando</strong>:<br />
<code># chmod a+w brightness</code><br />
<strong>controlliamo</strong> se i permessi sono stati assegnati correttamente:<br />
<code>$ ls -l</code></p>
<pre>[...]
-rw-rw-rw- 1 root root 4096  9 nov 08:48 brightness
[...]</pre>
<p>Tenete presente che <strong>al riavvio del sistema i permessi verranno ripristinati</strong>. Quindi, o ripetiamo questa operazione ogni volta, oppure la facciamo fare in <strong>automatico</strong>. Per farla in automatico apriamo il file <code>rc.local</code>:<br />
<code># nano /etc/rc.local</code><br />
e inseriamo questo prima di <code>exit 0</code>:</p>
<pre>---8&#60;---
chmod a+w /sys/class/leds/asus::mail/brightness
---8&#60;---</pre>
<p>Perfetto.</p>
<p>Ora possiamo utilizzare quel file <strong>tranquillamente</strong>, facciamo subito <strong>una prova</strong> dal terminale:<br />
<code>$ echo 1 &#62; /sys/class/leds/asus\:\:mail/brightness</code><br />
e il LED dovrebbe ora essere <strong>acceso</strong>.</p>
<p><strong>Spegniamolo</strong> con:<br />
<code>$ echo 0 &#62; /sys/class/leds/asus\:\:mail/brightness</code><br />
e andiamo a sistemarci <a href="http://checkgmail.sourceforge.net/">CheckGmail</a> e visto che ci siamo anche <a href="http://www.mozilla-europe.org/it/products/thunderbird/">Thunderbird</a>.</p>
<p><img src="http://idl3.wordpress.com/files/2009/11/checkgmail-led.png" alt="checkgmail-led" title="checkgmail-led" width="312" height="107" class="alignright size-thumbnail wp-image-987" /><strong>CHECKGMAIL</strong> &#8211; Apriamo le <strong>preferenze di CheckGmail</strong> e cerchiamo due <em>form</em>, il primo e&#8217; &#8220;<em>Comando da eseguire per le nuove mail</em>&#8220;, qui ci inseriamo:</p>
<pre>echo 1 &#62; /sys/class/leds/asus\:\:mail/brightness</pre>
<p>poi il campo subito sotto &#8220;<em>Comando da eseguire quando non ci sono mail</em>&#8220;, dove invece inseriremo:</p>
<pre>echo 0 &#62; /sys/class/leds/asus\:\:mail/brightness</pre>
<p>Date l&#8217;<em>OK</em> e avete finito. Ogni volta che vi arrivera&#8217; un&#8217;email al vostro account Gmail e CheckGmail lo rilevera&#8217;, ve lo comunichera&#8217; con l&#8217;<strong>accensione del LED</strong> del vostro portatile oltre alla normale notifica a Desktop.</p>
<p><img src="http://idl3.wordpress.com/files/2009/11/thunderbird.jpg?w=150" alt="thunderbird" title="thunderbird" width="150" height="149" class="alignleft size-thumbnail wp-image-989" /><strong>THUNDERBIRD/ICEDOVE</strong> &#8211; Adesso vediamo come far fare la <strong>stessa cosa anche con Thunderbird</strong>. Il modo piu&#8217; semplice e&#8217; quello di scaricarvi l&#8217;<strong>apposito add-ons</strong>. Si chiama <a href="https://addons.mozilla.org/en-US/thunderbird/addon/4540">Thunderled</a>, scaricatelo e installatelo con la solita procedura di Thunderbird: <em>Strumenti &#62; Componenti aggiuntivi &#62; Installa&#8230;</em></p>
<p><img src="http://idl3.wordpress.com/files/2009/11/thunderled.png?w=150" alt="thunderled" title="thunderled" width="150" height="103" class="alignright size-thumbnail wp-image-990" />Una volta installato <strong>Thunderled</strong> dovete cercarlo nel vostro <acronym title="Hard Disk">HD</acronym>. Trovandosi in una <strong>directory nascosta</strong>, quando aprite il vostro gestore di file e directory (Nautilus, Konqueror, Thunar, o altro) dovete rendere visibili i file e le directory nascoste con <strong>[Ctrl] + [h]</strong>.</p>
<p>Andiamo ora <strong>alla ricerca del file che ci serve</strong>, solitamente lo trovate in <code>/home/UTENTE/.mozilla-thunderbird/BLABLABLA.default/extensions/</code></p>
<p>A questo punto vi trovate <strong>varie directory</strong> <code>{BLABLABLA-BLABLABLA-BLABLABLA}</code> tante quante sono le <strong>estensioni</strong> del vostro Thunderbird. Se <strong>Thunderled</strong> e&#8217; stata l&#8217;<strong>ultima</strong> estensione ad essere installata con tutta probabilita&#8217; <strong>la directory giusta e&#8217; l&#8217;ultima</strong>. Per esserne certi apriamo la directory e leggiamo il file <code>chrome.manifest</code>.</p>
<p>Una volta <strong>accertato</strong> di trovarci nella giusta directory spostiamoci nella <strong>sottodirectory</strong> <code>chrome</code>. Troveremo il file <code>thunderled.jar</code>, che nonostante l&#8217;estensione e&#8217; un semplice <strong>file ZIP</strong>. Dunque <strong>rinominiamolo</strong> (<code>thunderled.zip</code>) ed <strong>estraiamolo</strong>. Otterremo <strong>tre directory</strong>, entriamo in <code>content/thunderled</code> e <strong>apriamo</strong> il file <code>overlay.js</code> col nostro <strong><em>editor</em> di testo</strong>.</p>
<p>Cerchiamo <strong>queste righe</strong>:</p>
<pre>[...]
else{
        file.initWithPath("/bin/sh");
        if(x==1)
                var args = ["-c","echo 1 \&#62; /proc/acpi/asus/mled"];
        else
                var args = ["-c","echo 0 \&#62; /proc/acpi/asus/mled"];
        }
        var process = Components.classes["@mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess);
        process.init(file);
        process.run(false, args, args.length);
        }
[...]</pre>
<p>e <strong>sostituiamole con queste</strong>:</p>
<pre>---8&#60;---
else{
        file.initWithPath("/bin/sh");
        if(x==1)
                var args = ["-c","echo 1 \&#62; /sys/class/leds/asus::mail/brightness"];
        else
                var args = ["-c","echo 0 \&#62; /sys/class/leds/asus::mail/brightness"];
        }
        var process = Components.classes["@mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess);
        process.init(file);
        process.run(false, args, args.length);
        }
---8&#60;---</pre>
<p><strong>Salvate ed uscite</strong>. Adesso dovete <strong>ricreare l&#8217;archivio</strong> <code>thunderled.zip</code> e <strong>rinominarlo</strong> in <code>thunderled.jar</code>.</p>
<p>Finito. Da ora in poi ogni volta che Thunderbird scarichera&#8217; una nuova email vi <strong>si accendera&#8217; il LED del portatile</strong>.</p>
<hr />
<p style="text-align:right;"><a href="#content" title="torna su">[^] torna su</a>&#160;&#124;&#160;<a href="http://postli.com/post?u=http://idl3.wordpress.com/2009/11/10/tipsntricks-asus-e-il-led-delle-email/&#38;t=TipsnTricks: ASUS e il LED delle email" title="Post to Postli" style="color:blue;text-decoration:none;">post<span style="color:orange;">&#60;</span><span style="color:red;">li</span><span style="color:orange;">&#62;</span></a>&#160;&#124;&#160;<a href="http://www.wikio.it/vote?url=http://idl3.wordpress.com/2009/11/10/tipsntricks-asus-e-il-led-delle-email/" target="_blank"><img src="http://www.wikio.it/shared/img/vote/wikio2.gif" border="0" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Cambiar los permisos a los directorio sin afectar los permisos de los ficheros]]></title>
<link>http://flossblog.wordpress.com/2009/10/26/cambiar-los-permisos-a-los-directorio-sin-afectar-los-permisos-de-los-ficheros/</link>
<pubDate>Mon, 26 Oct 2009 16:00:04 +0000</pubDate>
<dc:creator>sedlav</dc:creator>
<guid>http://flossblog.wordpress.com/2009/10/26/cambiar-los-permisos-a-los-directorio-sin-afectar-los-permisos-de-los-ficheros/</guid>
<description><![CDATA[chmod no permite cambiar los permisos a todos los directorios, en una sola línea de comando, sin afe]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div style="line-height:172%;font-size:11px;">
<p>chmod no permite cambiar los permisos a todos los directorios, en una sola línea de comando, sin afectar los permisos de los ficheros y viceversa. ¿Cómo puedo lograr esto?</p>
<p>Debes combinar los comandos: find, xargs y chmod, por ejemplo: </p>
<h5>1. Para cambiar los permisos de los directorios (acceso total para el propietario y el grupo, 0 acceso para el resto) y mantener los permisos de los ficheros teclee:</h5>
<div style="border:1px dashed #CCCCCC;background-color:#F4F5F7;margin:5px 0;padding:8px 12px 8px 10px;">
<code>$ find /var/ftp -type d -print0 &#124; xargs -0 chmod -v 770</code>
</div>
<h5>2. Para cambiar los permisos de los fiecheros (acceso total para el propietario, lectura, escritura para el grupo, 0 acceso para el resto) y mantener los permisos de los directorios teclee:</h5>
<div style="border:1px dashed #CCCCCC;background-color:#F4F5F7;margin:5px 0;padding:8px 12px 8px 10px;">
<code>$ find /var/ftp -type f -print0 &#124; xargs -0 chmod -v 760</code>
</div>
<h3 style="padding-bottom:3px;margin-bottom:3px;">Lecturas recomendadas</h3>
<ul style="list-style:none;padding-top:0;margin-top:0;margin-left:5px;padding-left:0;">
<li>- man find</li>
<li>- man xargs</li>
<li>- man chmod</li>
</ul>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[HowTo: i permessi su GNU/Linux]]></title>
<link>http://idl3.wordpress.com/2009/10/17/howto-i-permessi-su-gnulinux/</link>
<pubDate>Sat, 17 Oct 2009 09:29:21 +0000</pubDate>
<dc:creator>idl3</dc:creator>
<guid>http://idl3.wordpress.com/2009/10/17/howto-i-permessi-su-gnulinux/</guid>
<description><![CDATA[Sapete bene che GNU/Linux &#8211; come un qualunque sistema unix-like &#8211; permette un ottimo con]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Sapete bene che <strong>GNU/Linux</strong> &#8211; come un qualunque sistema <a href="http://it.wikipedia.org/wiki/Unix-like">unix-like</a> &#8211; permette un ottimo controllo dei vari aspetti del <em>software</em> e dell&#8217;<em>hardware</em> (nei limiti di <a href="http://fhf.it/progetti/progetto-untrusted/definizione-di-hardware-libero">liberta&#8217;</a> di quest&#8217;ultimo). Ma questo puo&#8217; avvenire solo se <strong>i dati sono espressi in file</strong> (grazie al <em>filesystem</em>). Ogni file ha un <strong>utente proprietari</strong>o, puo&#8217; avere un <strong>gruppo</strong> associato e dei <a href="http://it.wikipedia.org/wiki/Permessi_(Unix)">permessi</a>. Questi permessi ovviamente sono <strong>modificabili</strong>, come modificabile e&#8217; il proprietario e il gruppo [<a href="#ipsgl1">1</a>]. Vediamo come fare[<a name="ipsgla">.</a>]</p>
<p><img src="http://idl3.wordpress.com/files/2009/10/vietato-accesso.gif?w=150" alt="vietato-accesso" title="vietato-accesso" width="150" height="120" class="alignleft size-thumbnail wp-image-440" />Il magico strumento che ci consente di cambiare i permessi e&#8217; <code>chmod</code>, leggete il <strong>manuale</strong>:<br />
<code>$ man chmod</code></p>
<p>Ora portatevi da terminale in una qualunque directory e scrivete quanto segue:<br />
<code>$ ls -l</code><br />
l&#8217;opzione <code>l</code> consente di <strong>mostrare permessi e l&#8217;utente</strong> di file e directory, ad esempio:</p>
<pre>totale 30944
drwxr-xr-x 2 luca luca     4096  6 ott 08:37 Statistiche
-rw-r--r-- 1 luca luca 19736596 documento-regione.pdf
[...]</pre>
<p>Come potete vedere nell&#8217;elenco (tagliato) c&#8217;e&#8217; una <strong>directory</strong> (Statistiche) e un <strong>file</strong> (documento-regione.pdf) entrambi di proprieta&#8217; dell&#8217;utente <code>luca</code>. La lettera <code>d</code> indica che si tratta di una <strong>directory</strong>, ma cio&#8217; che ci interessa e&#8217; il seguito, abbiamo dunque <strong>rwxr</strong>-<strong>xr</strong>-<strong>x</strong> per la directory e -<strong>rw</strong>-<strong>r</strong>&#8211;<strong>r</strong>&#8211; per il file.</p>
<p>Possiamo dividere in tre gruppi di permessi:</p>
<pre>+------------------------------------------------+
&#124; utente proprietario &#124;    gruppo   &#124;    altro   &#124;
&#124;---------------------&#124;-------------&#124;------------&#124;
&#124; -rwx------          &#124;  ----rwx--- &#124; -------rwx &#124;
+------------------------------------------------+</pre>
<p>esattamente in quest&#8217;ordine. La lettera <strong>w</strong> significa permesso di <strong>scrittura</strong>, la lettera <strong>r</strong> permesso di <strong>lettura</strong> e la lettera <strong>x</strong> permesso di <strong>esecuzione</strong>. Tornando all&#8217;esempio, l&#8217;<strong>utente proprietario</strong> ha permesso di lettura scrittura ed esecuzione per la directory, permesso di lettura e scrittura per il file Pdf.</p>
<p>Il metodo piu&#8217; semplice dell&#8217;utilizzo di <code>chmod</code> e&#8217; attraverso le <strong>lettere</strong>. Quindi se ad esempio volessimo dare il permesso di lettura e scrittura su un file all&#8217;utente proprietario, dovremmo dare questo <strong>comando</strong>:<br />
<code>$ chmod u+rw file</code><br />
se volessimo dare il permesso di esecuzione, lettura e scrittura su un file al gruppo:<br />
<code>$ chmod g+rwx file</code><br />
se volessimo dare il permesso di lettura su un file agli altri:<br />
<code>$ chmod o+r file</code></p>
<p>Se su un file vogliamo dare <strong>permesso di lettura a tutti</strong>:<br />
<code>$ chmod ugo+r file</code></p>
<p>Tenete conto che questi comandi sono <strong>aggiuntivi</strong>, <strong>non esclusivi</strong>. Dunque se l&#8217;utente proprietario ha il permesso di lettura e noi diamo questo comando:<br />
<code>$ chmod u+w file</code><br />
l&#8217;utente proprietario avra&#8217; sia il permesso di lettura (che aveva prima) sia il permesso di scrittura che abbiamo appena aggiunto. Se vogliamo che i permessi che diamo siano esclusivi, dobbiamo (ad esempio, ci sono anche altri modi) prima <strong>togliere completamente tutti i permessi su quel file</strong>, e lo dobbiamo fare da utente <strong>root</strong>:<br />
<code># chmod a-rwx file</code><br />
solo dopo possiamo <strong>dare i permessi a chi vogliamo</strong>, ad esempio permesso di lettura e scrittura al proprietario (ne&#8217; il gruppo ne&#8217; gli altri avranno alcun permesso su quel file):<br />
<code># chmod u+rx file</code></p>
<p>Ovviamente possiamo anche <strong>togliere un determinato permesso</strong> a un utente/gruppo/altri. Anziche&#8217; il <strong>piu&#8217;</strong> dobbiamo mettere il segno <strong>meno</strong>. Se ad esempio vogliamo togliere il permesso di scrittura su un file agli altri, dovremmo dare questo comando:<br />
<code>$ chmod o-w file</code></p>
<p>Oltre alle lettere, <strong>possiamo vedere i permessi in ottali</strong>:<br />
<strong>0</strong> = nessun permesso (-);<br />
<strong>1</strong> = esecuzione (x);<br />
<strong>2</strong> = scrittura (w);<br />
<strong>3</strong> = 2 + 1 = scrittura ed esecuzione (wx);<br />
<strong>4</strong> = lettura (r);<br />
<strong>5</strong> = 4 + 1 = lettura ed esecuzione (rx);<br />
<strong>6</strong> = 4 + 2 = lettura e scrittura (rw);<br />
<strong>7</strong> = 4 + 2 + 1 = lettura, scrittura ed esecuzione (rwx).</p>
<p>I permessi da dare attraverso chmod in ottali e&#8217; rappresentato da una terna di numeri (in realta&#8217; quattro, ma il primo e&#8217; uno 0 e lo possiamo omettere), ogni singolo numero della terna rappresenta i permessi per un utente. La terna di numeri ABC rappresenta dunque i permessi dati a utente proprietario (A), gruppo (B) e altri (C). Un esempio sara&#8217; senz&#8217;altro piu&#8217; chiaro.</p>
<p>Se vogliamo dare il permesso di lettura scrittura ed esecuzione su un file per il proprietario, di lettura e scrittura per il gruppo e di sola lettura per gli altri, dovremmo dare <strong>questo comando</strong>:<br />
<code>$ chmod 764 file</code><br />
se agli altri non volessimo dare alcun permesso su quel file il comando sara&#8217; questo:<br />
<code>$ chmod 760 file</code><br />
per le varie combinazioni basta <strong>guardare la tabellina</strong> che ho scritto sopra.</p>
<p>Poniamo ad esempio che i permessi di un dato file siano questi (<code>-rw-r--r--</code>), tradotto in <strong>ottale</strong> avremo (<code>644</code>). Se vogliamo <strong>togliere il permesso</strong> di lettura al gruppo e agli altri e togliere il permesso di scrittura al proprietario basta scrivere:<br />
<code>$ chmod 400 file</code><br />
per <strong>ripristinare</strong> i permessi come prima basta scrivere:<br />
<code>$ chmod 644 file</code></p>
<p>Se anziche&#8217; su un singolo file volessimo agire su <strong>tutti i file contenuti nella directory</strong>, dando permesso di lettura, scrittura ed esecuzione a tutti, il comando sara&#8217;:<br />
<code>$ chmod -R 777 directory/</code><br />
se vogliamo cambiare i permessi solo alla directory (lettura scrittura ed esecuzione al proprietario; esecuzione e lettura al gruppo; esecuzione e scrittura agli altri):<br />
<code>$ chmod 753 directory/</code></p>
<p>Se vogliamo <strong>cambiare i permessi di un file di cui non siamo proprietari</strong>, o facciamo login con l&#8217;utente proprietario o usiamo l&#8217;utente <strong>root</strong>. Utilizzare <code>chmod</code> da root e&#8217; comunque un&#8217;operazione da fare con <strong>molta attenzione</strong> per evitare spiacevoli conseguenze.</p>
<p>Se vogliamo dare il permesso di lettura, scrittura ed esecuzione al solo utente proprietario, lasciando il gruppo e gli altri senza alcun permesso, il <strong>comando</strong> sara&#8217;:<br />
<code># chmod 700 file</code><br />
in realta&#8217; sarebbe piu&#8217; corretto il comando:<br />
<code># chmod 0700 file</code><br />
ma lo zero come prima cifra si puo&#8217; omettere, anzi, <strong>tutte le lettere mancanti a partire da sinistra vengono considerate come 0</strong>. Quindi un ipotetico permesso <code>5</code> su un file, significa che utente proprietario e gruppo non hanno nessun permesso, mentre gli altri hanno il permesso di lettura ed esecuzione.</p>
<p><img src="http://idl3.wordpress.com/files/2009/10/vendesi_.jpg?w=150" alt="vendesi_" title="vendesi_" width="150" height="100" class="alignright size-thumbnail wp-image-441" />Possiamo anche <strong>cambiare l&#8217;utente proprietario di un file</strong>, col comando <code>chown</code>, se ad esempio il file <code>documento.pdf</code> e&#8217; di proprieta&#8217; dell&#8217;utente <code>franco</code>, ma voglio farlo diventare di <code>luca</code> (il file non franco), daro&#8217; questo comando (da root ovviamente):<br />
<code># chown luca documento.pdf</code></p>
<p>Posso anche farlo per un&#8217;intera <strong>directory</strong> e i file in essa contenuti:<br />
<code># chown luca -R directory</code></p>
<p>Se vogliamo invece cambiare il gruppo, usiamo il comando <code>chgrp</code>:<br />
<code># chgrp  uffriscossioni  documento.pdf</code><br />
Possiamo anche cambiare sia l&#8217;utente sia il gruppo proprietari del file:<br />
<code># chown  luca:uffstat  documento.pdf</code></p>
<p>Il comando <code>chmod</code> puo&#8217; essere inserito all&#8217;interno di uno <strong>script in bash</strong> per semplificare determinate operazioni ricorsive. Ad esempio con <a href="http://guide.debianizzati.org/index.php/Bash_Script:_Cambiare_i_permessi_ricorsivamente">questo script</a> possiamo <strong>con un unico comando</strong> dare <strong>permessi diversi ai file rispetto alle directory</strong>, ad esempio il comando:<br />
<code>$ chmodr go-wx g-w</code><br />
toglie il permesso di scrittura ed esecuzione al gruppo e agli altri sui file, e toglie il permesso di scrittura sulla directory al gruppo.</p>
<p>Ovviamente per usare il comando <code>chmodr</code> dovete copiare lo script sul file che chiameremo <code>chmodr.sh</code> e renderlo eseguibile (come ormai dovreste saper fare):<br />
<code>$ chmod a+x chmodr.sh</code></p>
<p>[<a name="ipsgl1">1</a>] <strong>ATTENZIONE</strong>: evitate di giocare con i permessi, pena l&#8217;incasinamento di file importanti e forse l&#8217;esplosione del Pianeta Terra. Nel caso facciate casini di piccole dimensioni, sappiate che generalmente i permessi per i file sono impostati a 640 e per le directory a 750, pero&#8217; quando si fanno casini li si fa su file e directory diverse (directory e file  con permessi a 700 trasformate in 600 ad esempio) [<a href="#ipsgla">^</a>]</p>
<hr />
<p style="text-align:right;"><a href="#content" title="torna su">[^] torna su</a>&#160;&#124;&#160;<a href="http://postli.com/post?u=http://idl3.wordpress.com/2009/10/17/howto-i-permessi-su-gnulinux/&#38;t=HowTo: i permessi su GNULinux" title="Post to Postli" style="color:blue;text-decoration:none;">post<span style="color:orange;">&#60;</span><span style="color:red;">li</span><span style="color:orange;">&#62;</span></a>&#160;&#124;&#160;<a href="http://www.wikio.it/vote?url=http://idl3.wordpress.com/2009/10/17/howto-i-permessi-su-gnulinux/" target="_blank"><img src="http://www.wikio.it/shared/img/vote/wikio2.gif" border="0" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Make a Unix Shell File Executable...]]></title>
<link>http://space8.wordpress.com/2009/10/16/make-a-unix-shell-file-executable/</link>
<pubDate>Sat, 17 Oct 2009 05:12:38 +0000</pubDate>
<dc:creator>space8</dc:creator>
<guid>http://space8.wordpress.com/2009/10/16/make-a-unix-shell-file-executable/</guid>
<description><![CDATA[If you&#8217;ve written a shell script, there are a couple of things you need to do before you can e]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>If you&#8217;ve written a shell script, there are a couple of things you need to do before you can execute it from the terminal command line. First change the permissions:</p>
<p style="padding-left:30px;">chmod 755 filename</p>
<p>and then make it executable:</p>
<p style="padding-left:30px;">chmod +x filename</p>
<p>If your on a Mac, you can also add an extension that will execute the file by double-clicking:</p>
<p style="padding-left:30px;">filename.command</p>
<p>Hope this helps&#8230;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Paso a Paso: Instalar mas tipos de letras en Ubuntu, y aplicarla en gambas2:  hacer un reloj digital ]]></title>
<link>http://jsbsan.wordpress.com/2009/10/12/instalar-mas-tipos-de-letras-y-hacer-un-reloj-digital/</link>
<pubDate>Mon, 12 Oct 2009 11:07:16 +0000</pubDate>
<dc:creator>jsbsan</dc:creator>
<guid>http://jsbsan.wordpress.com/2009/10/12/instalar-mas-tipos-de-letras-y-hacer-un-reloj-digital/</guid>
<description><![CDATA[Hola a todos. Combinando la informacion de tres paginas web, vamos a: 1) Buscar nuevos tipos de letr]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hola a todos.</p>
<p>Combinando la informacion de tres paginas web, vamos a:<br />
1) Buscar nuevos tipos de letras (TTF) para nuestro linux (Ubuntu, en mi caso).<br />
2) Instalarlas en nuestro ordenador<br />
3) Hacer un reloj digital, con el tipo de letra que acabamos de instalar.</p>
<p>Nota importante: darle las gracias a los autores de las paginas a las que me voy a referir.</p>
<p><br />
Pasamos a hacerlo:<br />
1) Buscar nuevos tipos de letras:<br />
<a href="http://fonts500.com/">http://fonts500.com/</a><br />
Desde aqui podemos descargarnos la que mas nos guste. Por ejemplo:  ALLSTAR, pulsamos sobre ella y nos saldra el cuadro de guardar:</p>
<p><a href="http://jsbsan.wordpress.com/files/2009/10/descarga-tipo-de-letra-1.png"><img src="http://jsbsan.wordpress.com/files/2009/10/descarga-tipo-de-letra-1.png" alt="DESCARGA TIPO DE LETRA 1" title="DESCARGA TIPO DE LETRA 1" width="500" height="432" class="alignnone size-full wp-image-897" /></a></p>
<p>La extraemos en una carpeta que crearemos nueva llamada <strong>fuentes</strong>:</p>
<p><a href="http://jsbsan.wordpress.com/files/2009/10/00-extraer-letra-2.jpg"><img src="http://jsbsan.wordpress.com/files/2009/10/00-extraer-letra-2.jpg" alt="00 extraer letra 2" title="00 extraer letra 2" width="500" height="398" class="alignnone size-full wp-image-900" /></a></p>
<p>Otras direcciones para obtener tipos de letras:<br />
<a href="http://www.letramania.com/index.htm">http://www.letramania.com/index.htm</a><br />
<a href="http://www.fontreactor.com/">http://www.fontreactor.com/</a><br />
<a href="http://recursosgratis.com/fuentesgratis/">http://recursosgratis.com/fuentesgratis/</a><br />
<a href="http://www.creamundo.com/">http://www.creamundo.com/</a></p>
<p>2) Instalar el nuevo tipo de letra:<br />
En la direccion <a href="http://nideaderedes.urlansoft.com/2006/11/14/instalar-nuevos-tipos-de-letras-en-ubuntu/">http://nideaderedes.urlansoft.com/2006/11/14/instalar-nuevos-tipos-de-letras-en-ubuntu/</a>, nos explican como instalar tipos de letras <strong>ttf</strong>, la que nos hemos descargado es de ese tipo.</p>
<p>Crearemos (si no esta creado) esta carpeta <strong>font-install</strong> en  /usr/share/fonts/truetype/ :<br />
<code><br />
sudo mkdir -p /usr/share/fonts/truetype/font-install<br />
</code></p>
<p>Crearemos un archivo llamado &#8220;instalador&#8221;, (por ejemplo con el Editor de textos <strong>gedit</strong>), pegaremos el siguiente código:<br />
<code>#!/bin/bash<br />
#<br />
# This script helps to install fonts<br />
#<br />
# Set your default font storage directory here<br />
##DEFAULT_DIR="$HOME/fonts"<br />
DEFAULT_DIR=`pwd`<br />
# Set the default font installation directory here<br />
DEFAULT_DEST="/usr/share/fonts/truetype/font-install"<br />
# Don't edit anything below unless you know what you're doing.<br />
echo "¿En qué directorio están las fuentes?"<br />
echo -n "[$DEFAULT_DIR] "<br />
read DIR<br />
echo<br />
echo "¿Cuál es la extensión (sin el punto) de las fuentes? (ojo, no es lo mismo ttf que TTF)"<br />
echo -n "[ttf] "<br />
read EXT<br />
echo<br />
echo "¿Dónde instalo las fuentes?"<br />
echo "¡NO CAMBIES ESTO A NO SER QUE SEPAS LO QUE HACES!"<br />
echo -n "[$DEFAULT_DEST] "<br />
read DEST<br />
if [ -z "$DIR" ]; then<br />
    DIR="$DEFAULT_DIR"<br />
fi<br />
if [ -z "$EXT" ]; then<br />
    EXT="ttf"<br />
fi<br />
if [ -z "$DEST" ]; then<br />
    DEST="$DEFAULT_DEST"<br />
fi<br />
sudo -v<br />
if [ $? != 0 ]; then<br />
    echo "Imposible conseguir los privilegios necesarios. Saliendo..."<br />
    echo -n "Press  to continue. "<br />
    read WER<br />
    exit $?<br />
fi<br />
echo<br />
echo<br />
if [ ! -d "$DIR" ]; then<br />
    echo "El directorio $DIR no existe. Saliendo..."<br />
    echo -n "Press  to continue. "<br />
    read SDF<br />
    exit 2<br />
fi<br />
if [ ! -d "$DEST" ]; then<br />
    echo "El directorio $DIR no existe. Saliendo..."<br />
    echo -n "Press  to continue. "<br />
    read DFG<br />
    exit 1<br />
fi<br />
echo "Copiando fuentes..."<br />
cd "$DIR"<br />
for i in *."$EXT"; do<br />
    sudo cp -iv "$i" "$DEST"<br />
done<br />
echo<br />
echo<br />
echo "Actualizando la caché de fuentes..."<br />
sudo fc-cache -fv<br />
if [ $? != 0 ]; then<br />
    echo "Error actualizando la caché de fuentes. Tus fuentes no se han instalando correctamente. Prueba a ejecutar sudo fc-cache -fv manualmente. Saliendo..."<br />
    echo -n "Pulsa  para salir. "<br />
    read FSF<br />
    exit $?<br />
fi<br />
echo<br />
echo<br />
echo "Proceso terminado."<br />
echo<br />
echo "Probablemente necesitarás reiniciar los programas que están en marcha para poder usar estas fuentes."<br />
echo -n "Pulsa  para salir. "<br />
read WERT<br />
exit 0<br />
</code><br />
Lo guardamos en la carpeta <strong>fuentes</strong>,con el nombre de <strong>instalador</strong><br />
<a href="http://jsbsan.wordpress.com/files/2009/10/01-guardando-instalador.jpg"><img src="http://jsbsan.wordpress.com/files/2009/10/01-guardando-instalador.jpg" alt="01 guardando instalador" title="01 guardando instalador" width="500" height="343" class="alignnone size-full wp-image-906" /></a><br />
 lo haremos ejecutable:<br />
<strong> chmod +x instalador</strong><br />
y lo ejecutaremos:<br />
<strong>.\instalador</strong><br />
pulsamos ENTER  cada vez que nos pregunte algo. Obtendremos una salida tal como esta:<br />
<code><br />
<strong>$ ./instalador </strong><br />
¿En qué directorio están las fuentes?<br />
[/home/uno/fuentes]  <strong>(PULSA ENTER)</strong><br />
¿Cuál es la extensión (sin el punto) de las fuentes? (ojo, no es lo mismo ttf que TTF)<br />
[ttf]  <strong>(PULSA ENTER)</strong><br />
¿Dónde instalo las fuentes?<br />
¡NO CAMBIES ESTO A NO SER QUE SEPAS LO QUE HACES!<br />
[/usr/share/fonts/truetype/font-install]  <strong>(PULSA ENTER)</strong><br />
Copiando fuentes...<br />
«All Star Resort.ttf» -&#62; «/usr/share/fonts/truetype/font-install/All Star Resort.ttf»<br />
Actualizando la caché de fuentes...<br />
/usr/share/fonts: caching, new cache contents: 0 fonts, 3 dirs<br />
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 6 dirs<br />
/usr/share/fonts/X11/100dpi: caching, new cache contents: 0 fonts, 0 dirs<br />
/usr/share/fonts/X11/75dpi: caching, new cache contents: 0 fonts, 0 dirs<br />
/usr/share/fonts/X11/Type1: caching, new cache contents: 43 fonts, 0 dirs<br />
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs<br />
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs<br />
/usr/share/fonts/X11/misc: caching, new cache contents: 0 fonts, 0 dirs<br />
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs<br />
/usr/share/fonts/truetype: caching, new cache contents: 2 fonts, 19 dirs<br />
/usr/share/fonts/truetype/arphic: caching, new cache contents: 4 fonts, 0 dirs<br />
/usr/share/fonts/truetype/font-install: caching, new cache contents: 1 fonts, 0 dirs<br />
/usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs<br />
/usr/share/fonts/truetype/latex-xft-fonts: caching, new cache contents: 7 fonts, 0 dirs<br />
/usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs<br />
/usr/share/fonts/truetype/sazanami: caching, new cache contents: 2 fonts, 0 dirs<br />
/usr/share/fonts/truetype/thai: caching, new cache contents: 51 fonts, 0 dirs<br />
/usr/share/fonts/truetype/ttf-arabeyes: caching, new cache contents: 39 fonts, 0 dirs<br />
/usr/share/fonts/truetype/ttf-bengali-fonts: caching, new cache contents: 5 fonts, 0 dirs<br />
/usr/share/fonts/truetype/ttf-bitstream-vera: caching, new cache contents: 10 fonts, 0 dirs<br />
/usr/share/fonts/truetype/ttf-dejavu: caching, new cache contents: 21 fonts, 0 dirs<br />
/usr/share/fonts/truetype/ttf-indic-fonts-core: caching, new cache contents: 11 fonts, 0 dirs<br />
/usr/share/fonts/truetype/ttf-kannada-fonts: caching, new cache contents: 7 fonts, 0 dirs<br />
/usr/share/fonts/truetype/ttf-lao: caching, new cache contents: 1 fonts, 0 dirs<br />
/usr/share/fonts/truetype/ttf-liberation: caching, new cache contents: 12 fonts, 0 dirs<br />
/usr/share/fonts/truetype/ttf-oriya-fonts: caching, new cache contents: 2 fonts, 0 dirs<br />
/usr/share/fonts/truetype/ttf-telugu-fonts: caching, new cache contents: 2 fonts, 0 dirs<br />
/usr/share/fonts/truetype/unfonts: caching, new cache contents: 4 fonts, 0 dirs<br />
/usr/share/fonts/truetype/wqy: caching, new cache contents: 2 fonts, 0 dirs<br />
/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 1 dirs<br />
/usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0 dirs<br />
/usr/share/X11/fonts: skipping, no such directory<br />
/usr/local/share/fonts: caching, new cache contents: 0 fonts, 0 dirs<br />
/home/uno/.fonts: skipping, no such directory<br />
/usr/share/fonts/truetype/ttf-malayalam-fonts: skipping, no such directory<br />
/var/cache/fontconfig: cleaning cache directory<br />
/home/uno/.fontconfig: cleaning cache directory<br />
/home/uno/.fontconfig: invalid cache file: 63a4f2800cb770cfbf6fd5bd92ba9af9-x86.cache-2<br />
fc-cache: succeeded<br />
Proceso terminado.<br />
Probablemente necesitarás reiniciar los programas que están en marcha para poder usar estas fuentes.<br />
Pulsa  para salir.<br />
</code></p>
<p>Con todo esto ya tendremos instalada el nuevo tipo de letra.</p>
<p>3) Hacer un reloj digital, con el tipo de letra que acabamos de instalar.<br />
En la pagina:<a href="http://gambaslinux.wordpress.com/2007/12/11/%C2%BFcomo-construir-un-reloj-digital/"> http://gambaslinux.wordpress.com/2007/12/11/%C2%BFcomo-construir-un-reloj-digital/</a><br />
nos explican como hacer un reloj digital.<br />
Una vez realizado lo que nos cuentan, en la etiqueta1, vamos a cambiar el tipo de letra:<br />
<a href="http://jsbsan.wordpress.com/files/2009/10/02-cambio-de-letra-de-un-textbox.jpg"><img src="http://jsbsan.wordpress.com/files/2009/10/02-cambio-de-letra-de-un-textbox.jpg" alt="02 cambio de letra de un textbox" title="02 cambio de letra de un textbox" width="500" height="319" class="alignnone size-full wp-image-911" /></a></p>
<p>Y ejecutamos el código obtenemos nuestro reloj digital con el tipo de letra &#8220;ALLSTAR&#8221;:<br />
<a href="http://jsbsan.wordpress.com/files/2009/10/03-reloj-final.jpg"><img src="http://jsbsan.wordpress.com/files/2009/10/03-reloj-final.jpg" alt="03 reloj final" title="03 reloj final" width="381" height="149" class="alignnone size-full wp-image-912" /></a></p>
<p> Bueno, espero que os haya gustado esta combinación de información de varias paginas web, y de nuevo darle las gracias a los autores de las paginas a las que me he referido, sin ellas no hubiera podido hacerlo.</p>
<p>Saludos, Julio</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[VSFTPD (Installation &amp; Configuration)]]></title>
<link>http://wonggoblog.wordpress.com/2009/08/27/vsftpd-install-configuration/</link>
<pubDate>Thu, 27 Aug 2009 09:40:33 +0000</pubDate>
<dc:creator>wonggoblog</dc:creator>
<guid>http://wonggoblog.wordpress.com/2009/08/27/vsftpd-install-configuration/</guid>
<description><![CDATA[VSFTPD (very secure ftp daemon) adalah salah satu ftp daemon yang biasa dipakai pada mesin berbasisk]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>VSFTPD (very secure ftp daemon) adalah salah satu ftp daemon yang biasa dipakai pada mesin berbasiskan UNIX. VSFTPD mendukung berbagai fitur diantaranya:</p>
<ul>
<li>Virtual IP configurations</li>
<li>Virtual users</li>
<li>Standalone or inetd operation</li>
<li>Powerful per-user configurability</li>
<li>Bandwidth throttling</li>
<li>Per-source-IP configurability</li>
<li>Per-source-IP limits</li>
<li>IPv6</li>
<li>Encryption support through SSL integration</li>
</ul>
<p><!--more--></p>
<p>info lebih lanjut menegenai vsftpd bisa dilihat di <a href="http://vsftpd.beasts.org/#about">http://vsftpd.beasts.org/#about</a>.</p>
<p>FTP sendiri merupakan singkatan dari File Transfer Protocol. FTP merupakan sebuah aplikasi yang berguna untuk transfer file antar komputer yang terhubung jaringan.</p>
<p>Instalasi dan konfigurasi di sini saya lakukan dalam mesin dengan Sistem Operasi FreeBSD.</p>
<p><strong>INSTALASI</strong></p>
<p>Saya memilih instalasi melalui  ports. Pertama pastikan vsftpd ada di koleksi port anda. Saya melengkapi koleksi port melalui sysinstall. pilih configure -&#62; distribution -&#62; ports collection.</p>
<p>Masuk ke /usr/ports/ftp/vsftpd</p>
<blockquote><p>#cd /usr/ports/ftp/vsftpd</p>
<p>#make</p></blockquote>
<p>jika jaringan anda terdapat firewall, sebelum make setting proxy dulu</p>
<blockquote><p>#setenv HTTP_PROXY http://username:password@proxy.anda.com:3128</p>
<p>#setenv FTP_PROXY http://username:password@proxy.anda.com:3128</p></blockquote>
<p>ganti sesuai username, password (jika ada), alamat proxy, port proxy</p>
<p>cek user nobody jika belum ada tambahkan</p>
<p>mengecek user</p>
<blockquote><p>#vipw</p></blockquote>
<p>menambah user &#8216;nobody&#8217;</p>
<blockquote><p>#pw useradd nobody</p></blockquote>
<p>jika anda ingin membuat anonymous FTP, pastikan anda memiliki direktori /usr/ftp, jika belum</p>
<blockquote><p>#mkdir /usr/ftp</p></blockquote>
<p>tambahkan user ftp</p>
<blockquote><p>#pw useradd ftp -d /usr/ftp</p></blockquote>
<p>atur ownership</p>
<blockquote><p>#chown -R root:wheel /usr/ftp</p>
<p>#chmod -R 755 /usr/ftp</p></blockquote>
<p>pastikan juga ada direktori /usr/ftp/incoming, kemudian</p>
<blockquote><p>#chown -R ftp:ftp /usr/ftp/incoming</p>
<p>#chmod -R 755 /usr/ftp/incoming</p></blockquote>
<p>install vsftpd, pastikan anda berada di /usr/ports/ftp/vsftpd</p>
<blockquote><p>#make install clean</p></blockquote>
<p><strong>KONFIGURASI</strong></p>
<p>edit /usr/local/etc/vsftpd.conf</p>
<p><strong> boolean options<br />
</strong></p>
<blockquote><dl>
<dt><strong>allow_anon_ssl</strong> </dt>
<dd> Only applies if <strong>ssl_enable</strong> is active. If set to YES, anonymous users will be allowed to use secured SSL connections.Default: NO </dd>
<dt><strong>anon_mkdir_write_enable</strong> </dt>
<dd> If set to YES, anonymous users will be permitted to create new directories under certain conditions. For this to work, the option <strong>write_enable</strong> must be activated, and the anonymous ftp user must have write permission on the parent directory.Default: NO </dd>
<dt><strong>anon_other_write_enable</strong> </dt>
<dd> If set to YES, anonymous users will be permitted to perform write operations other than upload and create directory, such as deletion and renaming. This is generally not recommended but included for completeness.Default: NO </dd>
<dt><strong>anon_upload_enable</strong> </dt>
<dd> If set to YES, anonymous users will be permitted to upload files under certain conditions. For this to work, the option <strong>write_enable</strong> must be activated, and the anonymous ftp user must have write permission on desired upload locations. This setting is also required for virtual users to upload; by default, virtual users are treated with anonymous (i.e. maximally restricted) privilege.Default: NO </dd>
<dt><strong>anon_world_readable_only</strong> </dt>
<dd> When enabled, anonymous users will only be allowed to download files which are world readable. This is recognising that the ftp user may own files, especially in the presence of uploads.Default: YES </dd>
<dt><strong>anonymous_enable</strong> </dt>
<dd> Controls whether anonymous logins are permitted or not. If enabled, both the usernames <strong>ftp</strong> and <strong>anonymous</strong> are recognised as anonymous logins.Default: YES </dd>
<dt><strong>ascii_download_enable</strong> </dt>
<dd> When enabled, ASCII mode data transfers will be honoured on downloads.Default: NO </dd>
<dt><strong>ascii_upload_enable</strong> </dt>
<dd> When enabled, ASCII mode data transfers will be honoured on uploads.Default: NO </dd>
<dt><strong>async_abor_enable</strong> </dt>
<dd> When enabled, a special FTP command known as &#8220;async ABOR&#8221; will be enabled. Only ill advised FTP clients will use this feature. Additionally, this feature is awkward to handle, so it is disabled by default. Unfortunately, some FTP clients will hang when cancelling a transfer unless this feature is available, so you may wish to enable it.Default: NO </dd>
<dt><strong>background</strong> </dt>
<dd> When enabled, and vsftpd is started in &#8220;listen&#8221; mode, vsftpd will background the listener process. i.e. control will immediately be returned to the shell which launched vsftpd.Default: NO </dd>
<dt><strong>check_shell</strong> </dt>
<dd> Note! This option only has an effect for non-PAM builds of vsftpd. If disabled, vsftpd will not check /etc/shells for a valid user shell for local logins.Default: YES </dd>
<dt><strong>chmod_enable</strong> </dt>
<dd> When enabled, allows use of the SITE CHMOD command. NOTE! This only applies to local users. Anonymous users never get to use SITE CHMOD.Default: YES </dd>
<dt><strong>chown_uploads</strong> </dt>
<dd> If enabled, all anonymously uploaded files will have the ownership changed to the user specified in the setting <strong>chown_username</strong>.  This is useful from an administrative, and perhaps security, standpoint.Default: NO </dd>
<dt><strong>chroot_list_enable</strong> </dt>
<dd> If activated, you may provide a list of local users who are placed in a chroot() jail in their home directory upon login. The meaning is slightly different if chroot_local_user is set to YES. In this case, the list becomes a list of users which are NOT to be placed in a chroot() jail. By default, the file containing this list is /etc/vsftpd.chroot_list, but you may override this with the <strong>chroot_list_file</strong> setting.Default: NO </dd>
<dt><strong>chroot_local_user</strong> </dt>
<dd> If set to YES, local users will be (by default) placed in a chroot() jail in their home directory after login. <strong>Warning:</strong> This option has security implications, especially if the users have upload permission, or shell access. Only enable if you know what you are doing. Note that these security implications are not vsftpd specific. They apply to all FTP daemons which offer to put local users in chroot() jails.Default: NO </dd>
<dt><strong>connect_from_port_20</strong> </dt>
<dd> This controls whether PORT style data connections use port 20 (ftp-data) on the server machine. For security reasons, some clients may insist that this is the case. Conversely, disabling this option enables vsftpd to run with slightly less privilege.Default: NO (but the sample config file enables it) </dd>
<dt><strong>debug_ssl</strong> </dt>
<dd> If true, OpenSSL connection diagnostics are dumped to the vsftpd log file. (Added in v2.0.6).Default: NO </dd>
<dt><strong>delete_failed_uploads</strong> </dt>
<dd> If true, any failed upload files are deleted.  (Added in v2.0.7).Default: NO </dd>
<dt><strong>deny_email_enable</strong> </dt>
<dd> If activated, you may provide a list of anonymous password e-mail responses which cause login to be denied. By default, the file containing this list is /etc/vsftpd.banned_emails, but you may override this with the <strong>banned_email_file</strong> setting.Default: NO </dd>
<dt><strong>dirlist_enable</strong> </dt>
<dd> If set to NO, all directory list commands will give permission denied.Default: YES </dd>
<dt><strong>dirmessage_enable</strong> </dt>
<dd> If enabled, users of the FTP server can be shown messages when they first enter a new directory. By default, a directory is scanned for the file .message, but that may be overridden with the configuration setting <strong>message_file</strong>.Default: NO (but the sample config file enables it) </dd>
<dt><strong>download_enable</strong> </dt>
<dd> If set to NO, all download requests will give permission denied.Default: YES </dd>
<dt><strong>dual_log_enable</strong> </dt>
<dd> If enabled, two log files are generated in parallel, going by default to <strong>/var/log/xferlog</strong> and <strong>/var/log/vsftpd.log</strong>.  The former is a wu-ftpd style transfer log, parseable by standard tools. The latter is vsftpd&#8217;s own style log.Default: NO </dd>
<dt><strong>force_dot_files</strong> </dt>
<dd> If activated, files and directories starting with . will be shown in directory listings even if the &#8220;a&#8221; flag was not used by the client. This override excludes the &#8220;.&#8221; and &#8220;..&#8221; entries.Default: NO </dd>
<dt><strong>force_anon_data_ssl</strong> </dt>
<dd> Only applies if <strong>ssl_enable</strong> is activated. If activated, all anonymous logins are forced to use a secure SSL connection in order to send and receive data on data connections.Default: NO </dd>
<dt><strong>force_anon_logins_ssl</strong> </dt>
<dd> Only applies if <strong>ssl_enable</strong> is activated. If activated, all anonymous logins are forced to use a secure SSL connection in order to send the password.Default: NO </dd>
<dt><strong>force_local_data_ssl</strong> </dt>
<dd> Only applies if <strong>ssl_enable</strong> is activated. If activated, all non-anonymous logins are forced to use a secure SSL connection in order to send and receive data on data connections.Default: YES </dd>
<dt><strong>force_local_logins_ssl</strong> </dt>
<dd> Only applies if <strong>ssl_enable</strong> is activated. If activated, all non-anonymous logins are forced to use a secure SSL connection in order to send the password.Default: YES </dd>
<dt><strong>guest_enable</strong> </dt>
<dd> If enabled, all non-anonymous logins are classed as &#8220;guest&#8221; logins. A guest login is remapped to the user specified in the <strong>guest_username</strong> setting.Default: NO </dd>
<dt><strong>hide_ids</strong> </dt>
<dd> If enabled, all user and group information in directory listings will be displayed as &#8220;ftp&#8221;.Default: NO </dd>
<dt><strong>implicit_ssl</strong> </dt>
<dd> If enabled, an SSL handshake is the first thing expect on all connections (the FTPS protocol). To support explicit SSL and/or plain text too, a separate vsftpd listener process should be run.Default: NO </dd>
<dt><strong>listen</strong> </dt>
<dd> If enabled, vsftpd will run in standalone mode. This means that vsftpd must not be run from an inetd of some kind. Instead, the vsftpd executable is run once directly. vsftpd itself will then take care of listening for and handling incoming connections.Default: YES </dd>
<dt><strong>listen_ipv6</strong> </dt>
<dd> Like the listen parameter, except vsftpd will listen on an IPv6 socket instead of an IPv4 one. This parameter and the listen parameter are mutually exclusive.Default: NO </dd>
<dt><strong>local_enable</strong> </dt>
<dd> Controls whether local logins are permitted or not. If enabled, normal user accounts in /etc/passwd (or wherever your PAM config references) may be used to log in. This must be enable for any non-anonymous login to work, including virtual users.Default: NO </dd>
<dt><strong>lock_upload_files</strong> </dt>
<dd> When enabled, all uploads proceed with a write lock on the upload file. All downloads proceed with a shared read lock on the download file. WARNING! Before enabling this, be aware that malicious readers could starve a writer wanting to e.g. append a file.Default: YES </dd>
<dt><strong>log_ftp_protocol</strong> </dt>
<dd> When enabled, all FTP requests and responses are logged, providing the option xferlog_std_format is not enabled. Useful for debugging.Default: NO </dd>
<dt><strong>ls_recurse_enable</strong> </dt>
<dd> When enabled, this setting will allow the use of &#8220;ls -R&#8221;. This is a minor security risk, because a ls -R at the top level of a large site may consume a lot of resources.Default: NO </dd>
<dt><strong>mdtm_write</strong> </dt>
<dd> When enabled, this setting will allow MDTM to set file modification times (subject to the usual access checks).Default: YES </dd>
<dt><strong>no_anon_password</strong> </dt>
<dd> When enabled, this prevents vsftpd from asking for an anonymous password &#8211; the anonymous user will log straight in.Default: NO </dd>
<dt><strong>no_log_lock</strong> </dt>
<dd> When enabled, this prevents vsftpd from taking a file lock when writing to log files. This option should generally not be enabled. It exists to workaround operating system bugs such as the Solaris / Veritas filesystem combination which has been observed to sometimes exhibit hangs trying to lock log files.Default: NO </dd>
<dt><strong>one_process_model</strong> </dt>
<dd> If you have a Linux 2.4 kernel, it is possible to use a different security model which only uses one process per connection. It is a less pure security model, but gains you performance. You really don&#8217;t want to enable this unless you know what you are doing, and your site supports huge numbers of simultaneously connected users.Default: NO </dd>
<dt><strong>passwd_chroot_enable</strong> </dt>
<dd> If enabled, along with <strong>chroot_local_user</strong> , then a chroot() jail location may be specified on a per-user basis. Each user&#8217;s jail is derived from their home directory string in /etc/passwd. The occurrence of /./ in the home directory string denotes that the jail is at that particular location in the path.Default: NO </dd>
<dt><strong>pasv_addr_resolve</strong> </dt>
<dd> Set to YES if you want to use a hostname (as opposed to IP address) in the <strong>pasv_address</strong> option.Default: NO </dd>
<dt><strong>pasv_enable</strong> </dt>
<dd> Set to NO if you want to disallow the PASV method of obtaining a data connection.Default: YES </dd>
<dt><strong>pasv_promiscuous</strong> </dt>
<dd> Set to YES if you want to disable the PASV security check that ensures the data connection originates from the same IP address as the control connection. Only enable if you know what you are doing! The only legitimate use for this is in some form of secure tunnelling scheme, or perhaps to facilitate FXP support.Default: NO </dd>
<dt><strong>port_enable</strong> </dt>
<dd> Set to NO if you want to disallow the PORT method of obtaining a data connection.Default: YES </dd>
<dt><strong>port_promiscuous</strong> </dt>
<dd> Set to YES if you want to disable the PORT security check that ensures that outgoing data connections can only connect to the client. Only enable if you know what you are doing!Default: NO </dd>
<dt><strong>require_cert</strong> </dt>
<dd> If set to yes, all SSL client connections are required to present a client certificate. The degree of validation applied to this certificate is controlled by <strong>validate_cert</strong> (Added in v2.0.6).Default: NO </dd>
<dt><strong>require_ssl_reuse</strong> </dt>
<dd> If set to yes, all SSL data connections are required to exhibit SSL session reuse (which proves that they know the same master secret as the control channel). Although this is a secure default, it may break many FTP clients, so you may want to disable it. For a discussion of the consequences, see <a href="http://scarybeastsecurity.blogspot.com/2009/02/vsftpd-210-released.html">http://scarybeastsecurity.blogspot.com/2009/02/vsftpd-210-released.html</a> (Added in v2.1.0).Default: YES </dd>
<dt><strong>run_as_launching_user</strong> </dt>
<dd> Set to YES if you want vsftpd to run as the user which launched vsftpd. This is useful where root access is not available. MASSIVE WARNING! Do NOT enable this option unless you totally know what you are doing, as naive use of this option can create massive security problems. Specifically, vsftpd does not / cannot use chroot technology to restrict file access when this option is set (even if launched by root). A poor substitute could be to use a <strong>deny_file</strong> setting such as {/*,*..*}, but the reliability of this cannot compare to chroot, and should not be relied on. If using this option, many restrictions on other options apply. For example, options requiring privilege such as non-anonymous logins, upload ownership changing, connecting from port 20 and listen ports less than 1024 are not expected to work. Other options may be impacted.Default: NO </dd>
<dt><strong>secure_email_list_enable</strong> </dt>
<dd> Set to YES if you want only a specified list of e-mail passwords for anonymous logins to be accepted. This is useful as a low-hassle way of restricting access to low-security content without needing virtual users. When enabled, anonymous logins are prevented unless the password provided is listed in the file specified by the <strong>email_password_file</strong> setting. The file format is one password per line, no extra whitespace. The default filename is /etc/vsftpd.email_passwords.Default: NO </dd>
<dt><strong>session_support</strong> </dt>
<dd> This controls whether vsftpd attempts to maintain sessions for logins. If vsftpd is maintaining sessions, it will try and update utmp and wtmp. It will also open a pam_session if using PAM to authenticate, and only close this upon logout. You may wish to disable this if you do not need session logging, and you wish to give vsftpd more opportunity to run with less processes and / or less privilege. NOTE &#8211; utmp and wtmp support is only provided with PAM enabled builds.Default: NO </dd>
<dt><strong>setproctitle_enable</strong> </dt>
<dd> If enabled, vsftpd will try and show session status information in the system process listing. In other words, the reported name of the process will change to reflect what a vsftpd session is doing (idle, downloading etc). You probably want to leave this off for security purposes.Default: NO </dd>
<dt><strong>ssl_enable</strong> </dt>
<dd> If enabled, and vsftpd was compiled against OpenSSL, vsftpd will support secure connections via SSL. This applies to the control connection (including login) and also data connections. You&#8217;ll need a client with SSL support too. NOTE!! Beware enabling this option. Only enable it if you need it. vsftpd can make no guarantees about the security of the OpenSSL libraries. By enabling this option, you are declaring that you trust the security of your installed OpenSSL library.Default: NO </dd>
<dt><strong>ssl_request_cert</strong> </dt>
<dd> If enabled, vsftpd will request (but not necessarily require; see <strong>require_cert)</strong>a<strong>certificate</strong>on<strong>incoming</strong>SSL<strong>connections.</strong>Normally<strong>this</strong> should not cause any trouble at all, but IBM zOS seems to have issues. (New in v2.0.7).Default: YES </dd>
<dt><strong>ssl_sslv2</strong> </dt>
<dd> Only applies if <strong>ssl_enable</strong> is activated. If enabled, this option will permit SSL v2 protocol connections. TLS v1 connections are preferred.Default: NO </dd>
<dt><strong>ssl_sslv3</strong> </dt>
<dd> Only applies if <strong>ssl_enable</strong> is activated. If enabled, this option will permit SSL v3 protocol connections. TLS v1 connections are preferred.Default: NO </dd>
<dt><strong>ssl_tlsv1</strong> </dt>
<dd> Only applies if <strong>ssl_enable</strong> is activated. If enabled, this option will permit TLS v1 protocol connections. TLS v1 connections are preferred.Default: YES </dd>
<dt><strong>strict_ssl_read_eof</strong> </dt>
<dd> If enabled, SSL data uploads are required to terminate via SSL, not an EOF on the socket. This option is required to be sure that an attacker did not terminate an upload prematurely with a faked TCP FIN. Unfortunately, it is not enabled by default because so few clients get it right. (New in v2.0.7).Default: NO </dd>
<dt><strong>strict_ssl_write_shutdown</strong> </dt>
<dd> If enabled, SSL data downloads are required to terminate via SSL, not an EOF on the socket. This is off by default as I was unable to find a single FTP client that does this. It is minor. All it affects is our ability to tell whether the client confirmed full receipt of the file. Even without this option, the client is able to check the integrity of the download. (New in v2.0.7).Default: NO </dd>
<dt><strong>syslog_enable</strong> </dt>
<dd> If enabled, then any log output which would have gone to /var/log/vsftpd.log goes to the system log instead. Logging is done under the FTPD facility.Default: NO </dd>
<dt><strong>tcp_wrappers</strong> </dt>
<dd> If enabled, and vsftpd was compiled with tcp_wrappers support, incoming connections will be fed through tcp_wrappers access control. Furthermore, there is a mechanism for per-IP based configuration. If tcp_wrappers sets the VSFTPD_LOAD_CONF environment variable, then the vsftpd session will try and load the vsftpd configuration file specified in this variable.Default: NO </dd>
<dt><strong>text_userdb_names</strong> </dt>
<dd> By default, numeric IDs are shown in the user and group fields of directory listings. You can get textual names by enabling this parameter. It is off by default for performance reasons.Default: NO </dd>
<dt><strong>tilde_user_enable</strong> </dt>
<dd> If enabled, vsftpd will try and resolve pathnames such as ~chris/pics, i.e. a tilde followed by a username. Note that vsftpd will always resolve the pathnames ~ and ~/something (in this case the ~ resolves to the initial login directory). Note that ~user paths will only resolve if the file <strong>/etc/passwd</strong> may be found within the _current_ chroot() jail.Default: NO </dd>
<dt><strong>use_localtime</strong> </dt>
<dd> If enabled, vsftpd will display directory listings with the time in your local time zone. The default is to display GMT. The times returned by the MDTM FTP command are also affected by this option.Default: NO </dd>
<dt><strong>use_sendfile</strong> </dt>
<dd> An internal setting used for testing the relative benefit of using the sendfile() system call on your platform.Default: YES </dd>
<dt><strong>userlist_deny</strong> </dt>
<dd> This option is examined if <strong>userlist_enable</strong> is activated. If you set this setting to NO, then users will be denied login unless they are explicitly listed in the file specified by <strong>userlist_file</strong>.  When login is denied, the denial is issued before the user is asked for a password.Default: YES </dd>
<dt><strong>userlist_enable</strong> </dt>
<dd> If enabled, vsftpd will load a list of usernames, from the filename given by <strong>userlist_file</strong>.  If a user tries to log in using a name in this file, they will be denied before they are asked for a password. This may be useful in preventing cleartext passwords being transmitted. See also <strong>userlist_deny</strong>.Default: NO </dd>
<dt><strong>validate_cert</strong> </dt>
<dd> If set to yes, all SSL client certificates received must validate OK. Self-signed certs do not constitute OK validation. (New in v2.0.6).Default: NO </dd>
<dt><strong>virtual_use_local_privs</strong> </dt>
<dd> If enabled, virtual users will use the same privileges as local users. By default, virtual users will use the same privileges as anonymous users, which tends to be more restrictive (especially in terms of write access).Default: NO </dd>
<dt><strong>write_enable</strong> </dt>
<dd> This controls whether any FTP commands which change the filesystem are allowed or not. These commands are: STOR, DELE, RNFR, RNTO, MKD, RMD, APPE and SITE.Default: NO </dd>
<dt><strong>xferlog_enable</strong> </dt>
<dd> If enabled, a log file will be maintained detailling uploads and downloads. By default, this file will be placed at /var/log/vsftpd.log, but this location may be overridden using the configuration setting <strong>vsftpd_log_file</strong>.Default: NO (but the sample config file enables it) </dd>
<dt><strong>xferlog_std_format</strong> </dt>
<dd> If enabled, the transfer log file will be written in standard xferlog format, as used by wu-ftpd. This is useful because you can reuse existing transfer statistics generators. The default format is more readable, however. The default location for this style of log file is /var/log/xferlog, but you may change it with the setting <strong>xferlog_file</strong>.Default: NO </dd>
</dl>
</blockquote>
<p><strong> numeric options</strong></p>
<blockquote><dl>
<dt><strong>accept_timeout</strong> </dt>
<dd> The timeout, in seconds, for a remote client to establish connection with a PASV style data connection.Default: 60 </dd>
<dt><strong>anon_max_rate</strong> </dt>
<dd> The maximum data transfer rate permitted, in bytes per second, for anonymous clients.Default: 0 (unlimited) </dd>
<dt><strong>anon_umask</strong> </dt>
<dd> The value that the umask for file creation is set to for anonymous users. NOTE! If you want to specify octal values, remember the &#8220;0&#8243; prefix otherwise the value will be treated as a base 10 integer!Default: 077 </dd>
<dt><strong>chown_upload_mode</strong> </dt>
<dd> The file mode to force for chown()ed anonymous uploads. (Added in v2.0.6).Default: 0600 </dd>
<dt><strong>connect_timeout</strong> </dt>
<dd> The timeout, in seconds, for a remote client to respond to our PORT style data connection.Default: 60 </dd>
<dt><strong>data_connection_timeout</strong> </dt>
<dd> The timeout, in seconds, which is roughly the maximum time we permit data transfers to stall for with no progress. If the timeout triggers, the remote client is kicked off.Default: 300 </dd>
<dt><strong>delay_failed_login</strong> </dt>
<dd> The number of seconds to pause prior to reporting a failed login.Default: 1 </dd>
<dt><strong>delay_successful_login</strong> </dt>
<dd> The number of seconds to pause prior to allowing a successful login.Default: 0 </dd>
<dt><strong>file_open_mode</strong> </dt>
<dd> The permissions with which uploaded files are created. Umasks are applied on top of this value. You may wish to change to 0777 if you want uploaded files to be executable.Default: 0666 </dd>
<dt><strong>ftp_data_port</strong> </dt>
<dd> The port from which PORT style connections originate (as long as the poorly named <strong>connect_from_port_20</strong> is enabled).Default: 20 </dd>
<dt><strong>idle_session_timeout</strong> </dt>
<dd> The timeout, in seconds, which is the maximum time a remote client may spend between FTP commands. If the timeout triggers, the remote client is kicked off.Default: 300 </dd>
<dt><strong>listen_port</strong> </dt>
<dd> If vsftpd is in standalone mode, this is the port it will listen on for incoming FTP connections.Default: 21 </dd>
<dt><strong>local_max_rate</strong> </dt>
<dd> The maximum data transfer rate permitted, in bytes per second, for local authenticated users.Default: 0 (unlimited) </dd>
<dt><strong>local_umask</strong> </dt>
<dd> The value that the umask for file creation is set to for local users. NOTE! If you want to specify octal values, remember the &#8220;0&#8243; prefix otherwise the value will be treated as a base 10 integer!Default: 077 </dd>
<dt><strong>max_clients</strong> </dt>
<dd> If vsftpd is in standalone mode, this is the maximum number of clients which may be connected. Any additional clients connecting will get an error message.Default: 0 (unlimited) </dd>
<dt><strong>max_login_fails</strong> </dt>
<dd> After this many login failures, the session is killed.Default: 3 </dd>
<dt><strong>max_per_ip</strong> </dt>
<dd> If vsftpd is in standalone mode, this is the maximum number of clients which may be connected from the same source internet address. A client will get an error message if they go over this limit.Default: 0 (unlimited) </dd>
<dt><strong>pasv_max_port</strong> </dt>
<dd> The maximum port to allocate for PASV style data connections. Can be used to specify a narrow port range to assist firewalling.Default: 0 (use any port) </dd>
<dt><strong>pasv_min_port</strong> </dt>
<dd> The minimum port to allocate for PASV style data connections. Can be used to specify a narrow port range to assist firewalling.Default: 0 (use any port) </dd>
<dt><strong>trans_chunk_size</strong> </dt>
<dd> You probably don&#8217;t want to change this, but try setting it to something like 8192 for a much smoother bandwidth limiter.Default: 0 (let vsftpd pick a sensible setting) </dd>
</dl>
</blockquote>
<p><strong> string options</strong></p>
<blockquote><p><a name="lbAG"></a></p>
<dl>
<dt><strong>anon_root</strong> </dt>
<dd> This option represents a directory which vsftpd will try to change into after an anonymous login. Failure is silently ignored.Default: (none) </dd>
<dt><strong>banned_email_file</strong> </dt>
<dd> This option is the name of a file containing a list of anonymous e-mail passwords which are not permitted. This file is consulted if the option <strong>deny_email_enable</strong> is enabled.Default: /etc/vsftpd.banned_emails </dd>
<dt><strong>banner_file</strong> </dt>
<dd> This option is the name of a file containing text to display when someone connects to the server. If set, it overrides the banner string provided by the <strong>ftpd_banner</strong> option.Default: (none) </dd>
<dt><strong>ca_certs_file</strong> </dt>
<dd> This option is the name of a file to load Certificate Authority certs from, for the purpose of validating client certs. Regrettably, the default SSL CA cert paths are not used, because of vsftpd&#8217;s use of restricted filesystem spaces (chroot). (Added in v2.0.6).Default: (none) </dd>
<dt><strong>chown_username</strong> </dt>
<dd> This is the name of the user who is given ownership of anonymously uploaded files. This option is only relevant if another option, <strong>chown_uploads</strong>,  is set.Default: root </dd>
<dt><strong>chroot_list_file</strong> </dt>
<dd> The option is the name of a file containing a list of local users which will be placed in a chroot() jail in their home directory. This option is only relevant if the option <strong>chroot_list_enable</strong> is enabled. If the option <strong>chroot_local_user</strong> is enabled, then the list file becomes a list of users to NOT place in a chroot() jail.Default: /etc/vsftpd.chroot_list </dd>
<dt><strong>cmds_allowed</strong> </dt>
<dd> This options specifies a comma separated list of allowed FTP commands (post login. USER, PASS and QUIT and others are always allowed pre-login). Other commands are rejected. This is a powerful method of really locking down an FTP server. Example: cmds_allowed=PASV,RETR,QUITDefault: (none) </dd>
<dt><strong>cmds_denied</strong> </dt>
<dd> This options specifies a comma separated list of denied FTP commands (post login. USER, PASS, QUIT and others are always allowed pre-login). If a command appears on both this and <strong>cmds_allowed</strong> then the denial takes precedence. (Added in v2.1.0).Default: (none) </dd>
<dt><strong>deny_file</strong> </dt>
<dd> This option can be used to set a pattern for filenames (and directory names etc.) which should not be accessible in any way. The affected items are not hidden, but any attempt to do anything to them (download, change into directory, affect something within directory etc.) will be denied. This option is very simple, and should not be used for serious access control &#8211; the filesystem&#8217;s permissions should be used in preference. However, this option may be useful in certain virtual user setups. In particular aware that if a filename is accessible by a variety of names (perhaps due to symbolic links or hard links), then care must be taken to deny access to all the names. Access will be denied to items if their name contains the string given by hide_file, or if they match the regular expression specified by hide_file. Note that vsftpd&#8217;s regular expression matching code is a simple implementation which is a subset of full regular expression functionality. Because of this, you will need to carefully and exhaustively test any application of this option. And you are recommended to use filesystem permissions for any important security policies due to their greater reliability. Supported regex syntax is any number of *, ? and unnested {,} operators. Regex matching is only supported on the last component of a path, e.g. a/b/? is supported but a/?/c is not. Example: deny_file={*.mp3,*.mov,.private}Default: (none) </dd>
<dt><strong>dsa_cert_file</strong> </dt>
<dd> This option specifies the location of the DSA certificate to use for SSL encrypted connections.Default: (none &#8211; an RSA certificate suffices) </dd>
<dt><strong>dsa_private_key_file</strong> </dt>
<dd> This option specifies the location of the DSA private key to use for SSL encrypted connections. If this option is not set, the private key is expected to be in the same file as the certificate.Default: (none) </dd>
<dt><strong>email_password_file</strong> </dt>
<dd> This option can be used to provide an alternate file for usage by the <strong>secure_email_list_enable</strong> setting.Default: /etc/vsftpd.email_passwords </dd>
<dt><strong>ftp_username</strong> </dt>
<dd> This is the name of the user we use for handling anonymous FTP. The home directory of this user is the root of the anonymous FTP area.Default: ftp </dd>
<dt><strong>ftpd_banner</strong> </dt>
<dd> This string option allows you to override the greeting banner displayed by vsftpd when a connection first comes in.Default: (none &#8211; default vsftpd banner is displayed) </dd>
<dt><strong>guest_username</strong> </dt>
<dd> See the boolean setting <strong>guest_enable</strong> for a description of what constitutes a guest login. This setting is the real username which guest users are mapped to.Default: ftp </dd>
<dt><strong>hide_file</strong> </dt>
<dd> This option can be used to set a pattern for filenames (and directory names etc.) which should be hidden from directory listings. Despite being hidden, the files / directories etc. are fully accessible to clients who know what names to actually use. Items will be hidden if their names contain the string given by hide_file, or if they match the regular expression specified by hide_file. Note that vsftpd&#8217;s regular expression matching code is a simple implementation which is a subset of full regular expression functionality. See <strong>deny_file</strong> for details of exactly what regex syntax is supported. Example: hide_file={*.mp3,.hidden,hide*,h?}Default: (none) </dd>
<dt><strong>listen_address</strong> </dt>
<dd> If vsftpd is in standalone mode, the default listen address (of all local interfaces) may be overridden by this setting. Provide a numeric IP address.Default: (none) </dd>
<dt><strong>listen_address6</strong> </dt>
<dd> Like listen_address, but specifies a default listen address for the IPv6 listener (which is used if listen_ipv6 is set). Format is standard IPv6 address format.Default: (none) </dd>
<dt><strong>local_root</strong> </dt>
<dd> This option represents a directory which vsftpd will try to change into after a local (i.e. non-anonymous) login. Failure is silently ignored.Default: (none) </dd>
<dt><strong>message_file</strong> </dt>
<dd> This option is the name of the file we look for when a new directory is entered. The contents are displayed to the remote user. This option is only relevant if the option <strong>dirmessage_enable</strong> is enabled.Default: .message </dd>
<dt><strong>nopriv_user</strong> </dt>
<dd> This is the name of the user that is used by vsftpd when it wants to be totally unprivileged. Note that this should be a dedicated user, rather than nobody. The user nobody tends to be used for rather a lot of important things on most machines.Default: nobody </dd>
<dt><strong>pam_service_name</strong> </dt>
<dd> This string is the name of the PAM service vsftpd will use.Default: ftp </dd>
<dt><strong>pasv_address</strong> </dt>
<dd> Use this option to override the IP address that vsftpd will advertise in response to the PASV command. Provide a numeric IP address, unless <strong>pasv_addr_resolve</strong> is enabled, in which case you can provide a hostname which will be DNS resolved for you at startup.Default: (none &#8211; the address is taken from the incoming connected socket) </dd>
<dt><strong>rsa_cert_file</strong> </dt>
<dd> This option specifies the location of the RSA certificate to use for SSL encrypted connections.Default: /usr/share/ssl/certs/vsftpd.pem </dd>
<dt><strong>rsa_private_key_file</strong> </dt>
<dd> This option specifies the location of the RSA private key to use for SSL encrypted connections. If this option is not set, the private key is expected to be in the same file as the certificate.Default: (none) </dd>
<dt><strong>secure_chroot_dir</strong> </dt>
<dd> This option should be the name of a directory which is empty. Also, the directory should not be writable by the ftp user. This directory is used as a secure chroot() jail at times vsftpd does not require filesystem access.Default: /usr/share/empty </dd>
<dt><strong>ssl_ciphers</strong> </dt>
<dd> This option can be used to select which SSL ciphers vsftpd will allow for encrypted SSL connections. See the <strong>ciphers</strong> man page for further details. Note that restricting ciphers can be a useful security precaution as it prevents malicious remote parties forcing a cipher which they have found problems with.Default: DES-CBC3-SHA </dd>
<dt><strong>user_config_dir</strong> </dt>
<dd> This powerful option allows the override of any config option specified in the manual page, on a per-user basis. Usage is simple, and is best illustrated with an example. If you set <strong>user_config_dir</strong> to be <strong>/etc/vsftpd_user_conf</strong> and then log on as the user &#8220;chris&#8221;, then vsftpd will apply the settings in the file <strong>/etc/vsftpd_user_conf/chris</strong> for the duration of the session. The format of this file is as detailed in this manual page! PLEASE NOTE that not all settings are effective on a per-user basis. For example, many settings only prior to the user&#8217;s session being started. Examples of settings which will not affect any behviour on a per-user basis include listen_address, banner_file, max_per_ip, max_clients, xferlog_file, etc.Default: (none) </dd>
<dt><strong>user_sub_token</strong> </dt>
<dd> This option is useful is conjunction with virtual users. It is used to automatically generate a home directory for each virtual user, based on a template. For example, if the home directory of the real user specified via <strong>guest_username</strong> is <strong>/home/virtual/$USER</strong>,  and <strong>user_sub_token</strong> is set to <strong>$USER</strong>,  then when virtual user fred logs in, he will end up (usually chroot()&#8217;ed) in the directory <strong>/home/virtual/fred</strong>.  This option also takes affect if <strong>local_root</strong> contains <strong>user_sub_token</strong>.Default: (none) </dd>
<dt><strong>userlist_file</strong> </dt>
<dd> This option is the name of the file loaded when the <strong>userlist_enable</strong> option is active.Default: /etc/vsftpd.user_list </dd>
<dt><strong>vsftpd_log_file</strong> </dt>
<dd> This option is the name of the file to which we write the vsftpd style log file. This log is only written if the option <strong>xferlog_enable</strong> is set, and <strong>xferlog_std_format</strong> is NOT set. Alternatively, it is written if you have set the option <strong>dual_log_enable</strong>.  One further complication &#8211; if you have set <strong>syslog_enable</strong>,  then this file is not written and output is sent to the system log instead.Default: /var/log/vsftpd.log </dd>
<dt><strong>xferlog_file</strong> </dt>
<dd> This option is the name of the file to which we write the wu-ftpd style transfer log. The transfer log is only written if the option <strong>xferlog_enable</strong> is set, along with <strong>xferlog_std_format</strong>.  Alternatively, it is written if you have set the option <strong>dual_log_enable</strong>.Default: /var/log/xferlog </dd>
</dl>
</blockquote>
<p>file /usr/local/etc/vsftpd.conf punya saya</p>
<blockquote><p>anonymous_enable=YES<br />
local_enable=YES<br />
write_enable=YES<br />
anon_upload_enable=YES<br />
anon_mkdir_write_enable=YES<br />
anon_other_write_enable=NO<br />
anon_world_readable_only=YES<br />
dirmessage_enable=YES<br />
xferlog_enable=YES<br />
connect_from_port_20=YES<br />
xferlog_file=/var/log/vsftpd.log<br />
idle_session_timeout=240<br />
data_connection_timeout=120<br />
ascii_upload_enable=NO<br />
ascii_download_enable=NO<br />
ftpd_banner=Selamat datang di kunz ftp<br />
secure_chroot_dir=/usr/local/share/vsftpd/empty</p>
<p>#standalone<br />
listen=YES<br />
background=YES</p>
<p>check_shell=YES<br />
chmod_enable=YES</p></blockquote>
<p><strong>MENJALANKAN</strong></p>
<p>untuk menjalankan saat start up</p>
<p>edit /etc/rc.conf</p>
<blockquote><p>#vi /etc/rc.conf</p>
<p>#vsftpd_enable=&#8221;YES&#8221;</p></blockquote>
<p>jalankan vsftpd</p>
<blockquote><p>#/usr/local/libexec/vsftpd &#38;</p></blockquote>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Setting Up Sticky Directories and umask]]></title>
<link>http://cesclaveria.wordpress.com/2009/08/26/setting-up-sticky-directories-and-umask/</link>
<pubDate>Wed, 26 Aug 2009 14:34:45 +0000</pubDate>
<dc:creator>cesclaveria</dc:creator>
<guid>http://cesclaveria.wordpress.com/2009/08/26/setting-up-sticky-directories-and-umask/</guid>
<description><![CDATA[Problem: Suppose you have a directory where a group of users will work, but, even when the directory]]></description>
<content:encoded><![CDATA[Problem: Suppose you have a directory where a group of users will work, but, even when the directory]]></content:encoded>
</item>
<item>
<title><![CDATA[relembrando: permissões]]></title>
<link>http://hypp.wordpress.com/2009/08/20/204/</link>
<pubDate>Thu, 20 Aug 2009 03:34:02 +0000</pubDate>
<dc:creator>Hyp</dc:creator>
<guid>http://hypp.wordpress.com/2009/08/20/204/</guid>
<description><![CDATA[Uma pequena explicação, para acabar de uma vez por todas, sobre as duvidas de qual numero usar quand]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="margin-bottom:0;font-weight:normal;"><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">Uma pequena explicação, para acabar de uma vez por todas, sobre as duvidas de qual numero usar quando queremos mudar as permissões de arquivos, pastas etc, com o chmod</span></span></p>
<p style="margin-bottom:0;font-weight:normal;">
<p style="margin-bottom:0;font-weight:normal;"><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">-rw =&#62; indicação de permissões do proprietário<br />
-rw =&#62; permissões do grupo que o usuário pertence<br />
-r- =&#62; permissões para os demais usuários</span></span></p>
<table border="0">
<tbody>
<tr>
<td width="31%" bgcolor="#ccffff"><strong>Permissão</strong></td>
<td width="34%" bgcolor="#ffffcc"><strong>Binário</strong></td>
<td width="35%" bgcolor="#ffcccc"><strong>Decimal</strong></td>
</tr>
<tr>
<td width="31%" bgcolor="#ccffff">&#8212;</td>
<td width="34%" bgcolor="#ffffcc">000</td>
<td width="35%" bgcolor="#ffcccc">0</td>
</tr>
<tr>
<td width="31%" bgcolor="#ccffff">&#8211;x</td>
<td width="34%" bgcolor="#ffffcc">001</td>
<td width="35%" bgcolor="#ffcccc">1</td>
</tr>
<tr>
<td width="31%" bgcolor="#ccffff">-w-</td>
<td width="34%" bgcolor="#ffffcc">010</td>
<td width="35%" bgcolor="#ffcccc">2</td>
</tr>
<tr>
<td width="31%" bgcolor="#ccffff">-wx</td>
<td width="34%" bgcolor="#ffffcc">011</td>
<td width="35%" bgcolor="#ffcccc">3</td>
</tr>
<tr>
<td width="31%" bgcolor="#ccffff">r&#8211;</td>
<td width="34%" bgcolor="#ffffcc">100</td>
<td width="35%" bgcolor="#ffcccc">4</td>
</tr>
<tr>
<td width="31%" bgcolor="#ccffff">r-x</td>
<td width="34%" bgcolor="#ffffcc">101</td>
<td width="35%" bgcolor="#ffcccc">5</td>
</tr>
<tr>
<td width="31%" bgcolor="#ccffff">rw-</td>
<td width="34%" bgcolor="#ffffcc">110</td>
<td width="35%" bgcolor="#ffcccc">6</td>
</tr>
<tr>
<td width="31%" bgcolor="#ccffff">rwx</td>
<td width="34%" bgcolor="#ffffcc">111</td>
<td width="35%" bgcolor="#ffcccc">7</td>
</tr>
</tbody>
</table>
<p style="margin-bottom:0;font-weight:normal;"><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">&#8212; =&#62; nenhuma permissão;<br />
r&#8211; =&#62; permissão de leitura;<br />
r-x =&#62; leitura e execução;<br />
rw- =&#62; leitura e gravação;<br />
rwx =&#62; leitura, gravação e execução</span></span></p>
<p style="margin-bottom:0;font-weight:normal;"><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">A ordem em que as permissões devem aparecer é rwx, abaixo as mais utilizadas:<br />
</span></span></p>
<table border="0">
<tbody>
<tr bgcolor="#ffffcc">
<td width="59%">&#8212;&#8212;&#8212;</td>
<td width="41%">000</td>
</tr>
<tr bgcolor="#ccffff">
<td width="59%">r&#8212;&#8212;&#8211;</td>
<td width="41%">400</td>
</tr>
<tr bgcolor="#cccccc">
<td width="59%">r&#8211;r&#8211;r&#8211;</td>
<td width="41%">444</td>
</tr>
<tr bgcolor="#ccffcc">
<td width="59%">rw&#8212;&#8212;-</td>
<td width="41%">600</td>
</tr>
<tr bgcolor="#ffcccc">
<td width="59%">rw-r&#8211;r&#8211;</td>
<td width="41%">644</td>
</tr>
<tr bgcolor="#ffcc99">
<td width="59%">rw-rw-r&#8211;</td>
<td width="41%">666</td>
</tr>
<tr bgcolor="#00cccc">
<td width="59%">rwx&#8212;&#8212;</td>
<td width="41%">700</td>
</tr>
<tr bgcolor="#cccc99">
<td width="59%">rwxr-x&#8212;</td>
<td width="41%">750</td>
</tr>
<tr bgcolor="#33ffcc">
<td width="59%">rwxr-xr-x</td>
<td width="41%">755</td>
</tr>
<tr bgcolor="#ccccff">
<td width="59%">rwxrwxrwx</td>
<td width="41%">777</td>
</tr>
</tbody>
</table>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Change Mode]]></title>
<link>http://linuxtour.wordpress.com/2009/08/16/change-mode/</link>
<pubDate>Sun, 16 Aug 2009 19:45:15 +0000</pubDate>
<dc:creator>putnam120</dc:creator>
<guid>http://linuxtour.wordpress.com/2009/08/16/change-mode/</guid>
<description><![CDATA[So you have written your first program in Perl and it probably looks something like this #!/usr/loca]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>So you have written your first program in Perl and it probably looks something like this</p>
<p style="text-align:left;padding-left:45px;"><code><br />
<span style="color:#ff0000;">#!/usr/local/bin/perl</span></code><br />
<span style="color:#808080;"># We will call the program hello_world</span><br />
print<span style="color:#ff00ff;"> &#8220;Hello world\n&#8221;</span></p>
<p>Now you try to run it with the command <span style="color:#00ff00;"><code>./hello_world</code></span>, only to find that it won&#8217;t run.  Well the reason is obvious, well to experienced users anyway.  The problem is that your program doesn&#8217;t have permission to be executed.  Instead you first need to run <span style="color:#00ff00;"><code>chmod u+x hello_world</code></span>, then <span style="color:#00ff00;"><code>./hello_world</code></span> will run as expected.<br />
The function of the chmod command is to change the mode of a files.  The modes are permissions and special modes.  I will only touch on permissions in this post.  The format for this command is as follows</p>
<p style="text-align:center;"><span style="color:#00ff00;"><code>chmod [references] [operator] [modes] file1...</code></span></p>
<p>references: who you want to apply the changes to<br />
operator: how the changes are to be made<br />
modes: which changes are to be made</p>
<p>The <span style="color:#99cc00;">references</span> are;<span style="color:#ff0000;"> u</span>, <span style="color:#ff0000;">o</span>, <span style="color:#ff0000;">g</span>, and <span style="color:#ff0000;">a</span>. <span style="color:#ff0000;"> u</span> is the owner of the file.  <span style="color:#ff0000;">g</span> is users who are members of the file&#8217;s group.  <span style="color:#ff0000;">o</span> is outsider, members who are not specified by either <span style="color:#ff0000;">u</span> or <span style="color:#ff0000;">g</span>.  Finally <span style="color:#ff0000;">a</span> is all, this is equivalent to <span style="color:#ff0000;">uog</span>.</p>
<p>The <span style="color:#99cc00;">operators</span> are; <span style="color:#ff0000;">+</span>, <span style="color:#ff0000;">-</span>, and <span style="color:#ff0000;">=</span>.  As can be expected you use <span style="color:#ff0000;">+</span> to add permissions and <span style="color:#ff0000;">-</span> to remove them.  The <span style="color:#ff0000;">=</span> is a little harder to explain but is made perfectly clear with an example (which is later in this post).</p>
<p>The <span style="color:#99cc00;">modes</span> are; <span style="color:#ff0000;">r</span>, <span style="color:#ff0000;">w</span>, <span style="color:#ff0000;">x</span>.  They stand for read, write, and executable respectively.</p>
<p>Well now I suppose you would like to see some examples of this in use.  For all these examples we will assume that hello_world has the following initial modes: <span style="color:#00ff00;">-rwxr-xr-x</span>, this means that the owner (the first grouping of rwx) has the ability to read, write, and execute.  However, group members (the second grouping) and outsiders (the last grouping) can only read and execute</p>
<p><span style="color:#ff9900;"><strong>Example 1:</strong></span> Make it so that the owner only has executable permission.  After using the following command, the file&#8217;s modes will look like <span style="color:#00ff00;">&#8212;xr-xr-x</span></p>
<p><span style="color:#00ff00;"><code>chmod u=x hello_world</code></span></p>
<p><span style="color:#ff9900;"><strong>Example 2:</strong></span> Make is so that the owner can only read and execute.  After using the following command, the file&#8217;s modes will look like <span style="color:#00ff00;">-r-xr-xr-x</span></p>
<p><span style="color:#00ff00;"><code>chmod u-w hello_world</code></span></p>
<p><span style="color:#ff9900;"><strong>Example 3:</strong></span> Make it so that group users and outsiders  can read and write only. While not affecting the owner&#8217;s permissions.  After using the following command the file&#8217;s modes will look like <span style="color:#00ff00;">-rwxrw-rw-</span></p>
<p><span style="color:#00ff00;"><code>chmod og=rw hello_world</code></span></p>
<p><span style="color:#ff9900;"><strong>Example 4:</strong> </span>Make it so that no one has execute ability.  The file&#8217;s modes will look like <span style="color:#00ff00;">-rw-r&#8211;r&#8211;</span> after using the following command.</p>
<p><span style="color:#00ff00;"><code>chmod a-x hello_world</code></span></p>
<p><span style="color:#ff9900;"><strong>Example 5:</strong></span> Make is so that people that aren&#8217;t group members or the owner have write permission.  The file&#8217;s modes will look like <span style="color:#00ff00;">-rwxr-xrwx</span> after using the following command.</p>
<p><span style="color:#00ff00;"><code>chmod o+w hello_world</code></span></p>
<p>So that wasn&#8217;t too bad, and hopefully you noticed how the <span style="color:#ff0000;">=</span> operator works.  Finally, it is worth mentioning that in order to see a file&#8217;s modes you only need to use <span style="color:#00ff00;"><code>ls -l file</code></span>.  For more information on chmod check out this <a href="http://en.wikipedia.org/wiki/Chmod">Wikipedia entry</a>, and for examples follow this <a href="http://catcode.com/teachmod/chmod_cmd2.html">link</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Adminitración de archivos: Los permisos]]></title>
<link>http://gatodiario.wordpress.com/2009/08/10/adminitracion-de-archivos-los-permisos/</link>
<pubDate>Tue, 11 Aug 2009 00:58:03 +0000</pubDate>
<dc:creator>gatodiario</dc:creator>
<guid>http://gatodiario.wordpress.com/2009/08/10/adminitracion-de-archivos-los-permisos/</guid>
<description><![CDATA[Hooola amigos (as) aquí les publico un manual, para que los amigos que tienen poca experiencia con L]]></description>
<content:encoded><![CDATA[Hooola amigos (as) aquí les publico un manual, para que los amigos que tienen poca experiencia con L]]></content:encoded>
</item>
<item>
<title><![CDATA[Relembrando: alguns comandos de terminal]]></title>
<link>http://hypp.wordpress.com/2009/08/09/comandos-simples-de-terminal/</link>
<pubDate>Sun, 09 Aug 2009 19:32:28 +0000</pubDate>
<dc:creator>Hyp</dc:creator>
<guid>http://hypp.wordpress.com/2009/08/09/comandos-simples-de-terminal/</guid>
<description><![CDATA[editando Xorg.conf $ sudo gedit /etc/X11/xorg.conf transformando texto em arquivo executável $ sudo ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><address> </address>
<p><!-- 		@page { margin: 0.79in } 		ADDRESS.cjk { font-style: italic } 		ADDRESS.ctl { font-style: italic } 		P { margin-bottom: 0.08in } --></p>
<p style="margin-bottom:0;font-style:normal;font-weight:normal;">
<p style="margin-bottom:0;font-style:normal;font-weight:normal;">
<address> <span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">editando Xorg.conf</span></span></address>
<table style="height:24px;" border="1" cellspacing="0" cellpadding="4" width="184">
<col width="195"></col>
<tbody>
<tr>
<td width="195" valign="TOP">
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">$ 			sudo gedit /etc/X11/xorg.conf</span></span></address>
</td>
</tr>
</tbody>
</table>
<address> </address>
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">transformando texto em arquivo executável</span></span></address>
<table border="1" cellspacing="0" cellpadding="4" width="116">
<col width="106"></col>
<tbody>
<tr>
<td width="106" valign="TOP">
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">$ 			sudo chmod +x</span></span></address>
</td>
</tr>
</tbody>
</table>
<address> </address>
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">montando um arquivo .iso no cdrom</span></span></address>
<table style="height:27px;" border="1" cellspacing="0" cellpadding="4" width="379">
<col width="362"></col>
<tbody>
<tr>
<td width="362" valign="TOP">
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">$ </span></span>sudo mount -o loop -t iso9660 /path do arquivo .iso/  media/cdrom01</address>
</td>
</tr>
</tbody>
</table>
<address> </address>
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">transformando arquivos <strong>.bin e .cue em .iso</strong></span></span></address>
<table border="1" cellspacing="0" cellpadding="4" width="192">
<col width="182"></col>
<tbody>
<tr>
<td width="182" valign="TOP">
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">$ 			sudo aptitude install bchunk</span></span></address>
</td>
</tr>
</tbody>
</table>
<address> </address>
<table border="1" cellspacing="0" cellpadding="4" width="264">
<col width="254"></col>
<tbody>
<tr>
<td width="254" valign="TOP">
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">$ 			bchunk imagem.bin imagem.cue imagem</span></span></address>
</td>
</tr>
</tbody>
</table>
<address> </address>
<address></address>
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">transformando arquivos <strong>.mdf em .iso</strong><br />
</span></span></address>
<table border="1" cellspacing="0" cellpadding="4" width="192">
<col width="182"></col>
<tbody>
<tr>
<td width="182" valign="TOP">
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">$ 			sudo aptitude install mdf2iso</span></span></address>
</td>
</tr>
</tbody>
</table>
<address> </address>
<table style="height:24px;" border="1" cellspacing="0" cellpadding="4" width="132">
<col width="254"></col>
<tbody>
<tr>
<td width="254" valign="TOP">
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">$ mdf2iso arquivo.mdf<br />
</span></span></address>
</td>
</tr>
</tbody>
</table>
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">criando uma <strong>.iso apartir de uma pasta</strong></span></span><br />
</address>
<table style="height:24px;" border="1" cellspacing="0" cellpadding="4" width="351">
<col width="410"></col>
<tbody>
<tr>
<td width="410" valign="TOP">
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">$ 			sudo mkisofs -J -r -o nomequeaisoreceberá.iso 			/diretório/de/origem</span></span></address>
</td>
</tr>
</tbody>
</table>
<address> </address>
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">buscando um determinado pacote para instalar</span></span></address>
<table style="height:24px;" border="1" cellspacing="0" cellpadding="4" width="211">
<col width="248"></col>
<tbody>
<tr>
<td width="248" valign="TOP">
<address><span style="font-family:FreeSans,sans-serif;"><span style="font-size:x-small;">$ 			sudo aptitude search [nome do pacote]</span></span></address>
</td>
</tr>
</tbody>
</table>
<address> </address>
<p style="margin-bottom:0;font-style:normal;font-weight:normal;">
<address> </address>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[chmod hak akses di Linux]]></title>
<link>http://salsabravo1.wordpress.com/2009/08/09/chmod-hak-akses-di-linux/</link>
<pubDate>Sun, 09 Aug 2009 07:08:33 +0000</pubDate>
<dc:creator>Rikie Kartadie</dc:creator>
<guid>http://salsabravo1.wordpress.com/2009/08/09/chmod-hak-akses-di-linux/</guid>
<description><![CDATA[Tidak sedikit pengguna Linux yang mengalami kebingungan karena tidak dapat mengoperasikan suatu prog]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div>
<p>Tidak sedikit pengguna Linux yang mengalami kebingungan karena tidak dapat mengoperasikan suatu program atau mengakses sebuah file atau direktori dikarenakan oleh hak akses yang ada pada setiap file dan direktori yang ada pada Linux (termasuk Saya ..hehehehe).<br />
Linux mengenal hak akses yang mengatur setiap user sehingga tiap user hanya dapat mengakses file-file atau direktori tertentu saja, hal ini digunakan untuk kepentingan keamanan sistem.<br />
Dua perintah (program) dalam Linux yang digunakan untuk mengatur hak akses tersebut adalah chmod dan chown. Program chmod digunakan untuk mengubah hak akses suatu file, sedangkan chown digunakan untuk mengganti pemilik file tersebut.<br />
Hak Akses dalam Linux<br />
Sebelum melangkah lebih jauh mengenai penggunaan perintah diatas, sebelumnya perlu dijelaskan terlebih dahulu mengenai hak akses di dalam Linux.<br />
Setiap file dan direktori yang ada dalam sistem linux memiliki tiga buah hak akses, satu untuk user itu sendiri, kemudian untuk user dalam grup yang sama dengan pemilik file dan yang terakhir untuk user lainnya.</p>
<p>Anda dapat melihat hak akses sebuah file dengan menggunakan perintah ls l, perhatikan contoh dibawah ini:<br />
-rw-rw-r–    1 postgres postgres    41527 Jul 12  2001 summary.pdf<br />
drwxrwxr-x    2 postgres postgres     4096 Sep 20  2002 Suse<br />
-rw-r–r–    1 root     root         4935 Aug 23  2001 T123456.log<br />
-rw-r–r–    1 postgres postgres    13335 Apr 10 17:04 tchart2.java</p>
<p>Karakter pertama menunjukkan jenisnya, jika berisi karakter d, berarti itu adalah direktori sedangkan jika kosong berarti file. Sembilan karakter berikutnya menunjukkan hak aksesnya, dengan tiga karakter pertama menunjukkan hak akses untuk user tersebut, tiga karakter berikutnya menunjukkan hak akses untuk grup nya dan tiga karakter terakhir menunjukkan hak akses untuk user lain.</p>
<p>Masing-masing arti karakter tersebut dapat dilihat pada tabel berikut:<br />
Karakter	Arti	Nilai<br />
r (read)	Hak akses untuk membaca	4<br />
w (write)	Hak akses untuk menulis	2<br />
x (exec)	Hak akses untuk menjalankan	1</p>
<p>Dengan mengkombinasikan nilai pada masing-masing hak akses tersebut, akan didapatkan hak akses masing-masing, perhatikan tabel berikut:<br />
Hak Akses	Nilai	Arti<br />
—	0	Tidak memiliki hak akses (tidak dapat di akses)<br />
r–	4	Dapat dibaca dan ditulis (diedit)<br />
rw-	6	Dapat dibaca dan ditulis (diedit)<br />
rwx	7	Dapat dibaca, ditulis dan dieksekusi (dijalankan)<br />
r-x	5	Dapat dibaca dan dijalankan, tetapi tidak dapat diedit<br />
–x	1	Hanya dapat dijalankan</p>
<p>Berikut contoh penerapannya:<br />
Hak Akses	Nilai	Arti<br />
-rw——- 600 Pemilik memiliki hak akses baca dan tulis, sedangkan orang lain tidak memiliki hak akses apapun. Set dengan hak akses ini supaya file anda tidak dapat dibaca orang lain, biasanya digunakan untuk file-file dokumen<br />
-rw-r–r– 644 Pemilik memiliki hak akses baca dan tulis sedangkan orang lain hanya dapat membaca saja. Gunakan hak akses ini jika anda ingin orang lain dapat membaca file anda<br />
-rw-rw-rw-	666	Dengan hak akses ini, orang lain juga akan dapat membaca dan merubah file anda<br />
-rwx—— 700 Pemilik dapat membaca, menulis dan menjalankan file ini, hak akses ini yang biasanya digunakan untuk menjalankan program<br />
-rwxr-xr-x 755 Pemilik memiliki hak akses baca, tulis dan menjalankan file ini, sedangkan orang lain hanya dapat membaca dan menjalankan file tersebut<br />
drwx—— 700 Hanya pemilik yang dapat mengakses, membaca dan menulis pada direktori tersebut. Setiap direktori harus memiliki hak akses x untuk dapat diakses<br />
drwxr-xr-x	755	Isi direktori ini hanya dapat dirubah oleh pemilik, tetapi orang lain dapat membaca isi direktori tersebut<br />
Menggunakan Perintah chmod<br />
Untuk menggunakan chmod, perintahnya adalah:</p>
<p># chmod hakakses namafile</p>
<p>misalnya:</p>
<p># chmod 644 coba.txt</p>
<p>perintah tersebut akan mengubah hak akses file coba.txt menjadi seperti berikut:</p>
<p>-rw-r–r–    1 postgres postgres    41527 Jul 12  2001 coba.txt</p>
<p>Untuk mengganti hak akses sebuah direktori beserta dengan isinya, gunakan parameter R, dengan parameter tersebut, chmod akan dijalankan secara rekursif, misalnya seluruh file yang ada pada direktori /home/user/public_html akan dirubah hak aksesnya menjadi 755, maka perintahnya adalah sebagai berikut:</p>
<p># chmod R 755 /home/user/public_html</p>
<p>Menggunakan Perintah chown<br />
Perintah chown digunakan untuk mengganti pemilik sebuah file, perintah ini hanya dapat digunakan oleh user root. Perintah ini hanya dapat digunakan oleh user root. Perintahnya adalah sebagai berikut:</p>
<p># chown namauser.namagrup namafile</p>
<p>misalnya:</p>
<p># chown user.user coba.txt</p>
<p>perintah chown juga dapat digunakan dengan menggunakan parameter R, contohnya adalah sebagai berikut:<br />
# chown R apache.apache /var/www/html</p>
<p>Perintah chattr<br />
Seringkali secara tidak sengaja kita menghapus atau mengedit sebuah file penting, di dalam Linux tidak ada fasilitas undelete, jadi file yang telah terhapus tidak dapat dikembalikan lagi.</p>
<p>Perintah (program) chattr digunakan untuk melindungi sebuah file sehingga tidak akan dapat dihapus ataupun dirubah dengan perintah apapun. Perintah chattr memberikan atribut i pada file yang dilindungi, perintahnya:</p>
<p># chattr +i namafile</p>
<p>misal:</p>
<p># chattr +i penting.txt</p>
<p>setelah perintah tersebut dijalankan, gunakan perintah ls l untuk melihat hasilnya:</p>
<p>jika suatu ketika file ini akan diedit atau dihapus, terlebih dahulu atribut diatas harus dilepas, untuk melepasnya gunakan perintah berikut:</p>
<p># chattr i namafile</p>
<p>sumber : konsultan linux dan http://www.balivisual.com/view-article-19.html</p></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[cp: omitting directory]]></title>
<link>http://spiralofhope.wordpress.com/2009/08/08/cp-omitting-directory/</link>
<pubDate>Sun, 09 Aug 2009 02:45:20 +0000</pubDate>
<dc:creator>spiralofhope</dc:creator>
<guid>http://spiralofhope.wordpress.com/2009/08/08/cp-omitting-directory/</guid>
<description><![CDATA[The simple way to reproduce this is: mkdir source cp source target It&#8217;s a pretty simple reques]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The simple way to reproduce this is:</p>
<p><code>mkdir source<br />
cp source target</code></p>
<p>It&#8217;s a pretty simple request.  I want to copy a directory.  I want to *copy* and not create the directory.  I don&#8217;t want any of the contents (<code>cp -r</code>), I just want the container itself, without using <code>mkdir</code>.  I don&#8217;t want to diddle around with the contents of the directory (moving them around) and then do <code>cp -r</code>.  I want to copy the container because I want to match the permissions.  I don&#8217;t want to separately use other commands to sync permissions:</p>
<p><code>chmod --reference=source target<br />
chown --reference=source target</code></p>
<p>Why can&#8217;t cp do this?  Oh right, it&#8217;s GNU .. so it sucks.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[CHMOD Nedir? Nasıl Değiştirilir?]]></title>
<link>http://phpvenuke.wordpress.com/2009/08/07/chmod-nedir-nasil-degistirilir/</link>
<pubDate>Fri, 07 Aug 2009 14:07:31 +0000</pubDate>
<dc:creator>1cidunya</dc:creator>
<guid>http://phpvenuke.wordpress.com/2009/08/07/chmod-nedir-nasil-degistirilir/</guid>
<description><![CDATA[Eğer web sunucunuz Unix işletim sisteminin (Linux şu günlerde popüler olan işletim sistemidir ve Uni]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Eğer web sunucunuz Unix işletim sisteminin (Linux şu günlerde popüler olan işletim sistemidir ve Unix` in bir parçası sayılabilir.) bazı özelliklerini çalıştırmanıza izin veriyorsa ve bunlardan birisi de CGI scriptleri çalıştırabilmek ise mutlaka CHMOD ayarlarının nasıl yapıldığını bilmeniz gerekmektedir.Öncelikle şunu belirtelim, bilinen Windows sistemlerinden sonra Unix sistemi oldukça farklıdır. Benzer görünüşler(profiller) de yer almaktadır. Her kullanıcı bazı özellikleri kullanabilmek için izin almak zorundadır.</p>
<p> </p>
<p>Kısaca basit bir scripti kullanmak için kullandığınız sunucunun sistemi Unix veya Linux olsa da sunucunun idarecisinden sizin dosyalarınızın yapısına göre gerekli dosya sınıflarının kullanma hakkınızın önceden anlaştığınız firma tarafından açılmış olması gerekir. Yoksa dosyalarınızı gerektiği gibi kullanamazsınız. Çalıştırma hakkınız var ise tipik scriptleri rahatça çalıştırabilirsiniz ve çalıştırırken CHMODunu genellikle 755 yapmalısınız.(-rwxr-xr-x).<br />
Burada genellikle diyorum çünkü aksi bir değişiklik hali var ise mutlaka kullanacağınız dosyanın bir readme.txt , benioku.txt ya da bir DOCS klasöründe yapmanızı istedikleri tüm değişiklikleri size önceden bildirirler.Bunada dikkat etmelisiniz.Mutlaka kullanmadan önce çalıştıracağınız dosyaların varsa açıklama yazılarını inceleyin.<br />
Chmod`un anlamı aslında yol,biçim değiştirmektir. Böylece klasör ya da dosyaya işlerlik kazandırıla biliniyor. Bu özellik (CHMOD) o dosyaya bir ayrıcalıklar sağlar.</p>
<p> </p>
<p><strong>Nasıl Değiştirilir?</strong><br />
Bunun için öncelikle bir FTP programı kurmalısınız.Tavsiyem FileZilla&#8217;dır.<br />
FTP programınızla sitenize bağlandıktan sonra açınız. Burada herhangi bir dosyayı seçerek mousenuzun sağ tuşuna tıklayınız. Bir pencere açılacak ve burada bazı özellikler yer alacaktır.(Yeni klasör oluşturma,doğal özellik değiştirme,isim değiştirme,silme gibi.).<br />
Bu pencere Doğal özellik değiştirme (&#8220;Change File Attributes&#8221;) özelliğini seçiniz. Buraya mousenuzun sol tuşu ile bir kere basarsanız ufak bir pencere açılır. Burada 9 farklı kontrol kutusu ve 1 tane de yazı kutusu yer almaktadır. Tavsiyemiz yazı kutusuna (ufak pencerenin en altındaki kutucuk) chmod değerini (genelde bu ayar php dosyalarınız için 755 tir.) yazınız. Veya 9 kontrol kutusundan şunları işaretleyiniz :</p>
<p> </p>
<p><strong>User : Read , Write , Execute<br />
Group : Read , Execute<br />
World : Read , Execute</strong></p>
<p> </p>
<p>Bu işlemi yaptıktan sonra &#8220;Tamam&#8221; veya &#8220;Ok&#8221; butonuna tıklayınız. Bu işlemden sonra da orta büyüklükte pencere çıkacak. Bu pencere sadece sizden onay beklemek içindir. Buna da &#8220;Ok&#8221; veya &#8220;Tamam&#8221; demezseniz scriptiniz yine çalışmaz. Bu işlemden sonra scriptiniz web üzerinden çalışır duruma gelecektir. Yani CHMOD değişmiş olacaktır.</p>
<p>Php ile alakalı bazı dosya veya klasörlerin bu CHMOD ayarının 666 ya da 777 olması istenir bu değişikliklerin yapılmaması halinde yine normal olarak dosyanız gerektiği gibi çalışmayacaktır.</p>
<p>Örneğin; Php Nuke için ana dizindeki config.php dosyası CHMOD ayarı (666) olmalıdır ki sizin sitenizde yapacağınız tüm değişiklikleri algılayıp dosyayı gerektiği (sizin yaptığınız değişikliği) gibi çalıştırabilsin.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[chmod]]></title>
<link>http://lsvatiisc.wordpress.com/2009/08/07/chmod/</link>
<pubDate>Fri, 07 Aug 2009 13:16:12 +0000</pubDate>
<dc:creator>lsvatiisc</dc:creator>
<guid>http://lsvatiisc.wordpress.com/2009/08/07/chmod/</guid>
<description><![CDATA[chmod is a Unix command that lets you tell the system how much (or little) access it should permit t]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><em><strong><code>chmod</code></strong></em> is a Unix command that lets you tell the system how much (or little) access it should permit to a file.<em><strong> </strong></em></p>
<p><em><strong>chmod</strong></em> changes the permissions of  a file&#8230;</p>
<p><strong>Syntax:</strong></p>
<p><em>chmod [OPTION]&#8230; MODE[,MODE]&#8230; FILE&#8230;<br />
chmod [OPTION]&#8230; OCTAL-MODE FILE&#8230;<br />
chmod [OPTION]&#8230; &#8211;reference=RFILE FILE&#8230;</em></p>
<table style="width:100%;" border="0" cellspacing="1" cellpadding="5">
<tbody>
<tr>
<td style="width:120px;" valign="top">-c, &#8211;changes</td>
<td valign="top">like verbose but report only when a change is made</td>
</tr>
<tr>
<td style="width:120px;" valign="top">&#8211;no-preserve-root</td>
<td valign="top">do not treat `/&#8217; specially (the default)</td>
</tr>
<tr>
<td style="width:120px;" valign="top">&#8211;preserve-root</td>
<td valign="top">fail to operate recursively on `/&#8217;</td>
</tr>
<tr>
<td style="width:120px;" valign="top">-f, &#8211;silent, &#8211;quiet</td>
<td valign="top">suppress most error messages</td>
</tr>
<tr>
<td style="width:120px;" valign="top">-v, verbose</td>
<td valign="top">output a diagnostic for every file processed</td>
</tr>
<tr>
<td style="width:120px;" valign="top">&#8211;reference=RFILE</td>
<td valign="top">use RFILE&#8217;s mode instead of MODE values</td>
</tr>
<tr>
<td style="width:120px;" valign="top">-R, &#8211;recursive</td>
<td valign="top">change files and directories recursively</td>
</tr>
<tr>
<td style="width:120px;" valign="top">&#8211;help</td>
<td valign="top">display this help and exit</td>
</tr>
<tr>
<td style="width:120px;" valign="top">&#8211;version</td>
<td valign="top">output version information and exit</td>
</tr>
</tbody>
</table>
<p>What text permissions values mean:</p>
<table style="border:1px solid black;width:100%;" border="0">
<tbody>
<tr>
<td><strong>u</strong></td>
<td>Sets permissions for the owner of the file, e.g.: &#8220;u+w&#8221;       allows the owner to write to the file</td>
</tr>
<tr>
<td><strong>g</strong></td>
<td>Sets permissions for the group (to which owner belongs), e.g.       &#8220;g-x&#8221; suppresses the execution of the file by the group</td>
</tr>
<tr>
<td><strong>o</strong></td>
<td>Sets permissions for other users (that are not in group), e.g.: &#8220;o=r&#8221; allows       others only to read the file</td>
</tr>
<tr>
<td><strong>a</strong></td>
<td>Sets permissions for all (owner, group and others), e.g.:       &#8220;a-w&#8221; disables write access to the file for everyone</td>
</tr>
<tr>
<td><strong>=</strong></td>
<td>Assigns the permissions, e.g. &#8220;a=rw&#8221;, sets read and write       permissions and disables execution for all</td>
</tr>
<tr>
<td><strong>-</strong></td>
<td>Removes certain thing[s] from the permissions, keeping all other (not       involved) permissions. E.g. &#8220;a-x&#8221; disables execution of the file       for everyone, this example doesn&#8217;t touch read and write permissions.</td>
</tr>
<tr>
<td><strong>+</strong></td>
<td>Adds certain thing[s] to the permissions, keeping all other (not       involved) permissions. E.g. &#8220;a+x&#8221; allows execution of the file       for everyone, this example doesn&#8217;t touch read and write permissions.</td>
</tr>
<tr>
<td><strong>r</strong></td>
<td>Sets read permissions</td>
</tr>
<tr>
<td><strong>w</strong></td>
<td>Sets write permissions</td>
</tr>
<tr>
<td><strong>x</strong></td>
<td>Sets execute permissions</td>
</tr>
<tr>
<td><strong>t</strong></td>
<td>Sets sticky bit, e.g. &#8220;o+t&#8221; sets sticky bit for a file</td>
</tr>
<tr>
<td><strong>s</strong></td>
<td>Sets SUID or SGID. E.g.: &#8220;u+s&#8221;       sets SUID, &#8220;g+s&#8221; sets SGID.</td>
</tr>
</tbody>
</table>
<p><span style="text-decoration:underline;"><strong>Numeric Permissions</strong>:<br />
</span>CHMOD can also to attributed by using Numeric Permissions:</p>
<p>400 read by owner<br />
040 read by group<br />
004 read by anybody (other)<br />
200 write by owner<br />
020 write by group<br />
002 write by anybody<br />
100 execute by owner<br />
010 execute by group<br />
001 execute by anybody</p>
<p><strong>Examples:</strong></p>
<p>The above numeric permissions can be added to set a certain permission, for example, a common HTML file on a Unix server to be only viewed over the Internet would be:</p>
<p>chmod 644 file.htm</p>
<p>This gives the file read/write by the owner and only read by everyone else (-rw-r&#8211;r&#8211;).</p>
<p>Files such as scripts that need to be executed need more permissions. Below  is another example of a common permission given to scripts.</p>
<p>chmod 755 file.cgi</p>
<p>This would be the following 400+040+004+200+100+010+001 = 755 where you are giving all the rights except the capability for anyone to write to the file.cgi file(-rwxr-xr-x).</p>
<p>Finally, another common CHMOD permission is 666, as shown below, which is read and write by everyone.</p>
<p>chmod 666 file.txt</p>
<p><strong>Additional information:</strong></p>
<p><a name="05"></a></p>
<p>Below is an example of how a file may be listed when typing ( ls -l ) at the prompt as well as information on how to interpret it.</p>
<p>-rw-rw-r&#8211; 1   hope  123   Feb 03 15:36   file.txt</p>
<table style="width:100%;" border="0" cellspacing="1" cellpadding="5">
<tbody>
<tr>
<td>-</td>
<td>rw</td>
<td>rw-</td>
<td>r&#8211;</td>
<td>1</td>
<td>hope</td>
<td>123</td>
<td>Feb 03 15:36</td>
<td>file.txt</td>
</tr>
<tr>
<td>File</td>
<td>owner</td>
<td>group</td>
<td>everyone else</td>
<td>links</td>
<td>owner</td>
<td>size</td>
<td>mod date</td>
<td>file name</td>
</tr>
</tbody>
</table>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Ubuntu 9.04 não verifica atualizações?]]></title>
<link>http://trx64.wordpress.com/2009/07/20/ubuntu-9-04-nao-verifica-atualizacoes/</link>
<pubDate>Mon, 20 Jul 2009 13:10:58 +0000</pubDate>
<dc:creator>trx64</dc:creator>
<guid>http://trx64.wordpress.com/2009/07/20/ubuntu-9-04-nao-verifica-atualizacoes/</guid>
<description><![CDATA[Todos sabem que o novo sistema de notificação de atualizações é bem polêmico. Ao invés de mostrar um]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Todos sabem que o novo sistema de notificação de atualizações é bem polêmico. Ao invés de mostrar um ícone na barra de tarefas, ele exibe a janela de atualizações, o que pode ser irritante. Outra mudança é que ele só irá notificá-lo diariamente de atualizações de segurança, avisando de updates menores apenas uma vez por semana.</p>
<p>Mas esse não é o objetivo desse artigo. A idéia aqui é resolver um problema que algumas pessoas (como eu <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) vem tendo. O sistema não verifica atualizações nunca! Ao abrir o Gerenciador de Atualizações você pode ver que nada foi atualizado a vários dias. Isso é fácil de resolver. O que acontece é que o script que faz a verificação da cache do apt-get está sem permissão de execução. Para resolver, basta adicionar essa permissão para ele:</p>
<p>$ sudo chmod +x /etc/cron.daily/apt</p>
<p>As permissões irão passar de 644 para 755, que é o correto. Esse problema ocorreu com quem fez a atualização automática do 8.10 para o 9.04 e já possuir uma entrada no <a href="https://bugs.edge.launchpad.net/ubuntu/+source/update-notifier/+bug/356152">Launchpad</a>. Com isso já estará OK. Se você quiser testar, apague o arquivo /var/spool/anacron/cron.daily:</p>
<p>$ sudo rm /var/spool/anacron/cron.daily</p>
<p>E reinicie. Esse arquivo diz ao cron (agendador de tarefas) quais ações já foram feitas hoje. Ao apagar o arquivo e reiniciar, ele irá achar que ainda não fez nada e realizará as ações novamente. Isso não é necessário para o tutorial funcionar, já que ele iria verificar novamente no dia seguinte de qualquer maneira. Esse procedimento é só para testar se tudo está funcionando.</p>
<p>Espero que tenha ajudado, até a próxima.</p>
<p><img class="aligncenter size-full wp-image-193" title="screenshot1" src="http://trx64.wordpress.com/files/2009/07/screenshot12.png" alt="screenshot1" width="340" height="247" /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[La protezione dei file e i permessi]]></title>
<link>http://mborrelli.wordpress.com/2009/07/20/la-protezione-dei-file-e-i-permessi/</link>
<pubDate>Mon, 20 Jul 2009 09:30:37 +0000</pubDate>
<dc:creator>mborrelli</dc:creator>
<guid>http://mborrelli.wordpress.com/2009/07/20/la-protezione-dei-file-e-i-permessi/</guid>
<description><![CDATA[Ogni file esistente sul computer ha un proprietario e solo il superuser, che noi chiameremo sempre r]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Ogni file esistente sul computer ha un proprietario e solo il <em>superuser, </em>che noi chiameremo sempre <strong>root </strong>(non sempre è identificato con questo nome ma se andiamo nel file /etc/passwd sarà l&#8217;utente contraddistinto dal UID 0), può cambiare le proprietà.</p>
<p>I comandi per cambiare la proprietà di un file sono:</p>
<blockquote><p><strong>chown</strong> <em>utente file                                 Cambia il proprietario.<br />
</em></p>
<p><strong>chgrp</strong> <em>gruppo file                                Cambia il gruppo.<br />
</em></p>
<p><strong>chown</strong> <em>utente:gruppo file</em> <em> Cambia</em> l&#8217;utente e il gruppo.</p></blockquote>
<p>L&#8217;utente <em>root</em> può anche cambiare tutti i permessi  d&#8217;accesso ai file. Per vedere i permessi d&#8217;accesso ai file da terminale digitiamo il comando ls seguito dal suffisso -l:</p>
<blockquote><p>mattia@ubuntu:~$ ls -l<br />
totale 4944<br />
-rw-r&#8211;r&#8211;  1 mattia mattia     121 2009-06-26 11:10 script.sh~<br />
drwxr-xr-x  2 mattia mattia    4096 2009-06-26 18:34 bash<br />
-rw-r&#8211;r&#8211;  1 mattia mattia     132 2009-06-26 11:02 cleanup<br />
-rwxr-xr-x  1 mattia mattia     143 2009-06-26 11:04 cleanup.sh<br />
-rw-r&#8211;r&#8211;  1 mattia mattia     1094375 2009-07-08 18:06 immagine.jpg<br />
drwxr-xr-x  2 mattia mattia    4096 2009-06-01 21:30 Documenti</p></blockquote>
<p>Come potete notare i nomi dei file sono preceduti da lettere e da numeri, quello che ci interessa a noi sono i gruppi di 10 caratteri all&#8217;inizio della riga.</p>
<h2>Analisi dei permessi</h2>
<p>Il primo carattere sta ad indicare se si tratta di un file o di una directory, per tanto quando sarà presente un trattino &#8216;<strong> &#8211; </strong>&#8216; parleremo di file altrimenti se ci sarà la lettera <strong>d</strong> si tratterà di un directory. I restanti 9 caratteri sono suddivisi in 3 gruppi, i primo 3 caratteri definiranno i permessi concessi al proprietario del file, i seguenti 3 definiranno i permessi concessi agli utenti membri del gruppo a cui appartiene il file e i restanti 3 i permessi concessi a tutti gli altri.</p>
<p>Ogni gruppo di 3 caratteri indica il permesso di <strong><em>lettura, scrittura ed esecuzione</em></strong> di un file:</p>
<ul>
<li><strong>r </strong>o <strong>- </strong>permesso di <em><strong>l</strong><strong>ettura</strong></em> concesso o negato.</li>
<li><strong>w</strong> o -     permesso di <em><strong>scrittura</strong></em> concesso o negato.</li>
<li><strong>x</strong> o -      permesso di <em><strong>esecuzione</strong></em> concesso o negato.</li>
</ul>
<p>Per le directory il significato dei permessi è:</p>
<ul>
<li><strong>r </strong> <strong> </strong>permesso di  listare il contenuto della cartella (comando ls).</li>
<li><strong>w</strong> consente di aggiungere file alla directory e di cancellarli.</li>
<li><strong>x</strong> permesso di fare riferimento nel percorso (pathname) alla directory  (comando cd).</li>
</ul>
<h2>Cambiare i permessi</h2>
<p>Per cambiare i permessi di un file si usa il comando <strong>chmod</strong> utilizzando la forma simbolica o la forma ottale.</p>
<h3>La forma simbolica</h3>
<p>La forma simbolica è caratterizzata da una combinazione tra <em>codice utente, operatore e codice di permesso.</em></p>
<p>I codici utenti sono:</p>
<ul>
<li><strong>u </strong>proprietario</li>
<li><strong>g</strong> gruppo</li>
<li><strong>o</strong> altri</li>
<li><strong>a</strong> tutti</li>
</ul>
<p>Gli operatori sono:</p>
<ul>
<li><strong>+</strong> aggiunge il permesso</li>
<li><strong>-</strong> rimuove il permesso</li>
</ul>
<p>I codici di permesso sono:</p>
<ul>
<li><strong>r</strong> lettura</li>
<li><strong>w </strong>scrittura</li>
<li><strong>x </strong>esecuzione</li>
</ul>
<p>Ecco alcuni esempi:</p>
<blockquote><p>mattia@ubuntu:~$ sudo chmod go+w file1   Da il permesso di scrittura al gruppo e agli altri</p></blockquote>
<blockquote><p>mattia@ubuntu:~$ sudo chmod u+x file1       Da il permesso di esecuzione al proprietario</p></blockquote>
<h3>La forma ottale</h3>
<p>Nella forma ottale si fa uso di 4 cifre per definire i permessi di utente, membri gruppo utente e altri assegnando alle cifre un significato particolare:</p>
<blockquote><p><strong>4 </strong>permesso di scrittura  <strong>2</strong> permesso di lettura  <strong>1</strong> permesso di esecuzione  <strong>0</strong> nessun permesso</p></blockquote>
<p>Ecco alcuni esempi:</p>
<blockquote><p>mattia@ubuntu:~$ sudo chmod 764    <em>Da il permesso di scrittura, lettura ed esecuzione all&#8217;utente proprietario, ai membri del gruppo utente solo il permesso di lettura e scrittura mentre algli altri solo il permesso di lettura.</em></p></blockquote>
<p>Quando viene creato una directory o un file il sistema assegna automaticamente un insieme predefinito di permessi:</p>
<ul>
<li>Le directory <strong>777</strong> cioè <strong>rwx</strong><strong>rwx</strong><strong>rwx</strong></li>
<li>I file 666 cioè <strong>rwx</strong><strong>rwx</strong><strong>rw-</strong></li>
</ul>
<p>Solo i file creati da un compilatore ricevono il permesso 777 che da l&#8217;accesso completo.</p>
<p>Per modificare i permessi della definizione automatica in maniera restrittiva si usa il comando <strong>umask</strong> seguito dalle 3 cifre ottali che servono a togliere e non a definire i permessi di default. Ecco qualche esempio:</p>
<blockquote><p>mattia@ubuntu:~$ sudo umask 022 toglie i permessi di scrittura a tutti tranne che l&#8217;utente.</p>
<p>mattia@ubuntu:~$ sudo umask 077nega l&#8217;accesso a tutti tranne che al proprietario.</p></blockquote>
<p>Spero di essere stato chiaro nella spiegazione, alla prossima!!</p>
<p>Condividi su:&#160;&#160;<a href="http://www.facebook.com/sharer.php?u=http://mborrelli.wordpress.com/2009/07/20/la-protezione-dei-file-e-i-permessi/" title="condividi su Facebook"><img src="http://static.ak.fbcdn.net/images/share/facebook_share_icon.gif?8:26981" /></a>&#160;&#160;<a href="http://del.icio.us/post?url=http://mborrelli.wordpress.com/2009/07/20/la-protezione-dei-file-e-i-permessi/" title="Condividi su Delicious"><img src="http://www.workingcapital.telecomitalia.it/images/addthis/icon_delicious.gif" />&#160;&#160;</a><a href="http://twitter.com/home?status=http://mborrelli.wordpress.com/2009/07/20/la-protezione-dei-file-e-i-permessi/" title="Condividi su Twitter"><img src="http://www.beppegrillo.it/immagini/Twitter-icon.gif" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Comando chmod]]></title>
<link>http://gnulinuxbr.wordpress.com/2009/07/14/comando-chmod/</link>
<pubDate>Tue, 14 Jul 2009 01:27:00 +0000</pubDate>
<dc:creator>vandocouto</dc:creator>
<guid>http://gnulinuxbr.wordpress.com/2009/07/14/comando-chmod/</guid>
<description><![CDATA[Comandos básicos do GNU/Linux chmod - (man 1) Altera a permissões de acesso aos arquivos chmod alter]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Comandos básicos do GNU/Linux</strong></p>
<p><span style="font-weight:bold;">chmod -</span> <span style="color:#ff0000;font-weight:bold;"> (man 1)</span><br />
Altera a permissões de acesso aos arquivos</p>
<div style="text-align:justify;">chmod altera a permissão para cada  arquivo  fornecido  de  acordo  com  modo, que ou pode ser uma representação simbólica das mudanças a serem feitas, ou um número octal que representa um padrão  de  bits  para  as novas permissões. O formato de um argumento de mudança no modo simbólico é</div>
<p><span style="color:#ff0000;"> <strong>‘[ugoa...][[+-=][rwxXstugo...]&#8230;][,...]’.</strong></span></p>
<p><span style="font-weight:bold;">-c, &#8211;changes</span></p>
<p>Detalhadamente  descreve  a  ação  para  cada arquivo cujas permissões estão sendo alteradas.<span style="font-weight:bold;"> </span></p>
<p><span style="font-weight:bold;">-f, &#8211;silent, &#8211;quiet</span></p>
<div style="text-align:justify;">Não mostra mensagens de erro para o arquivo cujas permissões não podem ser alteradas.</div>
<div style="text-align:justify;"><span style="font-weight:bold;">-v, &#8211;verbose</span></div>
<div style="text-align:justify;">Descreve detalhadamente toda ação ocorrida para cada arquivo.</div>
<div style="text-align:justify;"><span style="font-weight:bold;">-R, &#8211;recursive</span></div>
<div style="text-align:justify;"><span style="font-weight:bold;"><br />
</span></div>
<div style="text-align:justify;">Altera  recursivamente  a  permissão  dos  diretórios  e de seus conteúdos.</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Права на файлы в Linux, общая информация.]]></title>
<link>http://gardarea51.wordpress.com/2009/07/07/%d0%bf%d1%80%d0%b0%d0%b2%d0%b0-%d0%bd%d0%b0-%d1%84%d0%b0%d0%b9%d0%bb%d1%8b-%d0%b2-linux-%d0%be%d0%b1%d1%89%d0%b0%d1%8f-%d0%b8%d0%bd%d1%84%d0%be%d1%80%d0%bc%d0%b0%d1%86%d0%b8%d1%8f/</link>
<pubDate>Tue, 07 Jul 2009 06:51:00 +0000</pubDate>
<dc:creator>gardarea51</dc:creator>
<guid>http://gardarea51.wordpress.com/2009/07/07/%d0%bf%d1%80%d0%b0%d0%b2%d0%b0-%d0%bd%d0%b0-%d1%84%d0%b0%d0%b9%d0%bb%d1%8b-%d0%b2-linux-%d0%be%d0%b1%d1%89%d0%b0%d1%8f-%d0%b8%d0%bd%d1%84%d0%be%d1%80%d0%bc%d0%b0%d1%86%d0%b8%d1%8f/</guid>
<description><![CDATA[Здравствуйте! Нашел небольшую неточность в описании старой темы и решил переделать, разбив ее на 2 ч]]></description>
<content:encoded><![CDATA[Здравствуйте! Нашел небольшую неточность в описании старой темы и решил переделать, разбив ее на 2 ч]]></content:encoded>
</item>
<item>
<title><![CDATA[Menyembunyikan dan proteksi / lock File atau folder di linux ubuntu]]></title>
<link>http://mbahnya.wordpress.com/2009/06/27/menyembunyikan-dan-proteksi-lock-file-atau-folder-di-linux-ubuntu/</link>
<pubDate>Sat, 27 Jun 2009 11:44:32 +0000</pubDate>
<dc:creator>mbahnya</dc:creator>
<guid>http://mbahnya.wordpress.com/2009/06/27/menyembunyikan-dan-proteksi-lock-file-atau-folder-di-linux-ubuntu/</guid>
<description><![CDATA[Ternyata untuk menyembunyikan dan mengunci file atau folder di linux ubuntu cukup mudah, tanpa perlu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Ternyata untuk menyembunyikan dan mengunci file atau folder di linux ubuntu cukup mudah, tanpa perlu sopwer.<br />
Untuk mnyembunyikan file/folder cukup menambahkan titik pada nama file/folder anda. Jadi, umpama nama foldernya adalah mbahnya maka rubah menjadi [.mbahnya]-tanpa tnda kurung. Kemudian tekan F5. Jreeng&#8230;.. Eng ing eng, hilang dech.<br />
Sedang untuk mengunci file ikuti langkah berikut ;<br />
1. Buka terminal;<br />
2. Ketikkan : sudo chmod -R 0444 file/folder -v<br />
* file/folder = nama dan lokasi file/folder anda.</p>
<p>Sekarang ktika filenya sudah &#8220;hilang&#8221; dan terprotek, maka untuk melihat file tersembunyi tersebut tekan ctrl+H. Begitu juga sbaliknya, untuk menyembunyikannya juga tekan ctrl+H. Adapun untuk unprotect file di linux, angka 444 diganti 744.<br />
Ada yang kurang ato salah? Koreksi ya&#8230;&#8230;</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
