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 <[email protected]>
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 
>  
> 
>  ________________________________
> 
> 
>  
> 
>

Responder a