Thread View: comp.security.misc
4 messages
4 total messages
Started by Steve Dahmen
Mon, 16 Nov 1992 18:13
Ftp'ing out of a chroot()ed environment
Author: Steve Dahmen
Date: Mon, 16 Nov 1992 18:13
Date: Mon, 16 Nov 1992 18:13
17 lines
975 bytes
975 bytes
Does anybody understand chroot and ftp/telnet enough to tell me why I can't get ftp nor telnet to run in my chrooted account?? I'd like to set up a user zone to allow simple ftp/telnet through without opening my whole system. I did a dump -n on the binaries and ensured the requested libraries are available in the chrooted environment. Do I need anything special in /etc (I have resolv.conf) or /dev??? Help. -- Steve Dahmen ** Graphics Application Programmer Ford Motor Company smd@sl0091.srl.ford.com 313-594-3229 (work)
Re: Ftp'ing out of a chroot()ed environment
Author: John Hascall
Date: Mon, 16 Nov 1992 22:17
Date: Mon, 16 Nov 1992 22:17
22 lines
1257 bytes
1257 bytes
smd@sl0091.srl.ford.com (Steve Dahmen) writes:
}Does anybody understand chroot and ftp/telnet enough to tell me why
}I can't get ftp nor telnet to run in my chrooted account?? I'd like
}to set up a user zone to allow simple ftp/telnet through without opening
}my whole system.
}
}I did a dump -n on the binaries and ensured the requested libraries are
}available in the chrooted environment. Do I need anything special in
}/etc (I have resolv.conf) or /dev???
}
}Help.
Without you saying what kind of system you have this is pretty hard, but
Try this:
strings `which telnet` | grep '/[a-z]'
John
--
John Hascall ``An ill-chosen word is the fool's messenger.''
Systems Software Engineer
Project Vincent
Iowa State University Computation Center + Ames, IA 50011 + 515/294-9551
Re: Ftp'ing out of a chroot()ed environment
Author: Neil Rickert
Date: Mon, 16 Nov 1992 22:37
Date: Mon, 16 Nov 1992 22:37
9 lines
844 bytes
844 bytes
In article <1e8od6INN1b4@ef2007.efhd.ford.com> smd@sl0091.srl.ford.com (Steve Dahmen) writes: > >Does anybody understand chroot and ftp/telnet enough to tell me why >I can't get ftp nor telnet to run in my chrooted account?? I'd like >to set up a user zone to allow simple ftp/telnet through without opening >my whole system. This may require /etc/services unless there is a services NIS map. I'm not sure about /etc/protocols.
Re: Ftp'ing out of a chroot()ed environment
Author: Charles Howes
Date: Tue, 17 Nov 1992 03:09
Date: Tue, 17 Nov 1992 03:09
31 lines
1727 bytes
1727 bytes
>smd@sl0091.srl.ford.com (Steve Dahmen) writes:
] Does anybody understand chroot and ftp/telnet enough to tell me why
] I can't get ftp nor telnet to run in my chrooted account?? I'd like
] to set up a user zone to allow simple ftp/telnet through without opening
] my whole system.
]
] I did a dump -n on the binaries and ensured the requested libraries are
] available in the chrooted environment. Do I need anything special in
] /etc (I have resolv.conf) or /dev???
]
] Help.
I recommend doing a 'trace' on telnet in the normal environment, and
massaging the output of that to get a list of the directories and files you
need to migrate. Here's a new-awk script that converts the trace output
file into the appropriate commands:
=========================fix.awk=============================================
$1 ~ /^(open|stat|creat|unlink)$/ {
sub("^[^\"]*\"","");
sub("\".*$","");
for (x=2;x<=length($0);x++)
if (substr($0,x,1)=="/") print "mkdir ~ftp"substr($0,1,x)
if ($0 ~ /\/./) print "cp "$0" ~ftp"$0
}
=============================================================================
So type:
trace -o output /usr/ucb/ftp somehost.edu
nawk -f fix.awk output > file1
sort -u < file1 > result
vi result
source result
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads