ChristianBeer/ProFTPd-Admin
Fork: 56 Star: 58 (更新于 2024-10-31 02:15:18)
license: GPL-2.0
Language: PHP .
Graphical User Interface for ProFTPd with MySQL support
最后发布版本: v2.2 ( 2016-07-21 21:27:15)
ProFTPd Admin
Graphical User Interface for ProFTPd with MySQL and sqlite3 support
© 2004 The Netherlands, Lex Brugman lex_brugman@users.sourceforge.net
© 2012 Christian Beer djangofett@gmx.net
© 2015 Ricardo Padilha ricardo@droboports.com
Published under the GPLv2 License (see LICENSE for details)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, download from http://www.gnu.org/licenses/gpl-2.0.txt
Information about ProFTPd Admin
This GUI for ProFTPd was written to support a basic user management feature when using the SQL module. Originally written by Lex Brugmann in 2004 it was updated by Christian Beer in 2012 to support the latest PHP version.
There is no build-in security, so you have to protect the directory with something else, like Apache Basic Authentication.
It's possible to use either of SHA1 and pbkdf2 with either of MySQL/MariaDB and sqlite3. pbkdf2 is supported since ProFTPd 1.3.5.
You can look at some screenshots to see if this is the tool you need.
To-Do
- add postgresql support (#26)
- Add default user settings to groups so it is easier to create a new user with default values (#28)
- Email new users with password (#35)
Upgrade
If you want to upgrade the hashing algorithm you have to change all passwords after changing the configs (both ProFTPd and ProFTPd Admin).
Installation
Using MySQL and SHA1
- Install ProFTPd with MySQL support
- Debian: apt-get install proftpd-mod-mysql
- Gentoo: USE="mysql" emerge proftpd
- Create a MySQL database (use something like phpMyAdmin for this), for example: "proftpd".
- Use tables.sql to populate the database (you can use phpMyAdmin for this).
- Add the following to your proftpd.conf and sql.conf (edit to your needs):
CreateHome on 775
AuthOrder mod_sql.c
SQLBackend mysql
SQLEngine on
SQLPasswordEngine on
SQLAuthenticate on
SQLAuthTypes SHA1
SQLConnectInfo database@localhost username password
SQLUserInfo users userid passwd uid gid homedir shell
SQLGroupInfo groups groupname gid members
SQLUserWhereClause "disabled != 1"
SQLLog PASS updatecount
SQLNamedQuery updatecount UPDATE "login_count=login_count+1, last_login=now() WHERE userid='%u'" users
# Used to track xfer traffic per user (without invoking a quota)
SQLLog RETR bytes-out-count
SQLNamedQuery bytes-out-count UPDATE "bytes_out_used=bytes_out_used+%b WHERE userid='%u'" users
SQLLog RETR files-out-count
SQLNamedQuery files-out-count UPDATE "files_out_used=files_out_used+1 WHERE userid='%u'" users
SQLLog STOR bytes-in-count
SQLNamedQuery bytes-in-count UPDATE "bytes_in_used=bytes_in_used+%b WHERE userid='%u'" users
SQLLog STOR files-in-count
SQLNamedQuery files-in-count UPDATE "files_in_used=files_in_used+1 WHERE userid='%u'" users
- Extract all files to your webspace (into a subdirectory like "proftpdadmin").
- Secure access to this directory (for example: create a .htaccess file if using apache)
- Edit the configs/config_example.php file to your needs and rename it to config.php.
- Start ProFTPd.
- Go to http://yourwebspace/proftpdadmin/ and start using it!
Using sqlite3 and pbkdf2
- Install ProFTPd with sqlite3 support
- Use tables-sqlite3.sql to create an sqlite3 database:
sqlite3 auth.sqlite3 < tables-sqlite3.sql
- Add the following to your proftpd.conf and sql.conf (edit to your needs):
CreateHome on 775
AuthOrder mod_sql.c
SQLBackend sqlite3
SQLEngine on
SQLPasswordEngine on
SQLAuthenticate on
SQLAuthTypes pbkdf2
SQLPasswordPBKDF2 sha1 5000 20
SQLPasswordUserSalt name Prepend
SQLPasswordEncoding hex
SQLConnectInfo /path/to/auth.sqlite3
SQLUserInfo users userid passwd uid gid homedir shell
SQLGroupInfo groups groupname gid members
SQLUserWhereClause "disabled != 1"
SQLLog PASS updatecount
SQLNamedQuery updatecount UPDATE "login_count=login_count+1, last_login=now() WHERE userid='%u'" users
# Used to track xfer traffic per user (without invoking a quota)
SQLLog RETR bytes-out-count
SQLNamedQuery bytes-out-count UPDATE "bytes_out_used=bytes_out_used+%b WHERE userid='%u'" users
SQLLog RETR files-out-count
SQLNamedQuery files-out-count UPDATE "files_out_used=files_out_used+1 WHERE userid='%u'" users
SQLLog STOR bytes-in-count
SQLNamedQuery bytes-in-count UPDATE "bytes_in_used=bytes_in_used+%b WHERE userid='%u'" users
SQLLog STOR files-in-count
SQLNamedQuery files-in-count UPDATE "files_in_used=files_in_used+1 WHERE userid='%u'" users
- Extract all files to your webspace (into a subdirectory like "proftpdadmin").
- Secure access to this directory (for example: create a .htaccess file if using apache)
- Edit the configs/config_example.php file to your needs and rename it to config.php.
- Start ProFTPd.
- Go to http://yourwebspace/proftpdadmin/ and start using it!
Thanks / Links
Lex Brugman for initiating this project
Justin Vincent for the ezSQL library
Ricardo Padilha for implementing sqlite3, pbkdf2 and bootstrap support
最近版本更新:(数据更新于 2024-08-29 18:55:49)
2016-07-21 21:27:15 v2.2
2015-03-16 17:58:20 v2.1b
2015-03-16 07:53:28 v2.1
2013-07-06 21:35:39 v2.0
ChristianBeer/ProFTPd-Admin同语言 PHP最近更新仓库
2024-11-11 23:40:24 coollabsio/coolify
2024-11-06 20:45:55 schmittjoh/JMSSerializerBundle
2024-11-06 18:06:24 symfony/var-dumper
2024-11-06 18:04:49 symfony/symfony
2024-10-31 21:37:53 filamentphp/filament
2024-10-11 03:27:29 odan/slim4-skeleton