home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / protocol / tcpip / 3908 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  1.1 KB

  1. Path: sparky!uunet!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.protocols.tcp-ip
  4. Subject: Re: How to control permissions on incoming FTP?
  5. Date: 30 Jul 1992 06:32:53 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 17
  8. Message-ID: <1582elINN9mf@early-bird.think.com>
  9. References: <51690@drilex.dri.mgh.com>
  10. NNTP-Posting-Host: gandalf.think.com
  11.  
  12. In article <51690@drilex.dri.mgh.com> dricejb@drilex.dri.mgh.com (Craig Jackson drilex1) writes:
  13. >Is there any way, using the standard ftpd which one might receive with
  14. >Ultrix or SunOS, for example, to control the permissions on incoming files?
  15. >I just did a sample put (from a PC), and the file was stored with
  16. >permisions of rw-rw-rw- (wide open).
  17.  
  18. Others have already suggested getting public ftpd source and adding a
  19. umask() call.
  20.  
  21. Another solution is to run ftpd via a script that first sets the umask and
  22. then execs the real ftpd.  I believe the standard BSD telnet just inherits
  23. its umask from its parent.
  24. -- 
  25. Barry Margolin
  26. System Manager, Thinking Machines Corp.
  27.  
  28. barmar@think.com          {uunet,harvard}!think!barmar
  29.