I've found some tutorials for ProFTP
with MySQL
connection. But these handling by general scheme, 99% of them are identically. And do not go into the detail of the configuration.
Is SQLGroupInfo
required?
I've noticed the groups are always the same. Therefore, only one database record is needed in the groups table.
I want to fix this by omitting the group table and setting it directly in the configuration.
How can I do this?
The first try was, to register a custom query:
# Hardcoded groups
SQLNamedQuery get-groups SELECT 'ftp' AS `name`, 2001 AS `group`, 'ftpd' AS `members`
SQLGroupInfo sql:/get-groups
But here, i've get following error:
fatal: SQLGroupInfo: badly formatted parameter on line 34 of '/etc/proftpd/sql.conf'