Anonymous FTP->/dosc/...

Anonymous FTP->/dosc/...

Post by Daevid Vincen » Mon, 28 Aug 1995 04:00:00




> Anonymous ftp does a chroot(2) to ~ftp to limit the possible damage to
> your file system. Obviously sym-links can not bypass this... however
> there are two easy solutions:

> 1. Put the stuff in anon-ftp area and use symlinks everytwhere else.
> 2. NFS mount the stuff read-only from localhost somewhere within the
>    anon-ftp area.

> Looking at your situation I suggest option 2 (besides if you do it
> properly it is more secure as a bonus). For a server get the user
> space nfsd and mountd from sunsite (system/Networking/... I
> think). You already have the port mapper, etc.

Can you "spell out" how I would do this option 2? Basically I need to
know exactly what I'm supposed to do to get a directory called /ftp/music
that is -> to /dosc/music
I want EVERYONE (anonymous users) to be able to access it, not just the
people who have accounts on my system.

Daevid.
_____________________________________________________________________________
    Sound Chemistry |\|     T H E   M A T R I X       |\| Who Mournes        
        Alterations |\| Recording & SoundTrack Studio |\| I.C.E. Breaker      
           Sampling |\|   -----------------------     |\| The 0NE            
        Programming |\|   07 Royal Birkdale Court     |\| Procession Of Faith
         Sequencing |\|   Penfield, NY 14526-2820     |\| Stillmotion        
            Scoring |\|       +1.716.546.8330         |\| AREA_39
   Courses/Tutoring |\|_______________________________|\| & Many Others...
   <URL:http://TheMatrix.com/><URL:http://www.servtech.com/public/dae51d/>

 
 
 

1. Anonymous FTP->/dosc/...



Make an empty directory /ftp/music.

Put this line into /etc/exports:

/dosc/music     localhost

Make sure that rpc.mountd and rpc.nfsd are started when your machine is
booted (with Slackware, uncomment them in /etc/rc.d/rc.inet2).

Put this line into /etc/fstab:

localhost:/dosc/music   /ftp/music      nfs     defaults        1 1

With a standard installation like Slackware, that should be all.
Otherwise check that the first "mount -a" call has the option "-t nonfs"
and that you later (e.g. rc.inet2) do a "mount -a -t nfs".

        Johannes

2. Help needed compiling the kernel with c++ options

3. Limited size ??? => CGI scripts

4. Anonymous FTP access from non-anonymous account

5. HELP: Netscape (Bus error...)

6. Anonymous ftp conversion of xxx => xxx.gz

7. Snappy video and Linux work??

8. Anonymous config for wu-ftp -> /etc/passwd

9. FTP problem: linux>>win/SGI slow win/SGI>>linux fast

10. How to prevent anonymous ftp w/wu-ftp

11. Setting up FTP/Anonymous FTP

12. Anonymous FTP gone from ftp.openbsd.org