code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/sh
APPDIR=`dirname $0`;
GWT_HOME=$APPDIR/../gwt
java -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:$GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@" adnotatio.HtmlAnnotatorClient/HtmlAnnotatorClient.html;
| Shell |
#!/bin/sh
APPDIR=`dirname $0`;
GWT_HOME=$APPDIR/../gwt
# see http://www.instantiations.com/forum/viewtopic.php?f=11&t=1784
params=-Djava.awt.headless=true
java $params -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:$GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@" adnotatio.Render... | Shell |
#!/bin/sh
APPDIR=`dirname $0`;
GWT_HOME=$APPDIR/../gwt
# see http://www.instantiations.com/forum/viewtopic.php?f=11&t=1784
params=-Djava.awt.headless=true
java $params -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:$GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@" adnotatio.HtmlAn... | Shell |
#!/bin/sh
APPDIR=`dirname $0`;
GWT_HOME=$APPDIR/../gwt
java -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:$GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@" adnotatio.HtmlAnnotatorClient/HtmlAnnotatorClient.html;
| Shell |
#!/bin/sh
APPDIR=`dirname $0`;
GWT_HOME=$APPDIR/../gwt
# see http://www.instantiations.com/forum/viewtopic.php?f=11&t=1784
params=-Djava.awt.headless=true
java $params -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:$GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@" adnotatio.Render... | Shell |
#!/bin/sh
APPDIR=`dirname $0`;
GWT_HOME=$APPDIR/../gwt
# see http://www.instantiations.com/forum/viewtopic.php?f=11&t=1784
params=-Djava.awt.headless=true
java $params -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:$GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@" adnotatio.HtmlAn... | Shell |
#!/bin/sh
APPDIR=`dirname $0`;
GWT_HOME=$APPDIR/../gwt
java -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:$GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@" adnotatio.HtmlAnnotatorClient/HtmlAnnotatorClient.html;
| Shell |
#!/bin/sh
APPDIR=`dirname $0`;
GWT_HOME=$APPDIR/../gwt
# see http://www.instantiations.com/forum/viewtopic.php?f=11&t=1784
params=-Djava.awt.headless=true
java $params -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:$GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@" adnotatio.Render... | Shell |
#!/bin/sh
APPDIR=`dirname $0`;
GWT_HOME=$APPDIR/../gwt
# see http://www.instantiations.com/forum/viewtopic.php?f=11&t=1784
params=-Djava.awt.headless=true
java $params -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:$GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@" adnotatio.HtmlAn... | Shell |
#!/bin/sh
APPDIR=`dirname $0`;
GWT_HOME=$APPDIR/../gwt
java -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:$GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@" adnotatio.HtmlAnnotatorClient/HtmlAnnotatorClient.html;
| Shell |
#!/bin/sh
APPDIR=`dirname $0`;
GWT_HOME=$APPDIR/../gwt
# see http://www.instantiations.com/forum/viewtopic.php?f=11&t=1784
params=-Djava.awt.headless=true
java $params -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:$GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@" adnotatio.Render... | Shell |
#!/bin/sh
APPDIR=`dirname $0`;
GWT_HOME=$APPDIR/../gwt
# see http://www.instantiations.com/forum/viewtopic.php?f=11&t=1784
params=-Djava.awt.headless=true
java $params -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:$GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTCompiler -out "$APPDIR/www" "$@" adnotatio.HtmlAn... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y la operacion [-lock|-unlock]"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el nombre de grupo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el nombre del share y la descripcion"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | se... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el login"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 ... | Shell |
#!/bin/bash
#
# Permite saber el estado en el que esta el servicio
#
# Devuelve:
# [CONFIGURADO.RUN] => Configurado y en ejecucion
# [CONFIGURADO.STOP] => Configurado y parado
#
# Ahora comprobamos si esta ejecutandose, mediante ps
if ps aux | grep smbd | grep -q -v grep
then
echo -n "[CONFIGUR... | Shell |
#!/bin/bash
#
# Este script lista las sesiones en un servidor Samba...
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del servidor Samba
... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y el grupo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del servidor Samba
. ... | Shell |
#!/bin/bash
#
# Este script obtiene la lista de miembros de un grupo
# o si se le pasa -exc como segundo argumento, mostrara los que no pertenecen
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el grupo [OPCIONAL: -exc (los que no pertenece)]"
exit 2
fi
# Obtener la ruta abs... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y el grupo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el login"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 ... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y la operacion [-lock|-unlock]"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=... | Shell |
#!/bin/bash
#
# Este script obtiene la lista de usuarios
# de un servidor Samba...
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del se... | Shell |
#!/bin/bash
#
# Este script obtiene la lista de grupos a los que pertenece un usuario
# o si se le pasa -exc como segundo argumento, mostrara los que no pertenece
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el login [OPCIONAL: -exc (los que no pertenece)]"
exit 2
fi
# Obt... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el nombre de grupo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y el nombre completo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y la nueva clave"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF |... | Shell |
#!/bin/bash
#
# Permite saber el estado en el que esta el servicio
#
# Devuelve:
# [CONFIGURADO.RUN] => Configurado y en ejecucion
# [CONFIGURADO.STOP] => Configurado y parado
#
# Ahora comprobamos si esta ejecutandose, mediante ps
if ps aux | grep smbd | grep -q -v grep
then
echo -n "[CONFIGUR... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el nombre del share y la descripcion"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | se... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el nombre del share"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)... | Shell |
#!/bin/bash
#
# Este script permite modificar un atributo de un usuario
# via LDAP
#
# Argumentos...
# 1er argumento: login a modificar
# 2do argumento: Campo a modificar
# 3er argumento: Valor
#
# Comprobar argumentos...
if [ "" = "$3" ]
then
echo "ERROR: Debes pasar <login> <campo> <valor>"
exit 2
... | Shell |
#!/bin/bash
#
# Este script lista las sesiones en un servidor Samba...
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del servidor Samba
... | Shell |
#!/bin/bash
#
# Este script lista los shares de un servidor Samba...
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del servidor Samba
. ... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el nombre del grupo y la descripcion"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | se... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el nombre del share"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y la nueva clave"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF |... | Shell |
#!/bin/bash
#
# Este script permite modificar un atributo de un usuario
# via LDAP
#
# Argumentos...
# 1er argumento: login a modificar
# 2do argumento: Campo a modificar
# 3er argumento: Valor
#
# Comprobar argumentos...
if [ "" = "$3" ]
then
echo "ERROR: Debes pasar <login> <campo> <valor>"
exit 2
... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y el grupo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -... | Shell |
#!/bin/bash
#
# Este script obtiene la lista de usuarios
# de un servidor Samba...
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del se... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del servidor Samba
. ... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el nombre del grupo y la descripcion"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | se... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y el nombre completo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/... | Shell |
#!/bin/bash
#
# Este script obtiene la lista de grupos a los que pertenece un usuario
# o si se le pasa -exc como segundo argumento, mostrara los que no pertenece
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el login [OPCIONAL: -exc (los que no pertenece)]"
exit 2
fi
# Obt... | Shell |
#!/bin/bash
#
# Este script obtiene la lista de miembros de un grupo
# o si se le pasa -exc como segundo argumento, mostrara los que no pertenecen
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el grupo [OPCIONAL: -exc (los que no pertenece)]"
exit 2
fi
# Obtener la ruta abs... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y el grupo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -... | Shell |
#!/bin/bash
#
# Este script lista los shares de un servidor Samba...
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del servidor Samba
. ... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y la operacion [-lock|-unlock]"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el nombre de grupo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el nombre del share y la descripcion"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | se... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el login"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 ... | Shell |
#!/bin/bash
#
# Permite saber el estado en el que esta el servicio
#
# Devuelve:
# [CONFIGURADO.RUN] => Configurado y en ejecucion
# [CONFIGURADO.STOP] => Configurado y parado
#
# Ahora comprobamos si esta ejecutandose, mediante ps
if ps aux | grep smbd | grep -q -v grep
then
echo -n "[CONFIGUR... | Shell |
#!/bin/bash
#
# Este script lista las sesiones en un servidor Samba...
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del servidor Samba
... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y el grupo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del servidor Samba
. ... | Shell |
#!/bin/bash
#
# Este script obtiene la lista de miembros de un grupo
# o si se le pasa -exc como segundo argumento, mostrara los que no pertenecen
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el grupo [OPCIONAL: -exc (los que no pertenece)]"
exit 2
fi
# Obtener la ruta abs... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y el grupo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el login"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 ... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y la operacion [-lock|-unlock]"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=... | Shell |
#!/bin/bash
#
# Este script obtiene la lista de usuarios
# de un servidor Samba...
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del se... | Shell |
#!/bin/bash
#
# Este script obtiene la lista de grupos a los que pertenece un usuario
# o si se le pasa -exc como segundo argumento, mostrara los que no pertenece
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el login [OPCIONAL: -exc (los que no pertenece)]"
exit 2
fi
# Obt... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el nombre de grupo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y el nombre completo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y la nueva clave"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF |... | Shell |
#!/bin/bash
#
# Permite saber el estado en el que esta el servicio
#
# Devuelve:
# [CONFIGURADO.RUN] => Configurado y en ejecucion
# [CONFIGURADO.STOP] => Configurado y parado
#
# Ahora comprobamos si esta ejecutandose, mediante ps
if ps aux | grep smbd | grep -q -v grep
then
echo -n "[CONFIGUR... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el nombre del share y la descripcion"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | se... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el nombre del share"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)... | Shell |
#!/bin/bash
#
# Este script permite modificar un atributo de un usuario
# via LDAP
#
# Argumentos...
# 1er argumento: login a modificar
# 2do argumento: Campo a modificar
# 3er argumento: Valor
#
# Comprobar argumentos...
if [ "" = "$3" ]
then
echo "ERROR: Debes pasar <login> <campo> <valor>"
exit 2
... | Shell |
#!/bin/bash
#
# Este script lista las sesiones en un servidor Samba...
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del servidor Samba
... | Shell |
#!/bin/bash
#
# Este script lista los shares de un servidor Samba...
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del servidor Samba
. ... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el nombre del grupo y la descripcion"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | se... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el nombre del share"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y la nueva clave"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF |... | Shell |
#!/bin/bash
#
# Este script permite modificar un atributo de un usuario
# via LDAP
#
# Argumentos...
# 1er argumento: login a modificar
# 2do argumento: Campo a modificar
# 3er argumento: Valor
#
# Comprobar argumentos...
if [ "" = "$3" ]
then
echo "ERROR: Debes pasar <login> <campo> <valor>"
exit 2
... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y el grupo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -... | Shell |
#!/bin/bash
#
# Este script obtiene la lista de usuarios
# de un servidor Samba...
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del se... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
MY_ROOT=$(dirname $MY_PATH)
# Cargar la configuracion del servidor Samba
. ... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el nombre del grupo y la descripcion"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | se... | Shell |
#!/bin/bash
#
# Este script añade un usuario a Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y el nombre completo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -r s/... | Shell |
#!/bin/bash
#
# Este script obtiene la lista de grupos a los que pertenece un usuario
# o si se le pasa -exc como segundo argumento, mostrara los que no pertenece
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el login [OPCIONAL: -exc (los que no pertenece)]"
exit 2
fi
# Obt... | Shell |
#!/bin/bash
#
# Este script obtiene la lista de miembros de un grupo
# o si se le pasa -exc como segundo argumento, mostrara los que no pertenecen
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar el grupo [OPCIONAL: -exc (los que no pertenece)]"
exit 2
fi
# Obtener la ruta abs... | Shell |
#!/bin/bash
#
# Este script cambia la clave de un usuario en Samba
#
# Comprobar argumentos...
if [ "" = "$2" ]
then
echo "ERROR: Debes pasar el login y el grupo"
exit 2
fi
# Obtener la ruta absoluta del script
LSOF=$(lsof 2>/dev/null -p $$ | grep -E "/"$(basename $0)"$")
MY_PATH=$(echo $LSOF | sed -... | Shell |
#!/bin/bash
#
# Este script actualiza alguna de las zonas directas...
#
# Argumentos...
# NUMERO_PTR NOMBRE ZONA_INVERSA [gestion|docencia|wifi] [delete|add]
#
if [ "" = "$5" ]
then
echo "ERROR: Numero de argumentos incorrecto"
echo " updateDNS-inverse <NUMERO_PTR> <NOMBRE> <ZONA_INVERSA> [gestion|docencia|... | Shell |
#!/bin/bash
#
# Permite saber el estado en el que esta el
# servicio de DHCP
#
# Devuelve:
# [CONFIGURADO.RUN] => Configurado y en ejecucion
# [CONFIGURADO.STOP] => Configurado y parado
#
# Ahora comprobamos si esta ejecutandose, mediante ps
if ps aux | grep named | grep -q -v grep
then
echo -... | Shell |
#!/bin/bash
#
# Este script permite comprobar si funciona correctamente
# la resolucion de las distintas zonas del dns...
#
# Recibe un argumento:
# <ges|doc|wifi|inv-priv1|inv-priv2|inv-ges|inv-doc1|inv-doc2|inv-doc3>
#
# Devuelve: [OK] | [ERROR]
#
# Obtener la ruta absoluta del script
LSOF=$(lsof -p $$ | grep -E... | Shell |
#!/bin/bash
#
# Permite saber el estado en el que esta el
# servicio de DHCP
#
# Devuelve:
# [DESCONFIGURADO] => No esta activo el servicio.
# [CONFIGURADO.RUN] => Configurado y en ejecucion
# [CONFIGURADO.STOP] => Configurado y parado
#
# Para saber si esta configurado, cargamos la configuracion
# del servic... | Shell |
#!/bin/bash
#
# Este script actualiza alguna de las zonas directas...
#
# Argumentos...
# NUMERO_PTR NOMBRE ZONA_INVERSA [gestion|docencia|wifi] [delete|add]
#
if [ "" = "$5" ]
then
echo "ERROR: Numero de argumentos incorrecto"
echo " updateDNS-inverse <NUMERO_PTR> <NOMBRE> <ZONA_INVERSA> [gestion|docencia|... | Shell |
#!/bin/bash
#
# A partir de la zona inversa... obtiene la direccion de red...
#
if [ "" = "$1" ]
then
echo "ERROR: No has pasado el nombre de la zona inversa"
exit 2
fi
echo "$1" | perl -ne 'print "$3.$2.$1" if($_=~m/(\d+)\.(\d+)\.(\d+)\.in-addr/)'
| Shell |
#!/bin/bash
#
# Este script permite comprobar si funciona correctamente
# la resolucion de las distintas zonas del dns...
#
# Recibe un argumento:
# <ges|doc|wifi|inv-priv1|inv-priv2|inv-ges|inv-doc1|inv-doc2|inv-doc3>
#
# Devuelve: [OK] | [ERROR]
#
# Obtener la ruta absoluta del script
LSOF=$(lsof -p $$ | grep -E... | Shell |
#!/bin/bash
#
# Este script nos permite obtener el nombre
# de la zona inversa que se pasa como argumento...
#
# Argumento: <ges|doc1|doc2|doc3>
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar como argumento la red a calcular"
echo " getDnsZone.sh <ges|doc1|doc2|doc3>"
exit 2
fi
#... | Shell |
#!/bin/bash
#
# Este script actualiza alguna de las zonas directas...
#
# Argumentos...
# NOMBRE IP ZONA [delete|add] [host|alias]
#
if [ "" = "$5" ]
then
echo "ERROR: Numero de argumentos incorrecto"
echo " updateDNS-directa.sh <NOMBRE> <IP> <ZONA> [delete|add] [host|alias]"
exit 2
fi
# Para tempor... | Shell |
#!/bin/bash
#
# Permite saber el estado en el que esta el
# servicio de DHCP
#
# Devuelve:
# [CONFIGURADO.RUN] => Configurado y en ejecucion
# [CONFIGURADO.STOP] => Configurado y parado
#
# Ahora comprobamos si esta ejecutandose, mediante ps
if ps aux | grep named | grep -q -v grep
then
echo -... | Shell |
#!/bin/bash
#
# Este script nos permite obtener el nombre
# de la zona inversa que se pasa como argumento...
#
# Argumento: <ges|doc1|doc2|doc3>
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar como argumento la red a calcular"
echo " getDnsZone.sh <ges|doc1|doc2|doc3>"
exit 2
fi
#... | Shell |
#!/bin/bash
#
# Permite saber el estado en el que esta el
# servicio de DHCP
#
# Devuelve:
# [DESCONFIGURADO] => No esta activo el servicio.
# [CONFIGURADO.RUN] => Configurado y en ejecucion
# [CONFIGURADO.STOP] => Configurado y parado
#
# Para saber si esta configurado, cargamos la configuracion
# del servic... | Shell |
#!/bin/bash
#
# Este script nos permite obtener el nombre
# de la zona inversa que se pasa como argumento...
#
# Argumento: <ges|doc1|doc2|doc3>
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar como argumento la red a calcular"
echo " getDnsZone.sh <ges|doc1|doc2|doc3>"
exit 2
fi
#... | Shell |
#!/bin/bash
#
# A partir de la zona inversa... obtiene la direccion de red...
#
if [ "" = "$1" ]
then
echo "ERROR: No has pasado el nombre de la zona inversa"
exit 2
fi
echo "$1" | perl -ne 'print "$3.$2.$1" if($_=~m/(\d+)\.(\d+)\.(\d+)\.in-addr/)'
| Shell |
#!/bin/bash
#
# Este script nos permite obtener el nombre
# de la zona inversa que se pasa como argumento...
#
# Argumento: <ges|doc1|doc2|doc3>
#
# Comprobar argumentos...
if [ "" = "$1" ]
then
echo "ERROR: Debes pasar como argumento la red a calcular"
echo " getDnsZone.sh <ges|doc1|doc2|doc3>"
exit 2
fi
#... | Shell |
#!/bin/bash
#
# Permite saber el estado en el que esta el
# servicio de DHCP
#
# Devuelve:
# [DESCONFIGURADO] => No esta activo el servicio.
# [CONFIGURADO.RUN] => Configurado y en ejecucion
# [CONFIGURADO.STOP] => Configurado y parado
#
# Para saber si esta configurado, cargamos la configuracion
# del servic... | Shell |
#!/bin/bash
#
# Obtiene la LAN de Gestion
#
/sbin/ip a | grep br0 | grep inet | head -1 | perl -ne 'print "$1" if($_=~m/inet\s+(\d[^\/]+)\.1\//);'
| Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.