The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cpanel account partially installed, how do I delete it?

Discussion in 'General Discussion' started by Funkadelic, Jun 8, 2006.

  1. Funkadelic

    Funkadelic Well-Known Member

    Joined:
    Feb 10, 2006
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    I have a cPanel account that was unsuccessfully installed to some extent because it could not be found in the "list accounts." I have deleted the username in the /home and I also deleted the virtualhost out of the apache config but it still gives me an error that the username still exists, how can I erase it completely from the system so I can install the account?
     
  2. Stefaans

    Stefaans Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    451
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Vancouver, Canada
    WHM creates a Linux/Unix user as well when you create a new account. Even though WHM does not list the user, it is probably still defined in your system.

    To remove the user:
    Code:
    userdel -r username
    where username is the name of the particular user.

    To read more about the userdel command:
    Code:
    man userdel
    I hope this helps ;)
     
  3. Funkadelic

    Funkadelic Well-Known Member

    Joined:
    Feb 10, 2006
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    I recieve command not found when trying to run that.
     
  4. Funkadelic

    Funkadelic Well-Known Member

    Joined:
    Feb 10, 2006
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    However /usr/sbin/userdel username worked but even after installing the account a second time, it still is not displaying in the list accounts :mad:

    This is what I see in the WHM error logs:

    Internal Error: "" Normal Connection Timeout (Probably closed browser on a HTTP/
    1.1 session) at cpsrvd.pl line 1572.
    Creating directory buildapache
    Internal Error: "" Normal Connection Timeout (Probably closed browser on a HTTP/
    1.1 session) at cpsrvd.pl line 1572.
    [Thu Jun 8 21:12:10 2006] [warn] NameVirtualHost 65.23.154.156:80 has no Virtua
    lHosts
    [Thu Jun 8 21:15:12 2006] [warn] NameVirtualHost 65.23.154.156:80 has no Virtua
    lHosts
    [Thu Jun 8 21:17:32 2006] [warn] NameVirtualHost 65.23.154.156:80 has no Virtua
    lHosts
    Content-type: text/html

    Internal Error: "" Normal Connection Timeout (Probably closed browser on a HTTP/
    1.1 session) at cpsrvd.pl line 1572.
    unable to load certificate
    2788:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:632:Expect
    ing: TRUSTED CERTIFICATE
    Internal Error: "" Normal Connection Timeout (Probably closed browser on a HTTP/
    1.1 session) at cpsrvd.pl line 1572.
    Internal Error: "" Normal Connection Timeout (Probably closed browser on a HTTP/
    1.1 session) at cpsrvd.pl line 1572.
    --More--(8%)
     
    #4 Funkadelic, Jun 9, 2006
    Last edited: Jun 9, 2006
  5. Saloni

    Saloni Active Member

    Joined:
    May 26, 2006
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Check for the entry for domain entry in /etc/trueuserdomaines
     
  6. Funkadelic

    Funkadelic Well-Known Member

    Joined:
    Feb 10, 2006
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    there is no such thing as /etc/trueuserdomains
     
  7. Funkadelic

    Funkadelic Well-Known Member

    Joined:
    Feb 10, 2006
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    No matter what I do I can't restore the account to show in the list accounts, there must be something interferring with this somehow.

    I found this on a forum:


    /scripts/upcp --force
    Those cPanel coders are pretty smart, and running this will do a manual update of the software. It can sometimes find and repair these sorts of errors. As a last resort, you may want to remove the account manually...

    * userdel -r username to remove the user and home directory
    * groupdel groupname to remove the group
    * Delete the zone from /var/named and edit /etc/named.conf to remove the domain from BIND.
    * Delete the /var/cpanel/users/username file.
    * Edit /usr/local/apache/conf/httpd.conf to remove the site VirtualHost entry.

    Sadly however it still does not work, from the update script to the manually terminating account and reinstalling it, just doesn't want to show correctly...
     
    #7 Funkadelic, Jun 9, 2006
    Last edited: Jun 9, 2006
Loading...

Share This Page