How to delete account manualy

Started by Bestariweb Hosting, April 18, 2015, 03:39:20 PM

Previous topic - Next topic

Bestariweb Hosting

Dear Master,
I try to delete account via web panel but error.
And if we try to add the same account, it's error Username XXX already exists in database!

Can anyone help me how to delete / clean an account trough SSH command?

Thank you

Bestariweb Hosting

Sorry.. I have solve this..
just delete user in root_cwp database

thankyou

pedromidiasf

You also need to remove the account from the CENTOS system, otherwise you might be able to access throw ftp or ssh

Bestariweb Hosting

Quote from: pedromidiasf on May 05, 2015, 08:41:31 PM
You also need to remove the account from the CENTOS system, otherwise you might be able to access throw ftp or ssh

Can you describe how me to delete an account from CentOS System?

mamota

Dear friend,

Thanks in advance

i have similar situation, how to delete account manualy from terminal, because I have reset the panel and I can only use termin

Wait for your early reply.

overseer

I had a case where a deleted user was not in the CWP MySQL DB, but still left a trailing CentOS user and config files.
sudo userdel -f $USER
to delete the user account, home directory, and mail spool.

But then I had to do a locate $USER to find other straggler files (SSL, MySQL DB backups, Apache logs, etc.). Then I manually deleted all those orphaned files. Then I could re-migrate the user from a cPanel server.