Summary: | Proftpd-1.3.3-rc3 segfault on start with conf error | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Joakim <moonwalker> |
Component: | New packages | Assignee: | Luca Longinotti (RETIRED) <chtekk> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | net-ftp, shallpion |
Priority: | High | ||
Version: | 10.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Joakim
2009-12-17 18:19:23 UTC
My proftpd.conf may be useful as well # This is a basic ProFTPD configuration file (rename it to # 'proftpd.conf' for actual use. It establishes a single server # and a single anonymous login. It assumes that you have a user/group # "nobody" and "ftp" for normal operation and anon. ServerName "Astrocalc Default FTP Server" ServerType standalone DefaultServer on RequireValidShell off AuthPAM off AuthPAMConfig ftp <IfModule mod_vroot.c> VRootEngine on VRootOptions allowSymlinks </IfModule> # Listen on the standard FTP port 21 and disable IPv6 support. Port 21 # New directories and files should not be group or world writable. Umask 022 # To prevent DoS attacks, set the maximum number of child processes # to 30. If you need to allow more than 30 concurrent connections # at once, simply increase this value. MaxInstances 30 FactsAdvertise on # Set the user and group under which the server will run. User ftp Group ftp # Every FTP sessions is "jailed" into the user's home directory. # Except my "root" DefaultRoot ~ !root # Generally files are overwritable. AllowOverwrite on # Disallow the use of the SITE CHMOD command. <Limit SITE_CHMOD> AllowAll </Limit> <Limit LOGIN> AllowAll </Limit> MaxConnectionRate 4 <Global> TransferLog /var/log/proftpd/transf.log RootLogin on AuthAliasOnly off AllowForeignAddress on AllowRetrieveRestart on AllowStoreRestart on #IdentLookups on AllowOverwrite on ServerIdent Off DeferWelcome on MaxLoginAttempts 2 MaxClientsPerHost 6 MaxConnectionsPerHost 6 MaxHostsPerUser 3 </Global> UseReverseDNS off SystemLog /var/log/proftpd/error.log SyslogLevel debug <IfModule mod_cap.c> CapabilitiesEngine off #CapabilitiesSet -CAP_CHOWN +CAP_DAC_READ_SEARCH </IfModule> #Auth with Mysql AuthOrder mod_sql.c SQLConnectInfo proftpdb@192.168.1.105 user passwd SQLAuthenticate on SQLAuthTypes OpenSSL SQLMinID 81 SQLLogFile /var/log/proftpd/mysql.log <IfModule mod_sftp.c> <VirtualHost 192.168.1.104> SFTPEngine on SFTPLog /var/log/proftpd/sftp.log SFTPAuthMethods password RequireValidShell off # Every FTP sessions is "jailed" into the user's home directory. DefaultRoot ~ #Auth with Mysql AuthOrder mod_sql.c SQLConnectInfo proftpdb@192.168.1.105 astadmin magnet SQLAuthenticate on SQLAuthTypes OpenSSL SQLMinID 81 # Configure the server to listen on the normal SSH2 port, port 22 Port 115 # Configure both the RSA and DSA host keys, using the same host key # files that OpenSSH uses. SFTPHostKey /etc/ssh/ssh_host_rsa_key SFTPHostKey /etc/ssh/ssh_host_dsa_key # Configure the file used for comparing authorized public keys of users. SFTPAuthorizedUserKeys file:~/.sftp/authorized_keys # Enable compression SFTPCompression delayed # SFTPOptions IgnoreSFTPUploadPerms # Allow the same number of authentication attempts as OpenSSH. # # It is recommended that you explicitly configure MaxLoginAttempts # for your SSH2/SFTP instance to be higher than the normal # MaxLoginAttempts value for FTP, as there are more ways to authenticate # using SSH2. MaxLoginAttempts 6 </VirtualHost> </IfModule> I just found I have exactly the same issue. I don't think it is an configuration problem cause when I run /usr/bin/proftpd -t -c /etc/proftpd/proftpd.conf.sample I still had segmentation fault. Have to mask it temporarily. I think this is: http://bugs.proftpd.org/show_bug.cgi?id=3359 (In reply to comment #2) > I just found I have exactly the same issue. I don't think it is an > configuration problem cause when I run /usr/bin/proftpd -t -c > /etc/proftpd/proftpd.conf.sample I still had segmentation fault. Have to mask > it temporarily. > Masking isn't really an option as that will force you back to the 1.3.2 branch, but you can just run it directly /usr/sbin/proftpd and it runs fine, it's just on the conf check it blows up! I went on to report this upstreams as well yesterday before bed time but then voke up with a fever... and now found it was solved, there, but we need the patch added to the ebuild here. (In reply to comment #4) > (In reply to comment #2) > > I just found I have exactly the same issue. I don't think it is an > > configuration problem cause when I run /usr/bin/proftpd -t -c > > /etc/proftpd/proftpd.conf.sample I still had segmentation fault. Have to mask > > it temporarily. > > > Masking isn't really an option as that will force you back to the 1.3.2 branch, > but you can just run it directly /usr/sbin/proftpd and it runs fine, it's just > on the conf check it blows up! > > I went on to report this upstreams as well yesterday before bed time but then > voke up with a fever... and now found it was solved, there, but we need the I am sorry to hear that :) > patch added to the ebuild here. > Indeed, I hope you'll get well soon In the meantime, thanks for the bugreport, and link to upstream fix! I've just pushed proftpd-1.3.3_rc3-r1 that includes the patch (and double-checked configuration check in my test) |