What about creating a soft link in the ftp root to the original material?

ln   -s   <source>  <target>

I've used this technique numerous times myself with success.

B_o_B wrote:

>Wednesday, March 17, 2004   @   10:12:49 AM Central Standard Time
>
>Hi All.  I have a small issue I cannot seem to resolve over here.
>
>I am trying to make some things available on a public FTP server.  The
>things I am trying to make available are on a different partition,
>than the normal content of the FTP (document root).
>
>Using Proftp 1.2.9.
>Added the "DefaultRoot ~" option to keep users & anonymous
>"jailed" (I really don't want people to wander out of their area).
>
>There is not enough drive capacity to just
>simply copy the material into the public FTP area.
>
>Due to the chroot "Jailed" option (DefaulRoot ~),
>I cannot add a symlink to the material (will not work).
>
>To get around this, I manually made a duplicate mount point in the FTP
>area to the new material.  I issued the following:
>(the default ftp document root dir is /home/ftp)
>
>mkdir /home/ftp/new-stuff
>
>mount --bind /var/for-ftp/new-stuff /home/ftp/new-stuff
>
>this works great.  I log into the FTP as "anonymous", ls, cd into
>new-stuff, everything is their, & I am happy :)
>
>So, to finish the job, I want to add this command to the system
>start-up config, so this will always be available.
>I added the following to my /etc/rc.d/rc.local (Slackware) file:
>
>mount --bind /var/for-ftp/new-stuff /home/ftp/new-stuff
>
>I reboot the box to make sure all is well, log into the FTP, cd into
>new-stuff, nothing is their, & I am Sad :(
>
>I checked & checked & moved where the command loads in my rc.local,
>but no good.  When the systems boots, I can log in & manually issue
>the command & it works again.
>
>What am I doing wrong?  I cannot figure out why this command will not
>work in my rc.local?
>
>Any ideas or pointers would be greatly appreciated.
>
>Many Thanks & Kind Regards,
>
>Robert (aka B_o_B) David Felix De Mars
>West Longitude 90' 15' 43"
>http://b-o-b.homelinux.com
>
>
>_______________________________________________
>TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
>http://www.mn-linux.org tclug-list at mn-linux.org
>https://mailman.real-time.com/mailman/listinfo/tclug-list
>
>  
>



_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list