Batland



Home
GeneralNewsPerlProFTP
Archives
Batland's Photos
Login
Jul
02
ProFTPd Administrator 1.3

Hello,

during the last couple of weeks I spent some of my time to enhance proftpd Administrator. This is a web frontend to manage ftp accounts and the proftpd server. The project’s last release dates back to 2006, but the latest Version (1.2) has a lot of nice features. Therefore, I fixed some bugs and added a lot of new features to it and removed some others. If you find any bugs or need help, just contact me via info(q)batland(d)de where (q) stands for @ and (d) for a dot. So far, this is the only documentation. But, I’ll add some more during the next couple of weeks if needed.
This Version has been tested with FreeBSD 7.3, Ubuntu 10.04 and SLES 10.0, but it should work on any other *nix and Windows, too, as long as mysql, proftpd, php and apache can be installed.
You’ll find all the needed information in the following paragraphs. The changelog is incomplete. I’ve applied many minor changes so that I just wrote down the important changes.

New Features: Removed Features: Bug Fixes: Download

You can download the ProFTPd Administrator here.


Install Instructions:
Upgrading Instructions:

General Instructions:

Management of administrators via scripts:

createAdmin.pl A "createuser" unix like script. It takes no argument. All needed information will re requested interactively by the script.
enableAdmin.pl First argument is the name of the administrator which shall be activated because the account is deactivated after 10 failed login attempts.
deleteAdmin.pl Deletes a administrator. The scripts takes no argument. All needed information will re requested interactively by the script.
upDateAdminPwd.pl Changes the password of an administrator. The scripts takes no argument. All needed information will re requested interactively by the script.


Instructions for use import:

The cvs file needs to have the following format regarding the columns:

  1. Username
  2. Password
  3. Groupename
  4. Is deactivated (=1) or is active (=0)
  5. Expiration date. Set to 0 if the account does not expire. Otherwise use the following format: YYYY-MM-DD HH:MM:SS
  6. Real name of the user
  7. Address
  8. Notes

Note: The groups of the users need to exist otherwise the import will fail.


A few Screenshots:

overview

(After successful login)

createUser

(create user)

groups

(overview of all groups)

userreport

(report when the user is created)

QuotaOverviewUser

(the overview about the used quota for a standard ftp user)

Bye, Dennis

Posted by: admin | 3 Comments

May
30
Patch for proftpd: New Option for CreateHome to specify a UID Hi,

I just added a patch for proftpd to extend the functionality of the CreateHome directive. My problem was that the home directory should not be created with the owner being the ftp user, because this can lead to several problems in some deployment scenarios. Basically it boils down to this: Several
users share the same home directory and they shall be able to read each
others files, but a user shall only be able able to delete it's own
files. Currently the owner of the directory can delete all files, even though the sticky bit is set, because the
user who first logs on will own the directory and, therefore, be able to
delete all files, regarding of the files' permissions.
Therefore, I needed a way to automatically create the home directory while being able to specify the owner.

So I added a new option to the CreateHome directive. The option is called homeuid and can be used as follows:
CreateHome on homeuid UID
So when the home directory is created the owner of the directory is set to UID. This option can be used with all the other officially supported options. For example,  assume the directory /ftp already exists and the home directory of the new user is set to /ftp/foobar/new, the following directive:
CreateHome on mode 755 uid 150 gid ~ homeuid 10000
will result in creating the following directories:
  • /ftp/foobar being owned by UID 150 and GID being the new user's group.
  • /ftp/foobar/new is owned by UID 10000 and GID of the new user's group.

The patch for mod_auth.c and mkhome.c can be found here. I'll submit this to the official proftpd project during the next couple of days. I'll inform you if the patch is accepted or not.

Bye,
Dennis 


Posted by: admin | Add comment

Impressum | RSS | Powered by NucleusCMS | Ported by VinhBoy | Designed by DemusDesign