Pure-ftpd and mysql

Hi, is pure-ftpd built with mysql support? Because if I try to run it, i get "421 Unknown authentication method: mysql:/etc/pureftpd-mysql.conf" error. When I try to recompile it using ABS (with --with-mysql switch to configure), it fails.
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_GNU_SOURCE=1 -I/usr/local/include -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -DCONFDIR=\"/etc\" -march=i686 -O2 -pipe -MT pure-statsdecode.o -MD -MP -MF ".deps/pure-statsdecode.Tpo" -c -o pure-statsdecode.o pure-statsdecode.c; \
then mv -f ".deps/pure-statsdecode.Tpo" ".deps/pure-statsdecode.Po"; else rm -f ".deps/pure-statsdecode.Tpo"; exit 1; fi
In file included from ftpd.h:88,
from pure-statsdecode.c:3:
/usr/include/arpa/inet.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_addr'
/usr/include/arpa/inet.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_lnaof'
/usr/include/arpa/inet.h:42: error: expected ')' before '__net'
/usr/include/arpa/inet.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_netof'
/usr/include/arpa/inet.h:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_network'
/usr/include/arpa/inet.h:78: error: expected ')' before '__net'
make[2]: *** [pure-statsdecode.o] Error 1
make[2]: Leaving directory `/var/abs/local/pure-ftpd/src/pure-ftpd-1.0.21/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/abs/local/pure-ftpd/src/pure-ftpd-1.0.21'
make: *** [all] Error 2

Sorry jardasmid,
I didn't read all the post
Try to specify
./configure --with-mysql=/usr/include/mysql
when compile pure-ftpd
Stupid question:
do you have libmysql package?

Similar Messages

  • Pure-ftpd and ldap. (solved)

    Hi,
    I'm trying to use pure-ftpd with virtual users on ldap but it don't work.
    Configuration is easy... similar to dovecot, postfix or apache. The question is that I don't know if is bad my confuguration or if the package isn't compiled with ldap support.
    How do I know if it is compiled with ldap support?
    Thanks and sorry for my english.
    Last edited by opotonil (2009-10-20 09:01:19)

    If you look at the SVN entries for pure-ftpd, the PKGBUILD you will see:
    ./configure --prefix=/usr --with-puredb --with-ftpwho --with-altlog --with-tls
    in the build() function. So no, LDAP is not compiled in. You can edit the PKGBUILD and recompile it.

  • Pure-ftpd-mysql socket error after latest mysql update [SOLVED]

    As we know the socket path in mysql have been moved from /tmp/mysqld.sock to /var/run/mysqld/mysqld.sock.
    The problem now with pure-ftpd-mysql is that it tries to use /tmp/mysqld.sock even though I have:
    MYSQLSocket /var/run/mysqld/mysqld.sock
    Inside of my /etc/pure-ftpd/pure-ftpd-mysql.conf
    I guess that either MYSQLSocket is the wrong keyword or that the path is hard coded into pure-ftpd-mysql.
    Any ideas how to solve this?
    EDIT:
    The path for the mysql conf was changed during last update
    from
    MySQLConfigFile  /etc/pure-ftpd/pure-ftpd-mysql.conf
    to
    MySQLConfigFile /etc/pure-ftpd/auth/mysql.conf
    Last edited by ancide (2009-11-25 10:23:24)

    maksvlad wrote:
    I've edited /etc/rc.d/mysqld file and added "ln -fs /var/run/mysqld/mysqld.sock /tmp/mysql.sock" like this
    echo $(getPID) >/var/run/mysqld/mysqld.pid
    add_daemon mysqld
    ln -fs /var/run/mysqld/mysqld.sock /tmp/mysql.sock
    stat_done
    It isn't  correct solution but it works...
    On other hand you would try something like this http://bbs.archlinux.org/viewtopic.php?id=85441
    Thanks for the reply. The problem is that all my other applications are using the new correct path. But I guess I can just make a symlink like you said for now until pure-ftpd-mysql is fixed.

  • [pure-ftpd] Mysql

    I used pure-ftpd before, but this time it makes me crazy.
    I have set up Pure-ftpd, when I start it WITHOUT the line:
    MySQLConfigFile               /etc/pureftpd-mysql.conf
    It works, it starts up and runs.
    But when I comment out the line above, it fails to start.. I cant really seem to figure what it could be...
    The contents of the pureftp-mysql.conf is this:
    #MYSQLServer     localhost
    #MYSQLPort       3306
    MYSQLSocket     /tmp/mysql.sock
    MYSQLUser       user
    MYSQLPassword pass
    MYSQLDatabase   pureftpd
    MYSQLCrypt      cleartext
    MYSQLGetPW      SELECT Password FROM users WHERE User="L"
    MYSQLGetDir     SELECT Dir FROM users WHERE User="L"
    MYSQLDefaultUID 1000
    MYSQLDefaultGID 1000
    (obviously I filled in the user+pass)
    My database looks like this:
    CREATE TABLE `users` (
      `User` varchar(16) collate latin1_general_ci NOT NULL default '',
      `Password` varchar(64) collate latin1_general_ci NOT NULL default '',
      `Uid` int(11) NOT NULL default '-1',
      `Gid` int(11) NOT NULL default '-1',
      `Dir` varchar(128) collate latin1_general_ci NOT NULL default '',
      PRIMARY KEY  (`User`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
    Anyone that has some ideas, could it be a firewall issue (wich is NOT on my linux box) or is this really something going wrong in a config file?

    Ok, I managed to get the error message:
    421 Unknown authentication method: mysql:/etc/pmysql.conf
    [1] 4158
    [1]   Exit 252                /usr/sbin/pure-ftpd -l mysql:/etc/pmysql.conf
    Is the package capable of using mysql for authentication or is there a package made by someone that is capable of using mysql?

  • [SOLVED] pure-ftpd no longer works after system update

    Hi,
    I made a system update today and since pure-ftpd doesn't want to start it just display "[FAIL]" but I don't have any error message.
    Is it possible to see the the error log of pure-ftpd ?
    Do you have any idea of how getting it working again?
    Thanks
    Last edited by clems45 (2011-04-02 21:41:23)

    I tried to check the version of pure-ftpd: pure-ftpd -V and it replies:
    pure-ftpd: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
    but mysql client is installed properly! I tried to reinstall it but it changed nothing

  • Pure-ftpd - different permissions for virtual users?

    I seem not to be able to find out how I could declare different permissions for different virtual users. In /etc/pure-ftpd.conf exists one line to declare permissions using
    #umask file:folder
    umask 133:133
    umask matches the numbers to 'UserGroupOthers'.
    Now that virtual ftp users belong to a real existing unix user / group, I wonder who is Users, Group and Others?
    Users = virtual ftp user ?
    Group = virtual ftp group ?
    Others = anonymous visitors?
    How can I tune it, so one virtual user can add files - f.e. to be used by a scan station - while others shall only read, having anonymous disabled?
    This gives me a headache.

    Ok, let me think.  What did I do? 
    I had different users.  User X, Y and Z.
    Then, I had a shared directory above their home directories.
    While in the system, (not in pure-ftpd) I symlinked.
    (Note that doing something in user X's directory, like ln -s ../shared didn't work---I had to do ln -s /usr/home/ftpuser/shared).
    Then, I ~think I played with the permissions on shared and got what I wanted. 
    Then, after a few hours on this, they changed their minds about what they wanted, everyone was allowed to use shared, but different companies had to have their own directories, so I no longer have that config.
    For what it's worth, you can take a quick look at my page
    http://www.scottro.net/qnd/qnd-pureftpd.html
    but I don't think it covers that situation.
    HTH, though I doubt that it did.

  • Pure-ftp and file ownership

    Hello,
    I am running a oes2 server with pure-ftp. Everything is running fine with pure-ftp when login in with FileZilla or ftp command line, but I als have a ncp volume mapped to the ftp location on the server. When people in my organization put files in the ftp directories via the ncp connections ownership of the files will be of those who put them there and not the ownership of the ftp user which owns the ftp directory on the server.
    Is it possible to configure the server/pure-ftp or ncp to change the ownership of the file from edit user to ftp user.
    Regards

    I will answer from the pure-ftpd perspective: There is not anything pure-ftpd can do to solve this issue.
    You could develop a cron script that would frequently traverse these directories and chown the file according to your desires.
    I don't have much experience on the NCP side, but if your real concern about ownership is that someone else needs permissions, then maybe setting a different umask in the NCP volume settings would grant more permissions to more people, and solve your issue that way.

  • Pure-ftpd setup (hosts.allow & hosts.deny)

    hello,
    i have installed pure-ftpd. i have it in daemon section in rc.conf and it's working (wisible from outside) althought my /etc/hosts.deny is
    ALL: ALL: DENY
    and in /etc/hosts.allow isn't any notice about pure-ftpd (just sshd).
    isn't that weird?
    thanx for answers.

    If your version of pure-ftpd was build without tcpwrappers, but might explain it.

  • Noob question - pure-ftpd

    hi,
    i configured a local anonymous ftp server with pure-ftpd but every time i try to access the server i get this error:
    "421 Unable to set up secure anonymous FTP"
    thanks.
    (sorry for my poor english )
    Last edited by Narmil (2008-07-18 02:37:15)

    in /etc/pure-ftpd/pure-ftpd.conf (or where ever your conf file is stored) set TLS to 0 to turn off Auth over TLS/SSL or set to 1 to allow both plain and TLS/SSL authentication.

  • Ftp - ftpd and firewall configuration for passive connections

    I set up ftpd on my imac. Connecting and logging on work ok, but when I try to get a directory listing or xfer or send multiple commands it always locks up, i get a message "421 Service not available, remote server timed out. Connection closed" and I see that the ftpd process for that connection has terminated.
    Turning the firewall completely off allows ftpd to work correctly, but I was under the impression that if I check the "FTP Access" box under services, the firewall should CORRECTLY self-configure to allow connections to ftpd. Opening ports 1024-65535 guarantees that ftpd will work with a client's passive connection, but is there a better way?
    I tried opening 20 for the data connection and 21 for control, but unless I tell everyone to use an active connection, there is still a long wait before most ftp clients notice that passive isn't working and switch to an active connection, so I would like to avoid that also.

    Hi, we use FTPd (with Pure FTPd Manager) on our internal server here. While I'm not a complete expert, I do know that we were able to get passive FTP working only after we got this setup properly.
    The main reason we got this was for it's ability to set a default port range for passive FTP to work on. In Pure FTPd Manager, you go to Preferences/Settings and you will see the area to input your passive port range (we use 51000-51100).
    Then you just need to forward those ports (on a router) to your FTP server, and/or open those ports on your server firewall.
    It sounds like you already have ports 20-21 setup.
    Hope this helps!
    G5 Dual 2Ghz   Mac OS X (10.4)   1.5GB RAM

  • Pure ftp and trusedip

    How do I enable multiple trusted IP address within Pure-FTP?
    The pure-ftpd.conf states:
    # Only connections to this specific IP address are allowed to be
    # non-anonymous. You can use this directive to open several public IPs for
    # anonymous FTP, and keep a private firewalled IP for remote administration.
    # You can also only allow a non-routable local IP (like 10.x.x.x) to
    # authenticate, and keep a public anon-only FTP server on another IP.
    #TrustedIP 10.1.1.1
    The example shows one IP address. I've tried:
    TrustedIP 192.168.10.* for the whole subnet, but a restart of pure-ftp give an error stating it doesn't like the line.
    I've tried 192.168.10.x as the explanation displays, no good, same error.
    After this is working, then, the next question will be to trust multiple IP addresses, actually, a subnet and several single IP addresses.
    Any suggestions? Examples?
    Thank you.

    Originally Posted by brunold
    One configs seems to override the other one.
    Just as a test, can you place the NoAnonymous behind the trustedip option in the config file and try again ?
    Rainer
    Thank You for the Info.
    I put 'NoAnonymous yes' and 'AnonymousOnly no' below the 'TrustedIP 192.168.10.240 192.168.10.241' line. It did not help.
    This is the welcome from the ftp server
    220-You are user number 1 of 10 allowed.
    220-Only anonymous FTP is allowed here
    220 You will be disconnected after 15 minutes of inactivity.
    So I commented the 'TrusedIP' to keep anonymous out.
    Any more suggestions.
    Is this designed, a BUG, or what.
    Is there a way to have trusted IP addresses and keep anonymous out?

  • Manually add/modify users for pure-ftpd ftp server?

    Ave,
    Alright I downloaded, compiled & installed the latest pure-ftpd ftp server from pureftpd.org .. and it seems to have started off ok.
    Since there is no Leopard Compatible PureFTPD Manager out yet, I need to create/modify users manually. Does anyone know how to do that for Pure-FTPD FTP Server? I can't seem to find or see any .conf files or anything at all. How do you manage users for pure-ftpd through command line or configuration?
    Thanks!

    This seems like a good one:
    extra/bftpd 3.8-2
        Small, easy-to-configure FTP server
    From what i have read you can set individual configuration for each user or group:
    http://bftpd.sourceforge.net/doc/en/bft … html#ss3.1

  • Setting up Pure ftpd

    I am running 6 Suse oes2 servers and one windows 2008r2
    for zcm server that I just setup a couple of weeks ago.
    These servers are up and in operation now.
    Everything seems to be working great except for ftp. I have not
    done any configurations on pure ftpd until today.
    I am having problems getting pure ftpd to work.
    1. I can login to my account but students cant.
    When I login I simply use my user name. i.e. jdoe and it works.
    when I do the same for students I get
    "503 Login Authentication failed"
    I have tried "jsmith" and "jsmith.students" same results.
    My account is in a admin context and the student in the "students" context.
    Faculty are in the "faculty" context.
    2 Even When I can login I cant get my user home dir in EDIR.
    3. Every time I login successfully or Un-successfully I have to restart
    pure ftpd. If I just simply press enter at the login name same thing
    happens. I have to restart ftp.
    Thanks
    Dave.

    dmiller wrote:
    > This may sound stupid buy my work with oes2 is limited.
    No, not stupid at all. Everyone goes through a learning curve on a new
    system. Until you have been working with OES for a while, things can
    sometimes be a bit overwhelming.
    There are some good resources listed in the sticky post. Have a look:
    http://forums.novell.com/showthread.php?t=465099
    > I've been with NetWare for the last 17 years.
    That's good! You should already be familiar with many of the OES
    services.
    > Is "Pure Ftpd" the same as "Novell Pure Ftpd"?
    Sort of...
    Pure Ftpd will run on SLES. Novell Pure Ftpd may be tweaked a bit to
    work better with OES. Generally speaking, when you see two similar
    components and one has the Novell prefix, you want to install the
    Novell version on an OES system.
    > I looked in System
    > Services and see that Pure-ftpd in not enable.
    > It doesn't seem to make any differences though. The results are still
    > the same.
    Take a look at the TID to which I referred you in my previous post:
    https://www.novell.com/support/kb/doc.php?id=3503915
    > For OES 2 and 11, regardless of support pack:
    >
    > The first step that is needed (aside from the prerequisites mentions
    > above) is to tell Yast's OES configuration to install "Novell FTP".
    > Where are the ftp error logs located?
    The main log file on a OES/SLES system is /var/log/messages. There lots
    of other log files in /var/log and sub-directories. This is always a
    good place to begin troubleshooting.
    Kevin Boyle - Knowledge Partner
    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...

  • What is the difference between Oracle and MySQL

    Hi,
    I would like to know the major difference between Oracle and MySQL. I have a project to generate XML files from database tables, i have used oracle's built XML functions XMLELEMENT, XMLATTRIBUTES, XMLFOREST, XMLAGG. I really want to know if these functions (or) similar functions are supported/availabe in MySQL.
    I am having a hard time to find out best linux distro for installing Oracle11g, so i am planning to switch to MySQL. Please help, Thanks in advance.

    Oracle_Walker wrote:
    Hi,
    <snip>>
    I am having a hard time to find out best linux distro for installing Oracle11g, Then you must be "looking for love in all the wrong places."
    What's so hard about finding a "best linux distro for installing Oracle11g"? The supported distros are listed in the fine Installation Guide for Linux. At the top of the list is Oracle's own Oracle Linux, which is in the same family as Red Hat.
    so i am planning to switch to MySQL. Please help, Thanks in advance.

  • PHP and MySQL Connection problem

    I am trying to make a PHP MySQL on a remote server connection in Dreamwesaver CS3.
    When I enter the information (host, user, password, etc.) and hit TEST, I get the following error message.
    "Access Denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured."
    I know the user, password, etc. work, as I can access the MySQL database with other software.
    I checked with my host and they say there are no permission problems on their end.
    I have checked the settings on the Test Server page in Site Setup and everything looks correct and works there.
    I have not seen this particular problem described in other forum postings (although there are a LOT of postings on this topic!).
    Any help would be appreciated.

    I thought my testing server was the remote server and is always on as far as I know. I don't know how to turn it on or off.
    Is there some other testing server that I should be aware of?
    Frank
    Date: Wed, 3 Jun 2009 15:43:02 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP and MySQL Connection problem
    I know you are using remote, but is your testing server on? if not turn that on and see if that does it. it just happened to me working on remote server and could not get mysql conn to work, until I turn on my testing (developer server), then I was able to connect to mysql and the tables that I created in phpmyadmin remotly was downloaded.
    >

Maybe you are looking for

  • Using multiple laptops and AirTunes with one static IP

    I just moved into a place that requires a static IP they provided me. After much tinkering, I finally got the Airport Express to work so that I could get online using my Powerbook. However, whenever I'm on the internet (Airport set NOT to distribute

  • 7.1.1 update can't start the iphone 4

    what can i do now , my iphone 4 only show the "white apple" logo, i can't do anything...Crash

  • JDeveloper 9i JSP Error Handling

    I have created a JSP application using JDeveloper 9i BC4J JSP Wizards. This question relates to the pages created by the "Browse & Edit Form" Wizard. If a data error is encountered when the update button is pressed on the "Edit" page, the error is di

  • Signal problems and MES

    South Africa - Pretoria:   I got my BB 9300 end February and since then I have a signal problem, it is always searching for signal, it will go on SOS and when somebody calls me I can talk for 30 seconds and then it say "call failed".  They can't hear

  • Does is matter where you buy the applecare?

    Hello, I have a 13" MacbookPro which I bought from the Israeli reseller (iDigital). my warranty is about to end in a week and I want to buy the applecare. The issue is that in my country (Israel) this plan cost about 390$ (140$ more than buying it on