home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sun / admin / 5548 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  2.4 KB

  1. Path: sparky!uunet!auspex-gw!guy
  2. From: guy@Auspex.COM (Guy Harris)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: Re: setting up anonymous ftp
  5. Message-ID: <14062@auspex-gw.auspex.com>
  6. Date: 14 Aug 92 20:57:42 GMT
  7. References: <HUDGENS.92Aug13225253@sun13.SCRI.FSU.EDU> <1992Aug14.152748.19844@msuinfo.cl.msu.edu>
  8. Sender: news@auspex-gw.auspex.com
  9. Organization: Auspex Systems, Santa Clara
  10. Lines: 52
  11. Nntp-Posting-Host: bootme.auspex.com
  12.  
  13. >I need to know exactly what to do to get "ls" to work
  14. >               ^^^^^^^
  15. >Now all I get is:
  16. >
  17. >crt0: no /usr/lib/ls.so
  18.  
  19. (Presumably you mean "/usr/lib/ld.so".)
  20.  
  21. What you need to do to get "ls" to work is to carefully read FTPD(8C),
  22. paying special attention to the section that reads:
  23.  
  24.      In the last case, ftpd takes special  measures  to  restrict
  25.      the  client's  access  privileges.   The  server  performs a
  26.      chroot(2) command to the home directory of the  "ftp"  user.
  27.      In  order that system security is not breached, it is recom-
  28.      mended that the "ftp" subtree be constructed with care;  the
  29.      following rules are recommended.
  30.  
  31.      ~ftp    Make the home directory owned by "ftp"  and  unwrit-
  32.              able by anyone.
  33.  
  34.      ~ftp/bin
  35.              Make this directory  owned  by  the  super-user  and
  36.              unwritable  by  anyone.   The program ls(1V) must be
  37.              present to support the list commands.  This  program
  38.              should  have  mode  111.   Since the default /bin/ls
  39.              command is linked with a shared library, so you need
  40.              to set up the files for dynamic linking as well.
  41.  
  42.      ~ftp/usr/lib/ld.so
  43.              the runtime loader must be present and executable.
  44.  
  45.      ~ftp/dev/zero
  46.              used by the runtime loader,  create  this  with  the
  47.              command "mknod zero c 3 12".
  48.  
  49.      ~ftp/usr/lib/libc.so.*
  50.              should be a copy of the latest version of the shared
  51.              C library.
  52.  
  53.      ~ftp/etc
  54.              Make this directory  owned  by  the  super-user  and
  55.              unwritable  by  anyone.   The  files  passwd(5)  and
  56.              group(5) must be present for the ls command to  work
  57.              properly.  These files should be mode 444.
  58.  
  59.      ~ftp/pub
  60.              Make this directory mode 777  and  owned  by  "ftp".
  61.              Users should then place files which are to be acces-
  62.              sible via the anonymous account in this directory.
  63.  
  64. and do *everything* it tells you to do.
  65.