<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-1759347678287596715</id><updated>2009-11-03T13:15:30.024+01:00</updated><title type='text'>In Your System</title><subtitle type='html'>Blog dedicado a la guía de instalación y configuración de paquetería en computadores.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://inyoursystem.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default'/><link rel='alternate' type='text/html' href='http://inyoursystem.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Antonio Manuel Fernández Pérez</name><uri>http://www.blogger.com/profile/01754942478755924276</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1759347678287596715.post-1205920245563717436</id><published>2009-03-15T19:46:00.002+01:00</published><updated>2009-03-15T19:53:24.536+01:00</updated><title type='text'>Clave pública de Open Office en actualizaciones provoca error.</title><content type='html'>Puede ser que alguna vez tengas un problema causado porqué el gestor de paquetes de tu distro no acceda a conseguir la clave pública llegando a producir un error. Con la siguiente instrucción solventarás el problema.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="font-weight: bold;"&gt;gpg --keyserver subkeys.pgp.net --recv-key $Llave &amp;amp;&amp;amp; gpg -a --export $PUBKRY | sudo apt-key add -&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;El error, te facilita una clave, de esa clave, fíjate en los últimos 8 dígitos y sustituyelo en la instrucción en donde aparece $Llave. Ejecuta como sudo, si utilizas una distro tipo ubuntu, actualiza y problema resuelto. Yo lo he tenido en todas las actualizaciones de paquetería, incluso en las traducciones de open office a español. Mi problema justamente vino por querer traducir open office 3.0 a español y obtenía siempre error por el repositorío launchpad de open office. Ahroa con esa instrucción lo he resuelto. Si quieres traducir open office al español, ejecuta la siguiente instrcucción: &lt;span style="font-style: italic; font-weight: bold;"&gt;sudo apt-get install openoffice.org-l10n-es&lt;/span&gt;.&lt;br /&gt;Recuerda! Es recomendable actualizar las cabeceras antes de cualquier instalación!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1759347678287596715-1205920245563717436?l=inyoursystem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inyoursystem.blogspot.com/feeds/1205920245563717436/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1759347678287596715&amp;postID=1205920245563717436' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/1205920245563717436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/1205920245563717436'/><link rel='alternate' type='text/html' href='http://inyoursystem.blogspot.com/2009/03/clave-publica-de-open-office-en.html' title='Clave pública de Open Office en actualizaciones provoca error.'/><author><name>Antonio Manuel Fernández Pérez</name><uri>http://www.blogger.com/profile/01754942478755924276</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08302901466374595908'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1759347678287596715.post-6701221743275731893</id><published>2008-12-19T17:54:00.003+01:00</published><updated>2008-12-19T17:58:05.028+01:00</updated><title type='text'>Problema con fichero system de Windows.</title><content type='html'>Hola, bueno ante el problema que puede ocasionar el borrado, pérdida o modificación errónea de este fichero, aquí pongo una solución que parece funcionar.&lt;br /&gt;&lt;br /&gt;Iniciar con el cd de instalacion de Windows XP y entrar a la consola de recuperación. Ejecutar: cd C:\windows\repair y pones "copy system c:\windows\system32\config" sobreescribes el archivo y reinicias.&lt;br /&gt;&lt;br /&gt;Puede ser que iniciando únicamente el cd de Windows XP y entrando en modo recuperación se solvente el problema.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1759347678287596715-6701221743275731893?l=inyoursystem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inyoursystem.blogspot.com/feeds/6701221743275731893/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1759347678287596715&amp;postID=6701221743275731893' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/6701221743275731893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/6701221743275731893'/><link rel='alternate' type='text/html' href='http://inyoursystem.blogspot.com/2008/12/problema-con-fichero-system-de-windows.html' title='Problema con fichero system de Windows.'/><author><name>Antonio Manuel Fernández Pérez</name><uri>http://www.blogger.com/profile/01754942478755924276</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08302901466374595908'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1759347678287596715.post-1970774170971759614</id><published>2008-12-19T12:31:00.001+01:00</published><updated>2008-12-19T12:41:15.562+01:00</updated><title type='text'>Eliminar WinDefender2009</title><content type='html'>Bueno, aquí dejo un enlace para eliminar Windefender2009. Espero que os sirva!!! Está masticadito, paso a paso.&lt;br /&gt;&lt;br /&gt;&lt;a&gt;http://www.411-spyware.com/es/eliminar-windefender-2009&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1759347678287596715-1970774170971759614?l=inyoursystem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inyoursystem.blogspot.com/feeds/1970774170971759614/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1759347678287596715&amp;postID=1970774170971759614' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/1970774170971759614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/1970774170971759614'/><link rel='alternate' type='text/html' href='http://inyoursystem.blogspot.com/2008/12/eliminar-windefender2009.html' title='Eliminar WinDefender2009'/><author><name>Antonio Manuel Fernández Pérez</name><uri>http://www.blogger.com/profile/01754942478755924276</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08302901466374595908'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1759347678287596715.post-8374594105057517162</id><published>2008-12-02T18:13:00.008+01:00</published><updated>2008-12-05T17:27:27.206+01:00</updated><title type='text'>Shell Scripts - Copiar linas de un fichero a otro.</title><content type='html'>&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;He aquí un script para copiar las n primeras lineas de un fichero a otro fichero.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;Echale un ojo!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;Fich1=$1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;Fich2=$2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;NLineas=$3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if [ $# != 3 ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;   echo "[x] El número de parámetros es incorrecto."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;   echo "Se esperaban tres argumentos."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;   exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;/usr/bin/test -f $Fich1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if [ $? = 1 ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;   echo "[x] El argumento $Fich1 no es un fichero o no existe."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;   exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;/usr/bin/test -f $Fich2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if [ $? = 1 ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;   echo "[x] El argumento $Fich2 no es un fichero o no existe."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;   echo "Se creará $Fich2."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if expr $NLineas \&lt;= 0 &amp;amp;&gt;/dev/null;then &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;   echo "[x] El número de lineas recibido como parámetro es incorrecto."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;   echo "Se esperaba un valor mayor que 0."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;   exit &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;LineasReales=`/usr/bin/wc -l $Fich1 | cut  -d\  -f1`&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if test $LineasReales -lt $NLineas;then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;   echo "[x] El fichero $Fich1 tiene menos lineas de las que se desean copiar."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;   exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;/bin/cat $Fich1 | /usr/bin/head -n$NLineas &gt;&gt; $Fich2&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1759347678287596715-8374594105057517162?l=inyoursystem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inyoursystem.blogspot.com/feeds/8374594105057517162/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1759347678287596715&amp;postID=8374594105057517162' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/8374594105057517162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/8374594105057517162'/><link rel='alternate' type='text/html' href='http://inyoursystem.blogspot.com/2008/12/shell-script-copiar-linas-de-un-fichero.html' title='Shell Scripts - Copiar linas de un fichero a otro.'/><author><name>Antonio Manuel Fernández Pérez</name><uri>http://www.blogger.com/profile/01754942478755924276</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08302901466374595908'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1759347678287596715.post-1656475007615886621</id><published>2008-11-30T18:55:00.004+01:00</published><updated>2008-12-04T10:18:36.839+01:00</updated><title type='text'>Shell Scripts - Script para exportar directorios</title><content type='html'>Script para la exportación de directorios en sistemas Linux.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;DIR=vacio&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;READ=vacio&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;WRITE=vacio&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;MACHINE=vacio&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;SERVICES=vacio&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;NOTVALID=1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;clear&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;while getopts d:rwm:s OPCION&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;do&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if [ "$OPCION" = "d" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  DIR=$OPTARG&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  NOTVALID=2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if [ "$OPCION" = "r" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  READ=si&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if [ "$OPCION" = "w" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  WRITE=si&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if [ "$OPCION" = "m" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  MACHINE=$OPTARG&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  NOTVALID=2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if [ "$OPCION" = "s" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  SERVICES=si&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;done   &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if [ "$NOTVALID" = 2 ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if [ "$DIR" = "vacio" ] || [ "$DIR" = "" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  echo "[X] El directorio introducido no es valido."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  sleep 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  exit &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  test -d $DIR&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  EXISTE=$?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  if [ "$EXISTE" = 1 ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    echo "[X] El directorio introducido no existe."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    sleep 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    echo "[?] ¿Desea crearlo? (s/n)"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    read ANS&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    if [ "$ANS" = "s" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      mkdir $DIR&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      NOTVALID=1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    if [ "$MACHINE" = "vacio" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      echo "[i] Introduzca una maquina o una red para establecer el compartimento:"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      read MACHINE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      echo "[?] ¿Se trata de una red? (s/n)"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      read ANS&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      if [ "$ANS" = "s" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;        echo "Ajustando parametros de mascara para la red $MACHINE ..."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;        sleep 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;        MACHINE=$MACHINE"/255.255.255.0"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;EXISTE=1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if [ "$NOTVALID" = 1 ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;until [ "$EXISTE" = 0 ]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;do&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  echo "[i] Introduzca un directorio a exportar:"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  echo "Directorio (Ruta completa):"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  read DIR&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  test -d $DIR&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  EXISTE=$?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  if [ "$EXISTE" = 1 ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    echo "[X] El directorio introducido no existe."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    sleep 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    echo "[?] ¿Desea crearlo? (s/n)"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    read ANS&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    if [ "$ANS" = "s" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      mkdir $DIR&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      EXISTE=0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    echo "Asignando permisos minimos necesarios ..."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    sleep 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    chmod o+r $DIR&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    echo "[i] Introduzca una maquina para añadir al fichero de compartimento:"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    read MACHINE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    echo "[?] ¿Se trata de una red? (s/n)"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    read ANS&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    if [ "$ANS" = "s" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      echo "Ajustando parametros de mascara para la red $MACHINE ..."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      sleep 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      MACHINE=$MACHINE"/255.255.255.0"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;done&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;echo "READ=$READ,WRITE=$WRITE"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;read x&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if [ "$READ" = "si" ] &amp;amp;&amp;amp; [ "$WRITE" = "vacio" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;MACHINE=$MACHINE"(ro)"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if [ "$READ" = "vacio" ] &amp;amp;&amp;amp; [ "$WRITE" = "si" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  MACHINE=$MACHINE"(rw)"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  if [ "$READ" = "si" ] &amp;amp;&amp;amp; [ "$WRITE" = "si" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    MACHINE=$MACHINE"(rw)"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  if [ "$READ" = "vacio" ] &amp;amp;&amp;amp; [ "$WRITE" = "vacio" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    echo "[?] ¿Desea dar permiso de solo lectura al recurso, o de lectura y escritura? (r-solo lectura, w-lectura y escritura)"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    read ANS&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    if [ "$ANS" = "r" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      MACHINE=$MACHINE"(ro)"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    if [ "$ANS" = "w" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;      MACHINE=$MACHINE"(rw)"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;    fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;  fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;echo "Concediendo los permisos establecidos ..."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;sleep 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;if [ "$SERVICES" = "si" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;/etc/init.d/nfs restart&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;/etc/init.d/portmap restart&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 204, 0);"&gt;echo "$DIR $MACHINE" &gt;&gt; /etc/exports&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1759347678287596715-1656475007615886621?l=inyoursystem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inyoursystem.blogspot.com/feeds/1656475007615886621/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1759347678287596715&amp;postID=1656475007615886621' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/1656475007615886621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/1656475007615886621'/><link rel='alternate' type='text/html' href='http://inyoursystem.blogspot.com/2008/11/script-para-exportar-directorios.html' title='Shell Scripts - Script para exportar directorios'/><author><name>Antonio Manuel Fernández Pérez</name><uri>http://www.blogger.com/profile/01754942478755924276</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08302901466374595908'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1759347678287596715.post-8459981526184397871</id><published>2008-11-30T18:54:00.004+01:00</published><updated>2008-12-04T10:19:10.855+01:00</updated><title type='text'>Shell Scripts - Script gestión usuarios para vsftpd</title><content type='html'>A continuación un script para gestionar usuarios de este servicio. Para echarle un ojo!&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;USUARIO=vacio&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;PASSWORD=vacio&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;NOTVALID=1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;#EVALUACION DE PARAMETROS&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;#------------------------&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;while getopts u:p: OPCION&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;do&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; if [ "$OPCION" = "u" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   USUARIO=$OPTARG&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   NOTVALID=2  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; if [ "$OPCION" = "p" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   PASSWORD=$OPTARG&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   NOTVALID=2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;done&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;#FILTROS&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;if [ "$NOTVALID" = 2 ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; if [ "$USUARIO" = "" ] || [ "$USUARIO" = "vacio" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   echo "[X] El usuaio introducido no es valido."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   sleep 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   NOTVALID=1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; if [ "$PASSWORD" = "" ] || [ "$PASSWORD" = "vacio" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   echo "[X] El password introducido no es valido."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   sleep 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   NOTVALID=1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; if [ "$NOTVALID" != 1 ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   NOTVALID=0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;#INTRODUCCION SI NO SE LE PASAN PARAMETROS&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;until [ "$NOTVALID" = 0 ]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;do&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; clear&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; if [ "$USUARIO" = "vacio" ] || [ "$NOTVALID" = 1 ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   echo "[i] Introduzca un nombre para el usuario:"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   read USUARIO&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   echo "[i] Introduzca un password para el usuario $USUARIO:"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   read PASSWORD&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   NOTVALID=0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; if [ "$USUARIO" = "" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   echo "[X] Usuario no valido."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   NOTVALID=1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; if [ "$PASSWORD" = "" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   echo "[X] Password de $USUARIO no valido."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   NOTVALID=1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;done&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;#Compruebo la existencia del fichero users.txt, si no existe, lo creo&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;test -f /etc/vsftpd/users.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;EXISTE=$?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;if [ "$EXISTE" = 1 ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; &gt;/etc/vsftpd/users.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;CONT=0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;while read LINEA&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;do&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; let CONT=$CONT+1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; let A=$CONT%2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; if [ $A = 1 ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   if [ "$LINEA" = "$USUARIO" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;     echo "[X] El usuario introducido ya existe."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;     sleep 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;     exit&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;   fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;done &lt; /etc/vsftpd/users.txt   echo "$USUARIO" &gt;&gt; /etc/vsftpd/users.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;echo "$PASSWORD" &gt;&gt; /etc/vsftpd/users.txt&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;echo "[i] Añadiendo a $USUARIO ..."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;sleep 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;/etc/init.d/vsftpd restart&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;db_load -T -t hash -f /etc/vsftpd/users.txt /etc/vsftpd/users.db&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;echo "Compilando fichero de usuarios..."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;sleep 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;echo "auth required /lib/security/pam_userdb.so db=/etc/vsftpd/users" &gt; /etc/pam.d/vsftpd&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;echo "account required /lib/security/pam_userdb.so db=/etc/vsftpd/users" &gt;&gt; /etc/pam.d/vsftpd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;test -d /etc/vsftpd/users&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;EXISTE2=$?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;if [ "$EXISTE2" = 1 ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; echo "Creando directorio para las configuraciones de los usuarios..."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; sleep 2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; mkdir /etc/vsftpd/users&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;#Crea el fichero de configuracion del usuario&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&gt;/etc/vsftpd/users/$USUARIO&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;echo "Creando fichero de configuracion para $USUARIO ..."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;sleep 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;mkdir /home/ftpvirtual/$USUARIO&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;chown ftpvirtual /home/ftpvirtual/$USUARIO&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;echo "Dando permisos necesarios al directorio /home/ftpvirtual/$USUARIO ..."&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;sleep 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;echo "local_root=/home/ftpvirtual/$USUARIO" &gt;&gt; /etc/vsftpd/users/$USUARIO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;clear&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;echo "[?] ¿Desea que $USUARIO tenga permisos de escritura en el directorio? (s/n)"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;echo "Respuesta:"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;read ANSW&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;if [ "$ANSW" = "s" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; echo "write_enable=YES" &gt;&gt; /etc/vsftpd/users/$USUARIO&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; echo "write_enable=NO" &gt;&gt; /etc/vsftpd/users/$USUARIO&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;fi&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;ANSW=0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;echo "[?] ¿Desea que $USUARIO descargue archivos del servidor ftp? (s/n)"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;echo "Respuesta:"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;read ANSW&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;if [ "$ANSW" = "s" ];then&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; echo "download_enable=YES" &gt;&gt; /etc/vsftpd/users/$USUARIO&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt; echo "download_enable=NO" &gt;&gt; /etc/vsftpd/users/$USUARIO&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;fi&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1759347678287596715-8459981526184397871?l=inyoursystem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inyoursystem.blogspot.com/feeds/8459981526184397871/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1759347678287596715&amp;postID=8459981526184397871' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/8459981526184397871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/8459981526184397871'/><link rel='alternate' type='text/html' href='http://inyoursystem.blogspot.com/2008/11/script-gestin-usuarios-para-vsftpd.html' title='Shell Scripts - Script gestión usuarios para vsftpd'/><author><name>Antonio Manuel Fernández Pérez</name><uri>http://www.blogger.com/profile/01754942478755924276</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08302901466374595908'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1759347678287596715.post-4108921168714672135</id><published>2008-11-29T19:38:00.006+01:00</published><updated>2009-10-19T20:28:20.892+02:00</updated><title type='text'>Eliminar Windows Genuine</title><content type='html'>Bueno, si teneis las actualizaciones de windows activadas y habéis actualizado de forma automática, es posible que Windows haya instalado su herramienta Genuine para notificaros de que vuestro Sistema Operativo (vuestro Windows) no es original. Bueno, visitar este enlace (&lt;a href="http://download11.com/get/RemoveWGA.exe"&gt;aquí&lt;/a&gt;), descargar la pequeña aplicación y ejecutarla. Os pedirá reiniciar y ... Asunto arreglado!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1759347678287596715-4108921168714672135?l=inyoursystem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inyoursystem.blogspot.com/feeds/4108921168714672135/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1759347678287596715&amp;postID=4108921168714672135' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/4108921168714672135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/4108921168714672135'/><link rel='alternate' type='text/html' href='http://inyoursystem.blogspot.com/2008/11/eliminar-windows-genuine.html' title='Eliminar Windows Genuine'/><author><name>Antonio Manuel Fernández Pérez</name><uri>http://www.blogger.com/profile/01754942478755924276</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08302901466374595908'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1759347678287596715.post-7955920452127308646</id><published>2008-11-29T13:12:00.005+01:00</published><updated>2008-11-30T19:01:22.345+01:00</updated><title type='text'>Otros - En la lucha con la Informática</title><content type='html'>Actualmente, a los informáticos, se nos está despreciando. Siempre hemos estado poco valorados en el mundo laboral, la gente menosdesprecia nuestro trabajo. Se cree que la informática es saber instalar software, manejar bien paquetería de ofimática u optimizarle el pc al vecino.&lt;br /&gt;Nosotros los informáticos (y quién no piense esto que considere su profesión), hemos de luchar porque esto cambie. Tenemos que valorar nosotros mismos nuestro trabajo, demostrar que es algo más, ir más allá. Hemos de empezar por reivindicar nuestros derechos.&lt;br /&gt;Hace unos días, la propagación de una carta produjo cierto nerviosismo. La informática como ingeniería se ponía en tela de juicio. Se hablaba de que se eliminiaría, de que no podríamos terminar nuestros estudios o que si los terminabamos, no seríamos reconocidos nacionalmente ni a nivel de Europa. Hoy en día, con manifestaciones y acciones masivas en la red, tenemos la intención de llamar la atención del ministerio, de las entidades responsables para que reconozcan nuestra profesión, nuestros estudios. Luchamos porque queremos tener unas atribuciones profesionales y un reconocimiento.&lt;br /&gt;Lucheomos pues.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1759347678287596715-7955920452127308646?l=inyoursystem.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://inyoursystem.blogspot.com/feeds/7955920452127308646/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=1759347678287596715&amp;postID=7955920452127308646' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/7955920452127308646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1759347678287596715/posts/default/7955920452127308646'/><link rel='alternate' type='text/html' href='http://inyoursystem.blogspot.com/2008/11/en-la-lucha-con-la-informtica.html' title='Otros - En la lucha con la Informática'/><author><name>Antonio Manuel Fernández Pérez</name><uri>http://www.blogger.com/profile/01754942478755924276</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08302901466374595908'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry></feed>