Softaculous


Topic : Can't add FTP Accounts (AMPPS 2.1 on Mac)


Posted By: ajwallace on October 21, 2013, 2:31 pm

Not sure if anyone else has encountered this issue.  I have no issues on my other Mac, albeit using an earlier version of AMPPS.  I just set-up AMPPS on an iMac (10.8.2). All working fine except I cannot add new FTP accounts...

When I got to add an FTP account, I can complete the login, password and address as per normal. When I hit 'Create Account' I receive a success notification (and the directory is created in www also). However, the account isn't created - it doesn't show under Manage FTP.

I can however log-in to FTP anonymously so I guess I need to assume that FTP is running as anticipated.  On the off chance it was a browser issues (Chrome 30.0.1599.101) I've also tried Safari and Firefox but to no avail. 

I've also tried restarting the system, as well as restarting the FTP service several times (restoring the config file just in case too!)

Any ideas? I can just about cope with not having FTP but it's a bit of a pain and don't understand why it's not working!


Cheers,
Andy

Posted By: tidus on October 22, 2013, 8:00 am | Post: 1
Hi,

Yes. There is a known bug. It will be fixed in coming versions.

Till then you can create a user from Terminal:
Code
/Applications/AMPPS/Pure-FTPd/bin/pure-pw useradd [username] -u [unix-user] -d [directory-for-user]


Enter the new password after executing the command.


Edited by tidus : October 22, 2013, 8:01 am

-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack

Posted By: ajwallace on October 22, 2013, 4:18 pm | Post: 2
Thanks for that, appreciate your help.

Happy to add via the Terminal.

Posted By: coccoinomane on May 1, 2016, 12:53 pm | Post: 3
Hi Tidus,

I am sorry to bump this old thread, but it seems that adding FTP users via the web interface is still not possible on a Mac. I am on the latest AMPPS (v3.4, although in the interface it is listed as AMPPS 4.6.7) on OS X El Capitan.

I have resorted to adding FTP users using you Terminal snippet. However, when I run

Code
/Applications/AMPPS/Pure-FTPd/bin/pure-pw useradd test_user -u test_user -d test_user


and I input a password, I get the following error:

Code
No useable password hashing function found


Am I doing something wrong?

Thank you for your attention!
G

Posted By: hakang on May 19, 2016, 9:22 am | Post: 4
Hakans-MacBook-Pro:pdf Hakan$ id -u hakan
501
Hakans-MacBook-Pro:pdf Hakan$ id -g hakan
20
Hakans-MacBook-Pro:pdf Hakan$ id -G hakan
20 701 12 61 79 80 81 98 33 100 204 395 398 399
Hakans-MacBook-Pro:pdf Hakan$ id hakan
uid=501(Hakan) gid=20(staff) groups=20(staff),701(com.apple.sharepoint.group.1),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh)
Hakans-MacBook-Pro:pdf Hakan$ /Applications/AMPPS/Pure-FTPd/bin/pure-pw useradd hg -u 501 -g 20 -d  /Applications/AMPPS/www/hakan
Password:
Enter it again:
No useable password hashing function found
Hakans-MacBook-Pro:pdf Hakan$

Posted By: hakang on May 19, 2016, 9:27 am | Post: 5
OSX doesn't have a secure crypt(3) implementation. The best algorithm it can do is DES, that pure-ftpd does not support any more.

You need to install libsodium prior to compiling pure-ftpd in order to get a usable password hashing function.

else {
        fprintf(stderr, "No useable password hashing function found\n"
              "Please install libsodium (https://libsodium.org) and recompile pure-ftpd.\n");
        exit(EXIT_FAILURE);
    }

Posted By: coccoinomane on May 19, 2016, 10:06 am | Post: 6
Quote From : hakang May 19, 2016, 9:27 am
OSX doesn't have a secure crypt(3) implementation. The best algorithm it can do is DES, that pure-ftpd does not support any more.

You need to install libsodium prior to compiling pure-ftpd in order to get a usable password hashing function.


Thank you hakang! I have installed libsodium via MacPorts; do I need to recompile pure-ftpd? Is there a simpler way, es. lower the security standards of pure-ftpd? I am using AMPPS locally, so I don't care if the password is not secure enough.

Thank you,
Guido

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.