LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-09-2023, 09:26 AM   #1
lkisiel
LQ Newbie
 
Registered: Feb 2022
Posts: 2

Rep: Reputation: 0
Unhappy Proftpd with SQL and problem with groups


Hi,
I've installed that app for managing accounts:
https://github.com/ChristianBeer/ProFTPd-Admin
Underneath there is Proftpd with Mysql and together with that app is working - I mean I can log to FTP with accounts from that app.

The problem is with groups unfortunatelly. I've set few groups and users and I see groups don't work. In documentation of that app is written permission to accounts folders should be 775 so I have these exactly and it doean't work because users can enter accounts they don't should.

Configuration in proftpd of sql.conf looks like that:
Code:
<IfModule mod_sql.c>

SQLBackend              mysql
SQLEngine               on
SQLAuthenticate         on
SQLPasswordEngine       on

SQLAuthTypes SHA1
SQLAuthenticate users groups

SQLConnectInfo          proftpd2@localhost ftp 123w
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


</IfModule>
Tables in Mysql are correct and consists users and groups as should.
So what can be wrong here ?
Thanks
 
Old 03-22-2023, 04:47 PM   #2
lkisiel
LQ Newbie
 
Registered: Feb 2022
Posts: 2

Original Poster
Rep: Reputation: 0
Answer here:
https://sourceforge.net/p/proftp/mai...l/#msg37788200
Cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between "Environment Groups" and "Groups" meallhour Linux - Newbie 1 02-03-2022 05:21 PM
LXer: How to Install and Use Microsoft SQL Server (MS SQL) on RHEL 7, CentOS 7 and Ubuntu 16.04 LTS LXer Syndicated Linux News 0 12-09-2016 06:45 PM
groups within groups and sshd_config allow_groups td3201 Linux - Server 6 07-25-2009 09:43 AM
System Groups from Users and Groups measekite Linux - General 3 05-05-2009 09:22 PM
winbind: wbinfo -g only lists global groups from PDC and not local groups saradiya Linux - Networking 0 12-01-2003 02:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration