• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Issue Creating FTP account

strahinja

New Pleskian
Hello!

I am using Plesk Onyx Version 17.5.3 Update #6 Web Host Edition on Ubuntu 14.04.5 LTS.

One of the apps that needs ftp access needs to have username like this: [email protected]

I tried creating user in Plesk but I get this:
You can use lowercase alphanumeric, dash, and underscore symbols in the username. The username should start with a lowercase alphabetic character and should be between 1 and 16 characters in length.

I also tried: "plesk bin ftpsubaccount --create [email protected] -passwd userpass -domain example.com" but it fails too.

Is there a way to add ftp account with name like this: [email protected]?

Thanks
 
Last edited:
So I did some research and found a solution:

1. Find uid and gid of username you created for example.com with:

id example

Output should be something like this:

uid=10000(example) gid=1004(psacln) groups=1004(psacln)

2. ftpasswd --passwd [email protected] --home=/var/www/vhosts/example.com/httpdocs/ --shell=/bin/false --uid=10000 --gid=1004

I was in /etc directory so this command created /etc/ftpd.passwd file.

3. Enter password

4. Edit /etc/proftpd.conf file and add this line:

AuthUserFile /path/to/ftpd.passwd

In my case it was AuthUserFile /etc/ftpd.passwd

5. Restart xinetd service

In my case I did: /etc/init.d/xinetd restart



And it works.
 
Back
Top