Shell Limitada

2004-11-12 Por tema Horst von Brand
=?ISO-8859-1?Q?Mauricio_Villagr=E1n?= [EMAIL PROTECTED] dijo:
 me encuentro con un pequeño problema, necesito a un usuario darle acceso a 
 shell, pero limitando que no salga de su home, claro que pueda ocupar 
 algunos programas como ftp, telnet, descompresores, etc...

O sea, necesitas que acceda al sistema, lo que es incompatible con los
shell restringidos que hay.

Antes de intentar esto, estudia con cuidado lo que quieres lograr. Estoy
casi completamente seguro que _no_ es lo que indicas.

 Algun consejo?,, investigué con rbash, pero por lo que he leido no es muy 
 seguro.

Leido donde? Supongo que los desarrolladores de bash estaran sumamente
interesados en tales cosas...
-- 
Dr. Horst H. von Brand   User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria  +56 32 654239
Casilla 110-V, Valparaiso, ChileFax:  +56 32 797513
From [EMAIL PROTECTED]  Fri Nov 12 20:14:36 2004
From: [EMAIL PROTECTED] (Luis Eduardo Vivero =?ISO-8859-1?Q?Pe=F1a?=)
Date: Fri Nov 12 20:21:18 2004
Subject: Control Automatico bajo Linux
In-Reply-To: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
[EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]

El jue, 11-11-2004 a las 15:10, Alejandro Weinstein escribió:
 On 11 Nov 2004 at 11:04, Claudio Hormazabal Ocampo wrote:
 
  Senores:
  Alguno de ustedes tiene experiencia en captura de datos (variables fisicas),
  bajo Linux? Si es asi, que han realizado?
 
 Mira en http://www.comedi.org

[...]

Si, comedi es la raja, posee drivers para hartas tarjetas de adquisicion
de datos. Y librerias para la programacion.

Que deseas hacer? a traves de que medio deseas obtener datos? Porque
para cosas simples se puede con el puerto paralelo o serial, pero para
tener mas power (mas canales, velocidad de entrada y salida de datos,
resolucion de los datos (cantidad de bits para expresar un numero))
tendrias que ocupar alguna tarjeta adquisidora de datos. Siempre y
cuando el proyecto sea de pequeña o mediana magnitud, porque si quieres
hacer un DCS (sistema de control distribuido) seria mas complicado
(muchas entradas, muchas salidas, para eso hay sistemas mas
desarrollados, aunque no andaria mal un desarrollo bajo linux, varios
Pc's con tarjetas de entrada/salida analoga/digital, y tendria que ser
un programa que funcionara distribuido en la red. Porque que ocurre si
para un lazo de control, las variables involucradas estan en diferentes
PC's? tendrias que comunicarte por la red, algo asi como tener un
software distribuido. Y muchas veces hay procesos que son lentos, y que
no saturarian la red. Seria un proyecto bonito, pero complicado, si es
que es factible).


Salu2


Shell Limitada

2004-11-11 Por tema Rodrigo Henriquez M. - Corporacion Linux S.A.
El mié, 10-11-2004 a las 20:16, Mauricio Villagrán escribió:
 que distro es?,,

Debian Sarge (of course ;-)


  porque yo estoy en un redhat AS 2.1 y no trae rbash como 
 comando ;) ,, hago lo siguente :


 
 [EMAIL PROTECTED] mvillagran]$ bash -r
 bash: SHELL: readonly variable
 bash: PATH: readonly variable
 bash: id: No existe el fichero o el directorio
 bash: id: No existe el fichero o el directorio
 bash: id: No existe el fichero o el directorio
 bash: [: too many arguments
 bash: tput: No existe el fichero o el directorio
 bash: tput: No existe el fichero o el directorio
 bash: wc: No existe el fichero o el directorio
 bash: [: : integer expression expected
 bash: dircolors: No existe el fichero o el directorio
 bash: grep: No existe el fichero o el directorio
 bash: PATH: readonly variable
 bash: grep: No existe el fichero o el directorio
 bash: id: No existe el fichero o el directorio
 bash: [: =: unary operator expected
 bash: cut: No existe el fichero o el directorio
 bash: tr: No existe el fichero o el directorio
 bash: cut: No existe el fichero o el directorio
 bash: tr: No existe el fichero o el directorio


Hmmm...

Acabo de probar en un RHAS 2.1 y tambien me pasa lo mismo:

[EMAIL PROTECTED] admin]$ bash -r
bash: SHELL: readonly variable
bash: PATH: readonly variable
bash: id: No such file or directory
bash: id: No such file or directory
bash: id: No such file or directory
bash: [: too many arguments
bash: tput: No such file or directory
bash: tput: No such file or directory
bash: wc: No such file or directory
bash: [: : integer expression expected
bash: dircolors: No such file or directory
bash: grep: No such file or directory
bash: PATH: readonly variable
bash: grep: No such file or directory
bash: id: No such file or directory
bash: [: =: unary operator expected
bash: cut: No such file or directory
bash: tr: No such file or directory
bash: cut: No such file or directory
bash: tr: No such file or directory
[EMAIL PROTECTED] admin]$ cd /
bash: cd: restricted
[EMAIL PROTECTED] admin]$ 


 y como vez, me queda la crema no me acepta un PATH diferente al home

Al parecer esta bien.

Revisa la documentacion de bash(1) en la seccion RESTRICTED SHELL.
Al parecer deberias hacer algunos cambios a .bashrc y/o .profile.

Saludos.

-- 
Rodrigo Henriquez M.http://www.corporacionlinux.cl
Corporacion Linux S.A.  Fonos: 02 2442988 - 02 2444250



Shell Limitada

2004-11-11 Por tema Mauricio Villagrán

buscando y buscando encontre lo siguiente y me funciono...


useradd -s /bin/rbash usuario

To enable/create the restricted bash shell I have typed the commands: 

ln -s /bin/bash /bin/rbash 
echo /bin/rbash  /etc/shells 



saludos!

-- Original Message ---
From: Rodrigo Henriquez M. - Corporacion Linux S.A.
[EMAIL PROTECTED]
To: Discusion de Linux en Castellano linux@listas.inf.utfsm.cl
Sent: Thu, 11 Nov 2004 11:26:52 -0300
Subject: Re: Shell Limitada

 El mié, 10-11-2004 a las 20:16, Mauricio Villagrán escribió:
  que distro es?,,
 
 Debian Sarge (of course ;-)
 
   porque yo estoy en un redhat AS 2.1 y no trae rbash como 
  comando ;) ,, hago lo siguente :
 
  
  [EMAIL PROTECTED] mvillagran]$ bash -r
  bash: SHELL: readonly variable
  bash: PATH: readonly variable
  bash: id: No existe el fichero o el directorio
  bash: id: No existe el fichero o el directorio
  bash: id: No existe el fichero o el directorio
  bash: [: too many arguments
  bash: tput: No existe el fichero o el directorio
  bash: tput: No existe el fichero o el directorio
  bash: wc: No existe el fichero o el directorio
  bash: [: : integer expression expected
  bash: dircolors: No existe el fichero o el directorio
  bash: grep: No existe el fichero o el directorio
  bash: PATH: readonly variable
  bash: grep: No existe el fichero o el directorio
  bash: id: No existe el fichero o el directorio
  bash: [: =: unary operator expected
  bash: cut: No existe el fichero o el directorio
  bash: tr: No existe el fichero o el directorio
  bash: cut: No existe el fichero o el directorio
  bash: tr: No existe el fichero o el directorio
 
 Hmmm...
 
 Acabo de probar en un RHAS 2.1 y tambien me pasa lo mismo:
 
 [EMAIL PROTECTED] admin]$ bash -r
 bash: SHELL: readonly variable
 bash: PATH: readonly variable
 bash: id: No such file or directory
 bash: id: No such file or directory
 bash: id: No such file or directory
 bash: [: too many arguments
 bash: tput: No such file or directory
 bash: tput: No such file or directory
 bash: wc: No such file or directory
 bash: [: : integer expression expected
 bash: dircolors: No such file or directory
 bash: grep: No such file or directory
 bash: PATH: readonly variable
 bash: grep: No such file or directory
 bash: id: No such file or directory
 bash: [: =: unary operator expected
 bash: cut: No such file or directory
 bash: tr: No such file or directory
 bash: cut: No such file or directory
 bash: tr: No such file or directory
 [EMAIL PROTECTED] admin]$ cd /
 bash: cd: restricted
 [EMAIL PROTECTED] admin]$
 
  y como vez, me queda la crema no me acepta un PATH diferente al home
 
 Al parecer esta bien.
 
 Revisa la documentacion de bash(1) en la seccion RESTRICTED SHELL.
 Al parecer deberias hacer algunos cambios a .bashrc y/o .profile.
 
 Saludos.
 
 -- 
 Rodrigo Henriquez M.  http://www.corporacionlinux.cl
 Corporacion Linux S.A.Fonos: 02 2442988 - 02 2444250
--- End of Original Message ---
From [EMAIL PROTECTED]  Thu Nov 11 18:52:56 2004
From: [EMAIL PROTECTED] (Cristian Rodriguez)
Date: Thu Nov 11 18:53:07 2004
Subject: Problemas con Squid.
In-Reply-To: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
[EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]

explicate mejor..no te entendi NADA. :S

a que te refieres con reastrear un paquete(con el squid?) (¿con otro soft¿)
version?
OS?
archivo de configuracion..

no encuentro la bola de cristal..para adivinar el problema...:P



On Thu, 11 Nov 2004 19:59:41 +0100 (CET), Osmany Ricardo
[EMAIL PROTECTED] wrote:
 
 Hola: 
   
 Tengo la siguiente pregunta: 
   
 puede es squid permitir el acceso a paginas como la siguiente: 
   
 wwwapps.ups.com 
   
 Me pasa que entro a www.ups.com y cuando voy a reastrear un paquete me
 reenvia a esta pagina y el squid me deniega el acceso. 
   
 Sera que es Squid esta mal configurado o es que no permite esti tipo de url?
   
 Saludos a todos y gracias por su ayuda 
   
 Osmany 
  
 
  
 
 
  
 



Shell Limitada

2004-11-10 Por tema Mauricio Villagrán
Hola lista

me encuentro con un pequeño problema, necesito a un usuario darle acceso a 
shell, pero limitando que no salga de su home, claro que pueda ocupar 
algunos programas como ftp, telnet, descompresores, etc...

Algun consejo?,, investigué con rbash, pero por lo que he leido no es muy 
seguro.

Atte
Mauricio Villagrán
From [EMAIL PROTECTED]  Wed Nov 10 19:34:14 2004
From: [EMAIL PROTECTED] (Pablo Silva)
Date: Wed Nov 10 19:34:30 2004
Subject: Cierre de open relay en sendmail 8.11.0
In-Reply-To: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]

Marcos:

   El problema que detectamos es que se esta
permitiendo un relay de terceros, eso es al menos lo
que me indica el correo que nos llega de abuse.net

Connecting to trompo.tn.cl for registered user test
...

 220 algundominio.cl ESMTP Sendmail 8.11.6/8.11.0;
Wed, 10 Nov 2004 18:50:30 -0300
 HELO www.abuse.net
 250 algundominio.cl Hello www.abuse.net
[208.31.42.77], pleased to meet you
Relay test 1
 RSET
 250 2.0.0 Reset state
 MAIL FROM:[EMAIL PROTECTED]
 250 2.1.0 [EMAIL PROTECTED]... Sender ok
 RCPT TO:[EMAIL PROTECTED]
 250 2.1.5 [EMAIL PROTECTED]... Recipient
ok
 DATA
 354 Enter mail, end with . on a line by itself
 (message body)
 250 2.0.0 iAALoUF17429 Message accepted for
delivery

Relay test result
Hmmn, at first glance, host appeared to accept a
message for relay.

THIS MAY OR MAY NOT MEAN THAT IT'S AN OPEN RELAY.

Some systems appear to accept relay mail, but then
reject messages internally rather than delivering
them, but you cannot tell at this point whether the
message will be relayed or not.

If it is really an open relay, the test message will
be delivered to you. If you do not receive the test
message in your e-mail in the next few hours, it IS
NOT an open relay.


Además, en el correo hay un mensaje que señala:

This is a test of third-party mail relay, generated
via theNetwork Abuse Clearinghouse at
http://www.abuse.net.Target host =
algunamaquina.algundominio.cl [x.y.z.w]Test
performed by [EMAIL PROTECTED] from x.y.z.w A
well-configured mail server should NOT relay
third-party email.Otherwise, the server is subject to
abuse by vandals and spammers,and probable
blacklisting by recipients of the unwanted
third-partye-mail.For information on how to secure a
mail server against third-partyrelay, visit URL:
http://www.mail-abuse.org/tsi/.

Cualquier indicacion bienvenida...

Saludos,
Pablo



   
--- Marcos Ramirez A. [EMAIL PROTECTED] wrote:

 On Wed, 2004-11-10 at 11:16 -0800, Pablo Silva
 wrote:
  [...]
   Pues detectamos un problema, el cual indica
 lo
  siguiente:
  [...]
  Ahora, segn las indicaciones que aparecen alli,
 solo
  hay formas de solucionarlo para versiones 8.8.x
 pero
  no para 8.11.x
 
 No dices cual fue el problema detectado ni las
 instrucciones para
 resolverlo como para hacerse una idea de que te
 estan pidiendo que
 corrijas. 
 
  Si alguien tiene algunas indicaciones, bienvenido!
 
 Es muy dificil darte indicaciones si no das ningun
 dato 
 aparte de no funciona
 -- 
 Marcos Ramirez A. [EMAIL PROTECTED]
 
 
 
 
 
 
 




__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


Shell Limitada

2004-11-10 Por tema Rodrigo Henriquez M. - Corporacion Linux S.A.
El mié, 10-11-2004 a las 19:24, Mauricio Villagrán escribió:
 Hola lista
 
 me encuentro con un pequeño problema, necesito a un usuario darle acceso a 
 shell, pero limitando que no salga de su home, claro que pueda ocupar 
 algunos programas como ftp, telnet, descompresores, etc...
 
 Algun consejo?,, investigué con rbash, pero por lo que he leido no es muy 
 seguro.


rhenriqu en hiroshi rhenriqu rbash 
rhenriqu en hiroshi rhenriqu pwd
/home/rhenriqu
rhenriqu en hiroshi rhenriqu cd /
rbash: cd: restricted


rhenriqu en hiroshi rhenriqu rbash --version
GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.

http://www.faqs.org/docs/bashman/bashref_75.html

-- 
Rodrigo Henriquez M.http://www.corporacionlinux.cl
Corporacion Linux S.A.  Fonos: 02 2442988 - 02 2444250



Shell Limitada

2004-11-10 Por tema Cristian Rodriguez
http://olivier.sessink.nl/jailkit/

;)


On Wed, 10 Nov 2004 19:39:08 -0300, Rodrigo Henriquez M. - Corporacion
Linux S.A. [EMAIL PROTECTED] wrote:
 El mié, 10-11-2004 a las 19:24, Mauricio Villagrán escribió:
 
 
  Hola lista
 
  me encuentro con un pequeño problema, necesito a un usuario darle acceso a
  shell, pero limitando que no salga de su home, claro que pueda ocupar
  algunos programas como ftp, telnet, descompresores, etc...
 
  Algun consejo?,, investigué con rbash, pero por lo que he leido no es muy
  seguro.
 
 
 rhenriqu en hiroshi rhenriqu rbash
 rhenriqu en hiroshi rhenriqu pwd
 /home/rhenriqu
 rhenriqu en hiroshi rhenriqu cd /
 rbash: cd: restricted
 
 rhenriqu en hiroshi rhenriqu rbash --version
 GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu)
 Copyright (C) 2002 Free Software Foundation, Inc.
 
 http://www.faqs.org/docs/bashman/bashref_75.html
 
 --
 Rodrigo Henriquez M.http://www.corporacionlinux.cl
 Corporacion Linux S.A.  Fonos: 02 2442988 - 02 2444250
 



Shell Limitada

2004-11-10 Por tema Mauricio Villagrán
que distro es?,, porque yo estoy en un redhat AS 2.1 y no trae rbash como 
comando ;) ,, hago lo siguente :

[EMAIL PROTECTED] mvillagran]$ bash -r
bash: SHELL: readonly variable
bash: PATH: readonly variable
bash: id: No existe el fichero o el directorio
bash: id: No existe el fichero o el directorio
bash: id: No existe el fichero o el directorio
bash: [: too many arguments
bash: tput: No existe el fichero o el directorio
bash: tput: No existe el fichero o el directorio
bash: wc: No existe el fichero o el directorio
bash: [: : integer expression expected
bash: dircolors: No existe el fichero o el directorio
bash: grep: No existe el fichero o el directorio
bash: PATH: readonly variable
bash: grep: No existe el fichero o el directorio
bash: id: No existe el fichero o el directorio
bash: [: =: unary operator expected
bash: cut: No existe el fichero o el directorio
bash: tr: No existe el fichero o el directorio
bash: cut: No existe el fichero o el directorio
bash: tr: No existe el fichero o el directorio


y como vez, me queda la crema no me acepta un PATH diferente al home




-- Original Message ---
From: Rodrigo Henriquez M. - Corporacion Linux S.A. 
[EMAIL PROTECTED]
To: Discusion de Linux en Castellano linux@listas.inf.utfsm.cl
Sent: Wed, 10 Nov 2004 19:39:08 -0300
Subject: Re: Shell Limitada

 El mié, 10-11-2004 a las 19:24, Mauricio Villagrán escribió:
  Hola lista
  
  me encuentro con un pequeño problema, necesito a un usuario darle acceso 
a 
  shell, pero limitando que no salga de su home, claro que pueda ocupar 
  algunos programas como ftp, telnet, descompresores, etc...
  
  Algun consejo?,, investigué con rbash, pero por lo que he leido no es 
muy 
  seguro.
 
 rhenriqu en hiroshi rhenriqu rbash 
 rhenriqu en hiroshi rhenriqu pwd
 /home/rhenriqu
 rhenriqu en hiroshi rhenriqu cd /
 rbash: cd: restricted
 
 rhenriqu en hiroshi rhenriqu rbash --version
 GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu)
 Copyright (C) 2002 Free Software Foundation, Inc.
 
 http://www.faqs.org/docs/bashman/bashref_75.html
 
 -- 
 Rodrigo Henriquez M.  http://www.corporacionlinux.cl
 Corporacion Linux S.A.Fonos: 02 2442988 - 02 2444250
--- End of Original Message ---
From [EMAIL PROTECTED]  Wed Nov 10 20:27:17 2004
From: [EMAIL PROTECTED] (Hormazabal V., Nibaldo A. (Casa Matriz))
Date: Wed Nov 10 20:24:44 2004
Subject: Crear script
Message-ID: [EMAIL PROTECTED]

Hola amigos,
 
Necesito crear un script para enviar correos a distintos usuarios cada
cierto tiempo, alguien me puede dar alguna pista de como puedo hacer esto.
 
Gracias
 
 
 próxima parte 
Se ha borrado un adjunto en formato HTML...
URL: 
https://listas.inf.utfsm.cl/pipermail/linux/attachments/20041110/37c7fb76/attachment.html
From [EMAIL PROTECTED]  Wed Nov 10 20:29:33 2004
From: [EMAIL PROTECTED] (Fernando Flores)
Date: Wed Nov 10 20:29:46 2004
Subject: Fedora Core 3
In-Reply-To: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]

Yo lo instale, en notebook ibm thinkpad a20 m, bien hasta el momento, lo
que si no he encontrado el xdmcp cliente en la entrada como pasaba en la
2.

como puedo activar el xorg?

El mar, 09-11-2004 a las 16:22 -0300, fcatrin escribió:
 Ha sido liberado Fedora Core 3 en forma oficial.  Aun no lo he probado,
 si alguien tiene comentarios, son bienvenidos
 
 Del release-notes se puede ver que algunos cambios destacables son:
 
 Caracteristicas nuevas:
 
 udev: http://fedora.redhat.com/docs/udev/
 
 Paquetes nuevos:
 
 - NetworkManager http://people.redhat.com/dcbw/NetworkManager/
 (no es el mismo de Ximian/SuSE ?)
 - HelixPlayer : reproductor de la familia de RealPlayer
 - Evolution 2 : en esto se demoraron un poco en ponerse al dia
 - FireFox/Thunderbird : al fin son parte de la distribucion
 - hal : Hardware Abstraction Layer
 - openoffice.org-kde : OpenOffice con integracion a KDE
 - totem : reproductor de medios
 - valgrind : para las demos de Daniel Serpell ;-)
 - xorg 6.8 : con las nuevas extensiones.  Claro que vienen
 deshabilitadas por omisión
 
 Paquetes que ya no estan:
 
 - casi todos los de java que estaban compilados con gcj.  Habian sido
 agregados en FC2 si no me equivoco.  Se arrepintieron ?
 - fam
 - gqview, ya habia sido deprecado
 - licq, ya no es necesario con gaim
 - sawfish, tenia sus dias contados
 - quanta, no dicen
 
 En la cuerda floja:
 
 - lilo, por GRUB