Subject: ftpd upload behavior
To: None <tech-userlevel@netbsd.org>
From: Rumi Szabolcs <szrumi@matavnet.hu>
List: tech-userlevel
Date: 01/21/2001 15:45:09
hello,

recently i have faced a problem when setting up netbsd ftpd.
when i set up an "incoming" directory, users can be given
permission to use some commands like STOR to upload files,
but this way they are not permitted to use MKD to make
subdirectories into the "incoming" directory.

users who want to upload something, usually also want to
make directories for the stuff they upload - and i think
that this is practical and understandable, so i tried to
let them create directories somehow. then i realized that
i can only do that by allowing the whole "modify" group of
commands which leads to DELE and RMD also be allowed -
something that is rather undesirable.

finally i hacked ftpd by moving the MKD command to the
"upload" group of commands which seems to be a solution
of the problem. Luke Mewburn suggested me to initiate a
discussion about this here so please tell what you think.

regards


____________________________________________________________
Szabolcs RUMI                             szrumi@matavnet.hu