Esto puede ser interesante, voy a probarlo....

-------- Original Message --------
Asunto: Re: [Ona-users-list] jail for sshd users
Fecha: Mon, 12 Mar 2001 10:29:09 +0200 (SAST)
De: Andy Glen-Young <[EMAIL PROTECTED]>
Para: Jose Luis Grisaleña Martín <[EMAIL PROTECTED]>
CC: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>

Hello all,

Included in the openssh tarball in the contrib directory is a
chroot.diff
patch. This obviously needs to be applied to the source before
compilation. I include an excerpt from the scant README.

-- <snip> --

chroot.diff:

Ricardo Cerqueira's <[EMAIL PROTECTED]> patch to enable chrooting using the
wu-ftpd style magic home directories (containing '/./'). More details in
the head of the patch itself.

-- </snip> --

This means if you want to chroot user foobar to their home directory
/home/foobar, you would change the password file from:

foobar:x:501:501::/home/foobar:/bin/bash

to:

foobar:x:501:501::/home/./foobar:/bin/bash

btw: The "head of the patch" says pretty much what the readme says...

Could be useful for the "newish" sftp client/server included in
openssh2.5.1p2, but I haven't tried it yet. For more info on
sftp/scp go to:

http://www.linuxgazette.com/issue64/dellomodarme.html 


Gerhard: 
How goes the publishing setbacks. I can't wait for the "deadtree" copy.

--
---------------------------------------------------------- 
Andy Glen-Young

"verum ipsum factum"
        - "Understanding arises through making."

==========================================================

On Fri, 9 Mar 2001, [windows-1252] Jose Luis Grisaleña Martín wrote:

> Hi everybody !
> 
> Firts, congratulations for your great book, Gerhard !
> 
> I´d like to know how to set a jail for some of my sshd users, something,
> that forbide them to go up to other directories diferent from theirs home
> path. 
> 
> I have got instaled openssh 2.3. on a Red hat 6.2 ( whithout telnet ).
> 
> ( In proftp is so easy, but in ssh i dont have idea.)
> 
> Thank you !
> 
> Jose Luis Grisaleña
> 
> 
> 
> _______________________________________________
> Ona-users-list mailing list
> [EMAIL PROTECTED]
> http://www.openna.com/mailman/listinfo/ona-users-list
> 

_______________________________________________
Ona-users-list mailing list
[EMAIL PROTECTED]
http://www.openna.com/mailman/listinfo/ona-users-list

--
¿Desea desuscribirse? Escriba a [EMAIL PROTECTED] con
el tema "unsubscribe".

Responder a