SUMMARY: changing ftpd filemodes on write

From: Mahlon Stacy 4-4558 (mstacy@mayo.EDU)
Date: Tue Jun 02 1992 - 18:07:21 CDT

Yesterday I asked:
> Is there any way to have the FTP daemon set file modes to
> something other than 666 when PUT'ting files to a server?
> I'd like to be able to write files 644.

I received several useful responses:

1. Quick and dirty: (which I did): Create a script that is called
by inetd that replaces in.ftpd and contains the following:

#! /bin/sh
umask 022
exec /usr/etc/in.ftpd $*

Thanks to: (who also suggested #3) (though he suggested using a C program rather than a script)

2. Add "umask 022" at the beginning of each /etc/rc* file. Apparently the
modes in effect for ftpd are those of inetd when it is started in /etc/rc.

Thanks to:

3. Get ftpd.wuarchive.tar from, /networking/ftp. This adds
capabilities beyond the present Sun ftpd, including the capability to
change modes within an ftp session. However, the standard Sun ftp client
does not understand how to send these commands. If you need it, though,
there's a copy of ftp there, too, which will issue the SITE commands
needed for this capability.

Thanks to:
Mahlon Stacy Internet:
Mayo Foundation Amateur: KF0AW
Rochester, MN 55905 Medical Science Bldg 1-29
(507) 284-4558 FAX (507) 284-1428

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:43 CDT