[ale] Chrooting a user logged in over telnet

Chris Fowler cfowler at outpostsentinel.com
Mon Aug 20 18:12:34 EDT 2012


On 08/17/2012 08:31 PM, Ted W wrote:
> service telnet
> {
>         socket_type     = stream
>         protocol        = tcp
>         wait            = no
>         disable         = no
>         user            = root
>         port            = 23
>         server          = /usr/bin/chroot
>         server_args     = /chroot /usr/sbin/in.telnetd -h


mkdir /chroot/proc
mkdir /chroot/sys

mount -t bind /proc /chroot/proc
mount -t bind /dev /chroot/dev
mount -t bind /dev/pts /chroot/dev/pts
mount -t bind /sys /chroot/sys




More information about the Ale mailing list