• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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