Control Web Panel

WebPanel => CentOS 6 Problems => Topic started by: Eli on May 18, 2015, 10:54:52 PM

Title: Unable to remove user
Post by: Eli on May 18, 2015, 10:54:52 PM
Hello everyone,

This is a very powerful and really awesome control panel, thank you for creating it, planning to donate very soon, I have a question though, today I made a spelling mistake while creating an account and I spelled the wrong domain name, now when I try to delete the user to recreate it with the right domain name I keep getting this error:

Confing not found in named.conf ....
Notice: Undefined offset: 1 in /usr/local/cwpsrv/htdocs/resources/admin/modules/list_accounts.php(1) : eval()'d code(1) : eval()'d code on line 4
 Removing config from named.conf

Notice: Undefined offset: 1 in /usr/local/cwpsrv/htdocs/resources/admin/modules/list_accounts.php(1) : eval()'d code(1) : eval()'d code on line 6
 Confing not found in vHosts .... Removing config from vHosts
Data Updated

The user stays there and no files are deleted, I tried logging to the VPS Shell and attempted to delete the user manually using command: userdel <username> and it took it but the account is still present on CWP and the files are still there too, anyway to correct this?

Thanks a lot in advance!
Title: Re: Unable to remove user
Post by: erm3nda on May 22, 2015, 05:18:52 PM
If you really deleted user and it's files, go to PHPMyAdmin and delete it.

You can enter by navigating http://your_ip/phpMyAdmin or using the SQL Services menu from CWP

Database: root_cwp
Table: user
Title: Re: Unable to remove user
Post by: Eli on May 23, 2015, 01:28:34 AM
Thanks, I actually just deleted the user's home directory using:  rm –rf   directory, then went into CWP user's menu and this time it deleted the user, it seems like CWP was unable to remove the user's home directory or something, once that was gone the user is no longer listed anywhere in CWP nor can anything related to it be accessed so I think it's really gone :-)
Title: Re: Unable to remove user
Post by: erm3nda on May 24, 2015, 05:45:10 AM
Glad you was able to solve it.
Title: Re: Unable to remove user
Post by: jnet on July 30, 2019, 04:03:11 AM
I have similar problem but you need to have a look at dns  and remove it manually too
not sure where else I need to remove things manually