LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-28-2005, 01:24 PM   #1
MrEase
LQ Newbie
 
Registered: Apr 2004
Location: Barcelona
Posts: 5

Rep: Reputation: 0
Proftpd + mod_sql error & question


Hi,

I have the following error with proftpd mysql: sometimes when a client connects to the ftp server the server does not respond and the connection fails after it times out. Other times it does respond immediatly and the user connects with no delays.
If I check the logs I see the connected msg but there is no response on the client side. The sql log also show no errors on the connection.
Here is my proftpd.conf:
Code:
ServerName			"My FTP Server"
ServerType			standalone
DefaultServer			on

# don't give the server banner until _after_ authentication
DeferWelcome                    on

# Port 21 is the standard FTP port.
Port				21

UseReverseDNS			off

AllowOverwrite                   yes

MaxInstances			40
MaxClientsPerUser		5
PersistentPasswd   		off

# general server log
# levels  emerg|alert|crit|error|warn|notice|info|debug

SyslogLevel debug
ServerLog /var/log/proftpd/proftpd.log
SystemLog /var/log/proftpd/proftpd.system.log


<Global>


# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask				002

# defaults
TimeoutLogin         		120
TimeoutIdle          		600
TimeoutNoTransfer    		900
TimeoutStalled      		3600

IdentLookups			off

<IfModule mod_auth_pam.c>
    AuthPAM off
  </IfModule>



# Set the user and group under which the server will run.
User				nobody
Group				nobody

# disable root login
RootLogin off

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~

# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
  DenyAll
</Limit>

# do not allow any other users
AuthOrder mod_sql.c

# Set auth type to mysql plain text  [OpenSSL]] [ [Crypt]] [ [Backend]] [ [Plaintext]] [ [Empty]
SQLAuthenticate  users* groups* usersetfast groupsetfast
SQLAuthTypes OpenSSL
SQLConnectInfo MyDBName@localhost:3306 MyDBUser MyDBPass

# Set Minimum user / group IDs
SQLMinUserUID 999
SQLMinUserGID 999

SQLLogFile /var/log/proftpd/proftpd-sql.log

# speed up
SQLNegativeCache On

AllowOverwrite                   yes

  # Turn off Ident lookups
  IdentLookups         off

  # Logging file/dir access
  ExtendedLog           /var/log/proftpd/access.log WRITE,READ

  # Record all logins
  ExtendedLog           /var/log/proftpd/auth.log AUTH

  # Paranoia logging level....
  ExtendedLog           /var/log/proftpd/paranoid.log ALL

  #Transfer Log
  TransferLog           /var/log/proftpd/xfer.log

</Global>
Question:
I have a proftpd 1.2.10 with mod_sql and mod_sql_mysql support installed. The authentication using mysql works fine if there is only 1 user with 1 gid. If I create more users with the same gid proftpd wont let them login... There is a field called members in the group table which I did write down the names of all members (separated by , as specified by docs) but it will not let the members login...
If I cant use the same gid for different users whats the point in having groups altogether??



Any help is appreciated...

Thanks!!
 
  


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
ProFTPD & Webmin Hum4ngus Linux - Newbie 11 09-06-2005 03:23 PM
ProFTPD & Webmin Keyser Sose Slackware 3 12-02-2004 01:54 PM
Slight error in this script & question dulaus Linux - Security 3 04-03-2004 10:48 PM
proftpd 1.2.8 with mod_sql -> make error on suse 8.1 CIMSW Linux - Software 1 09-15-2003 10:18 AM
proftpd using mod_sql help please ! Sonik21 Linux - Software 4 05-07-2003 10:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:17 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