• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved FTP: User account already exists.

sdmx80

Basic Pleskian
Hello,

I had to delete a FTP user in Plesk 12.5.30 on CentOS 7.

Plesk confirmed the deletion, but the user is still able to connect. If I try to add this user under FTP accounts again, it says "User account already exists".

How can I get in control again?

Thank you very much in advance!

Best regards
 
Hi @sdmx80!

Try to run:
# plesk repair ftp

It can clean up orphaned FTP users. The root cause can be that FTP user could be locked by some process while removal.
 
Did it! Nothing changed.

Hi @sdmx80!

Try to run:
# plesk repair ftp

It can clean up orphaned FTP users. The root cause can be that FTP user could be locked by some process while removal.
Did it

Code:
Checking system users ............................................... [OK]

Error messages: 0; Warnings: 0; Errors resolved: 0
The user is unable to connect via FTP now, but if I want to add a user with the same name Plesk still says "User account already exists".

Any ideas?
 
1. Does this user present in /etc/passwd ?
2. Does this user present in the list of sys users in plesk db?
# plesk db "select login, home from sys_users"
 
Hello vlikhtanskiy,

1. No, I deleted it as requested in IgorG's comment
2. Yes, it is present in the sys users table of plesk db

How to delete it from there?
 
In that particular case it was inconsistency of Plesk database that's why it was needed to investigate directly on the server.

What we were discussing:

Make the following queries in Plesk database (you can connect it using "plesk db"):

> select id, login from sys_users where login = 'YOUR USER LOGIN';
+----+-------+
| id | login |
+----+-------+
| 6 | YOUR USER LOGIN |
+----+-------+
1 row in set (0.01 sec)

This will return the id of the user.

Then make the following queries to check if there are object connected to this id:
> select * from ftp_users where sys_user_id = 6;
> select * from hosting where sys_user_id = 6;
> select * from ScheduledTasks where sysUserId = 6;
> select * from subdomains where sys_user_id = 6;
> select * from web_users where sys_user_id = 6;

If all select queries are empty then you can remove the record from sys_users table:
> delete from sys_users where id = 6;

Otherwise you'd better contact Plesk support to investigate a particular case on your server.
 
Back
Top