Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!wuarchive!udel!rochester!kodak!ispd-newsserver!weimer From: weimer@ssd.kodak.com (Gary Weimer) Newsgroups: comp.unix.questions Subject: Re: How can I set up a directory for ftp anonymous? Message-ID: <1990Nov26.184216.25271@ssd.kodak.com> Date: 26 Nov 90 18:42:16 GMT References: <1990Nov23.224555.1411@portia.Stanford.EDU> Sender: news@ssd.kodak.com Organization: Eastman Kodak Lines: 47 In article <1990Nov23.224555.1411@portia.Stanford.EDU> hines@portia.Stanford.EDU (Melissa Hines) writes: >Q: How do I set up a directory so that it can be accessed via an ftp anonymous > session? > >System: DECstation 3100 > Ultrix 3.0 (Rev. 7) > >I am a very infrequent UNIX user, so please pardon my ignorance. Basically, >I would like to set up a directory that other users of a certain Mac software >package could access. I have asked the "superuser" on this machine for help, >but he couldn't figure out how to do this. In SunOS (Un*x for Sun machines), anonymous ftp performs a chroot() to the ftp home directory (specified in the /etc/passwd file). To get access to a directory, the ftp home directory must be at or below it. Example: ftp entry in /etc/passwd: ftp::500:25:anonymous ftp account:/a/b/c:/bin/sh anonymous ftp will have access to: /a/b/c /a/b/c/d /a/b/c/e /a/b/c/e/f : : anonymous ftp will not have access to: /a/b /a /a/b/d : : NOTE: the following files are required for anonymous ftp to work (~ftp is the ftp home directory--/a/b/c in example above): ~ftp/bin/ls ~ftp/dev/zero ~ftp/usr/lib/ld.so ~ftp/usr/lib/libc.so.* ~ftp/etc/passwd ~ftp/etc/group See man page for ftpd(8c) for more information. Gary Weimer