ts-7000
[Top] [All Lists]

RE: [ts-7000] TS-7250 filesystem access before and after chroot

To:
Subject: RE: [ts-7000] TS-7250 filesystem access before and after chroot
From: Jim Jackson <>
Date: Thu, 6 Apr 2006 11:17:24 +0100 (BST)
sounds like what you really need is a boot via a suitable initrd setup so
that the whole system actually has the correct '/'

I think you misunderstand what chroot is.

chroot acts for the chroot invoked process  and its children.
You can have different sessions chrooted to different places all on the
same system.

One "fix" would be to alter /etc/inetd.conf to invoke ftpd as

 chroot /usbflash/root ftpd .....

but as I said this is stickingplaster and you'll probably have lots of it
around. Best get your board booting with the root on the correct device.

Jim

On Wed, 5 Apr 2006  wrote:

> Jim-
>
> I chroot to the usb flash so that '/' (root) is on the usb flash. I'm using
> scripts derived from /usr/bin/loadUSB.sh in on-board flash.
>
> What's seen via ftp as /usbflash/root is seen as /root by other processes
> started after the chroot. That seems error prone. In other words, ftp's
> /usbflash/root is telnet's /root.
>
> I think I need to prevent ftpd from starting before the chroot and that's
> the approach I'll try next.
>
> -Jim Fred
>
> -----Original Message-----
> From:   On Behalf Of
> Jim Jackson
> Sent: Wednesday, April 05, 2006 1:58 PM
> To: 
> Subject: Re: [ts-7000] TS-7250 filesystem access before and after chroot
>
>
> On Wed, 5 Apr 2006  wrote:
>
> > I'm booting from internal flash and chroot to USB flash. ftpd and probably
> > other processes are using the filesystem in internal flash rather than the
> > USB flash filesystem after chroot. How would you resolve this so that ftpd
> > provides access to the 'after-chroot' filesystem?
>
> I don't think I understand you.
>
> The USB flash is mounted somewhere say /usbflash
>
> you ftp to the box, login in and if the owenrship and permissions
> of subdirectories under /usbflash allow you you can ftp to and from the
> files.
>
> What this has to do with chroot'ing I don't understand.
> Perhaps I've misunderstood.
>
> Jim
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU