Subject: mkdir with 660 mode

From: "Christophe DAMOY" <[email-masked]>
Date: Tue, 04 May 1999 16:41:38 +0200

Hi,
How to configure ftpaccess for guest user to have 770 mode on mkdir
command
Thank
WU-FTP 2.4.2/Solaris 5.7

Christophe Damoy

---

From: Gregory A Lundberg <[email-masked]>
Date: Tue, 4 May 1999 11:31:17 -0400 (EDT)

> How to configure ftpaccess for guest user to have 770 mode on mkdir

umask, or upgrade to 2.4.2-vr17

-- 

Gregory A Lundberg              Senior Partner, VRnet Company
1441 Elmdale Drive              [email-masked]
Kettering, OH 45409-1615 USA    1-800-809-2195

---

From: "Christophe DAMOY" <[email-masked]>
Date: Wed, 05 May 1999 10:55:39 +0200

I do not understand how to run chmod or umask on ftp prompt

ftp> chmod 775 file
?Invalid command
ftp>

umask is under ~ftp/bin  and chroot ~ftp /bin/chmod work fine !!!

--
Christophe Damoy
Communications & Systems - CSSI
Tel: 01 41 28 41 50
:x!

---

From: Gregory A Lundberg <[email-masked]>
Date: Wed, 5 May 1999 08:42:38 -0400 (EDT)

> umask is under ~ftp/bin  and chroot ~ftp /bin/chmod work fine !!!

First, rm umask and chmod from ~ftp/bin .. you _really_ do not want them
there.

> > umask, or upgrade to 2.4.2-vr17

What I'm referring to here is to use the umask option on the commnad line
when starting the FTP daemon, or upgrade to VR17 and use the filemode
option on the upload statement in your ftpaccess file.

In answer to your specific question here, though:

umask and chmod are built-in commands handled by the daemon.  You don't
need any external commands to support them.  Since these commands are NOT
part of the FTP protocol, they are executed using the SITE command.  A lot
of clients do not allow sending random commands to the server without a
special local command.  For instance, on my Linux box, using the classic
BSD FTP client, I need to use the quote command.  So I could set my umask
for an FTP session using the following command:
  quote site umask 037
or chmod an existing file
  quote site chmod 644 myfile

--