Home Forums OS X Server and Client Discussion Questions and Answers ProFTP with MySQL user auth. cannot upload anything

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #355532
    Anonymous
    Participant

    Hi there,

    I finally got ProFTPD working with MySQL user authentication, works excellent by the way.

    Thanx to Lukas, by the way…

    But when I login, as a user from the MySQL db, I cannot upload anything anymore. It worked great for 2 or 3 times, but now I cannot upload anything.

    Anyone have this same problem?

    #355539
    Lukas
    Participant

    I assume that you have no problem with database settings.

    It seems there is no way to have ProFTP working without setting the user homedir world writeable. The problem is that every dir you have to open, in order to reach the specified homedir, must have the same permission. So I moved my /Library/WebServer/www/ to the first level of my hard disk (i.e. /www/). I made it world writeable (chmod 777) and it works correctly.

    Remember to set your config file in order to restrict access only to your default directory. Do not forget to specify “DefaultRoot ~/” in the <Global> part.

    Hope this helps…

    Lukas

    #358664
    kcarlile
    Participant

    Surely there’s a better answer than 777? Has anyone discovered anything?

    From what I’ve seen, if the userid matches an existing shortname, it gains that shortname’s privileges. However, that massively defeats the advantage of having the mysql backend; namely that the user data doesn’t have to be in NetInfo or Open Directory! With this mechanism, you’d have to enter the info twice! Is there a better way to do this?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed