Koozali.org: home of the SME Server

ProFTP configuration

Librarian

ProFTP configuration
« on: January 25, 2006, 01:22:42 PM »
Hi there

Just a quick shufti at ProFTP...

By default, when you log in with FTP, you end up in your <username> directory, in which you have no write permissions.

I digged through the configuration file for ProFTP in /etc/proftp.conf, and added the following just after the first <Directory /*> and before the </Limit> line :

Code: [Select]

AllowOverwrite on
Umask 007


This will allow you to have write permissions in your <username> directory, allowing you to overwrite existing files. (But not directories).

This <username> directory can be found in /home/e-smith/files/users/

Is this a safe thing to do? :-D

Since you can only have write access in your <username> folder and below, I don't see any problem with that.

Regards

Librarian

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: ProFTP configuration
« Reply #1 on: January 25, 2006, 06:07:35 PM »
Quote from: "Librarian"

Is this a safe thing to do? :-D


That depends on how much you trust your users. Giving users control of their .qmail file will allow them to do many, many things to the server which they currently do not have access to do.

Why do you want your users to have write permission in their home directory?

Librarian

ProFTP configuration
« Reply #2 on: January 26, 2006, 07:58:50 AM »
Thanks for the reply.

The applications we're using does not allow one to specify which directories to use yet, and to change the code to allow you to specify which directories to use is very low on the list. (can I say windoze applications?)

So therefore I have decided to change the settings on the server to allow the application just to ftp in, upload the files and log out again without the need to change directories.

Later on, when we've added the neccessary changes, will I revert to the default settings for proFTP (I have saved the original file).