Results 1 to 6 of 6

Thread: Pure-ftp virtual users cannot login

  1. #1
    Join Date
    Oct 2006
    Beans
    17

    Pure-ftp virtual users cannot login

    Hi there,

    I am trying to set up an FTP server which only offers access to virtual users.

    The set-up I have is very straight forward:
    • Installed Ubuntu 8.10
    • Installed PureAdmin from the Add/Remove Applications
    • Added a virtual user by the name of 'testftp' from the Pure Admin


    If I try to log in to the FTP server with the virtual user 'testftp' I get 530 Login authentication failed.

    If I try to login with my system account it logs in correctly and I see my home directory.

    What I need to be able to define is that Pure FTP only uses virtual users and not system accounts.

    How can configure this?

  2. #2
    Join Date
    Jan 2009
    Beans
    34

    Re: Pure-ftp virtual users cannot login

    I can answer half your problem. I tested this using the GUI app "pureadmin" in Xubuntu 9.04. Where I use mousepad for the text editor, you can use gedit in Ubuntu.

    You will need to create this soft link to tell pure-ftp to include virtual user authentication:

    Code:
    sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/50pure
    Now, restart the ftp server and try your virtual user. The next problem you might run into will be this error: "530 Sorry, but I can't trust you". This error is caused by your virtual user's userID and groupID being too low. The minimum allowed ID number is defined in /etc/pure-ftpd/conf/MinUID, which you can read in any text editor. The default is 1000.

    You can either change the virtual user's userID and groupID to a user and/or group that's higher than 1000, or you can lower the limit. To lower the limit, you can edit the text file and change the number:

    Code:
    sudo mousepad /etc/pure-ftpd/conf/MinUID
    Now, restart the ftp server and your virtual users should now be able to log in.

    As for disabling logging in with the system accounts, I couldn't figure out that answer.

  3. #3
    Join Date
    Feb 2008
    Beans
    3

    Re: Pure-ftp virtual users cannot login

    thx worked on 8.04 didn't on 9.04

  4. #4
    Join Date
    May 2008
    Beans
    10

    Re: Pure-ftp virtual users cannot login

    after "as Eeqmcsq said"
    Code:
    sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/50pure
    you may try "to change "1000" to a lower number:
    Code:
    sudo gedit /etc/pure-ftpd/conf/MinUID
    or to choose a linux user from pureadmin
    Code:
    Applications --> System Tool --> PureAdmin --> PureFtpd --> Manage Users --> "choose one of created virtual users" --> Edit user --> from the right column choose user and group of a user with ID min (1000).
    you may want to create a new user for this purpose before configuring the PureAdmin.
    Code:
    sudo adduser ftpuser1
    that worked for me.

  5. #5
    Join Date
    Nov 2009
    Beans
    3

    Re: Pure-ftp virtual users cannot login

    Hello,

    I had the same 530 error on my side with pure-ftp and pureadmin installation (on Kubuntu Karmic).

    I changed three things to make it work:

    1/ I used PureAdmin to create the virtual users, and by default the paths to the config files where different from the ones created by pure-pw command (/etc/pureftpd.pdb and /etc/pureftpd.passwd instead of /etc/pure-ftpd/pureftpd.pdb and /etc/pure-ftpd/pureftpd.passwd) => To change this, I used the option to search automatically for these files in the 3rd settings tab of PureAdmin)

    2/ The /etc/pure-ftpd/conf folder was empty after my installation, I had to create the file about virtual users: I created the /etc/pure-ftpd/conf/PureDB file containing the single line /etc/pure-ftpd/pureftpd.pdb

    3/ Finally, as said above:
    Code:
    sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/50pure

  6. #6
    Join Date
    Nov 2010
    Location
    Monterrey, MX.
    Beans
    1
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Pure-ftp virtual users cannot login

    ok it work i follow the howto from this link http://ubuntuforums.org/archive/index.php/t-91052.html

    and add the code

    sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/50pure

    and it work on ubuntu 10.10 niceeeee


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •