During my programming work I had to do some system administration tasks, and since a while I'm also maintaining some servers. This is a log for the problems I find - and hopefully their solutions.

Sunday, April 24, 2005

Incoming FTP directory config

I guess this task is quite usual, however, I've never done this before, and had to do some googling to make it work as I wanted.

Requirements:
  • user public should be able to create new files and subdirs under /home/joe/incoming/
  • only joe and nobody else should be able to read the contents of, rename and delete from /home/joe/incoming

After some finetuning, the addition to proftpd.conf is the following:
<Directory /home/joe/incoming>
Umask 002 002
<Limit STOR CWD MKD XMKD>
AllowAll
</Limit>
<Limit READ RMD XRMD DELE SITE_CHMOD RNFR RNTO>
AllowUser joe
DenyAll
</Limit>
</Directory>
Also, user joe is in the same group as user public.

Quite a boring post, I admit, but I want to save some time next time I have to do it.

0 Comments:

Post a Comment

<< Home