Great Circle Associates Firewalls
(April 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Changeroot telnet daemon?
From: "Magossa'nyi A'rpa'd" <mag @ piheno . tii . matav . hu>
Date: Sat, 5 Apr 1997 00:28:13 +0100
To: Stefan Berg <s93sbe @ csd . uu . se>
Cc: firewalls @ GreatCircle . COM
In-reply-to: <9704041155 . AA16445 @ pamela . sic . se>

On Fri, 4 Apr 1997, Stefan Berg wrote:

> Hi,
> 
> is there such a thing as a change root telnet daemon
> for solaris 2.4.x or 2.5.x?
> 
> Might be a stupid question, but I am in need of one..
> 
Some possibilities I can think of:
- do a chroot wrapper, like:
main(){chroot("/some/where");system("/real/telnetd");}
and use it instead of your original telnetd.

- there is a free chroot utility somewhere (seems it came from 4.4BSD-Lite)
just found on my linux box. I guess it does basically the same thing.

CHROOT(8)                UNIX System Manager's Manual

NAME
     chroot - change root directory

SYNOPSIS
     chroot newroot [command]

DESCRIPTION
     The chroot command changes its root directory to the supplied directory
     newroot and exec's command, if supplied, or an interactive copy of your
     shell.

-grab the source of some free telnetd, and insert a chroot somewhere in the
beginning.

DISCLAIMER: I haven't tried any of them, just done a quick lookup.

QUESTION: Is it safe to use system() with fixed string, or is it also
harmful?

---
GNU GPL: csak tiszta forrásból



References:
Indexed By Date Previous: OAI - address translation and checkpoint - pointer please?
From: Doug Greenwald <fsgreen @ lammashta . oai . org>
Next: RE: Firewall Architecture for Web, Database
From: "Webb, Dean" <DWebb @ CAPGEMINI . COM>
Indexed By Thread Previous: Changeroot telnet daemon?
From: "Stefan Berg" <s93sbe @ csd . uu . se>
Next: Re: Changeroot telnet daemon?
From: Bob Beck <beck @ obtuse . com>

Google
 
Search Internet Search www.greatcircle.com