home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.protocols.tcp-ip
- Subject: Re: How to control permissions on incoming FTP?
- Date: 30 Jul 1992 06:32:53 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 17
- Message-ID: <1582elINN9mf@early-bird.think.com>
- References: <51690@drilex.dri.mgh.com>
- NNTP-Posting-Host: gandalf.think.com
-
- In article <51690@drilex.dri.mgh.com> dricejb@drilex.dri.mgh.com (Craig Jackson drilex1) writes:
- >Is there any way, using the standard ftpd which one might receive with
- >Ultrix or SunOS, for example, to control the permissions on incoming files?
- >I just did a sample put (from a PC), and the file was stored with
- >permisions of rw-rw-rw- (wide open).
-
- Others have already suggested getting public ftpd source and adding a
- umask() call.
-
- Another solution is to run ftpd via a script that first sets the umask and
- then execs the real ftpd. I believe the standard BSD telnet just inherits
- its umask from its parent.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-