Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Delete account from command line

Discussion in 'General Discussion' started by max_payne, Feb 17, 2016.

  1. max_payne

    max_payne Active Member

    Joined:
    Feb 1, 2013
    Messages:
    33
    Likes Received:
    1
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi,

    What is the new command to terminate accounts? Before, /scripts/killacct used to work. This is no longer available on new versions.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,172
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. max_payne

    max_payne Active Member

    Joined:
    Feb 1, 2013
    Messages:
    33
    Likes Received:
    1
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator

    Definitely looks to be missing on CentOS 7 servers. I have checked a handful. Any testing CentOS 7 servers on your end you could check this on?


    CT-23156-bash-4.2# cat /etc/redhat-release
    CentOS Linux release 7.2.1511 (Core)

    CT-23156-bash-4.2# /usr/local/cpanel/cpanel -V
    54.0 (build 16)

    CT-23156-bash-4.2# ls -la /scripts/ | grep kill
    -rwxr-xr-x 1 root root 716 Jan 27 01:04 ckillall
    -rwxr-xr-x 1 root root 1890 Jan 27 01:04 kill_broken_attracta_hooks
    -rwxr-xr-x 1 root root 2294 Jan 27 01:04 killdns
    -rwxr-xr-x 1 root root 1136 Jan 27 01:04 killdns-dnsadmin
    -rwxr-xr-x 1 root root 1330 Jan 27 01:04 killdrrootvhost
    -rwxr-xr-x 1 root root 457 Jan 27 01:04 killmysqluserprivs
    -rwxr-xr-x 1 root root 1208 Jan 27 01:04 killmysqlwildcard
    -rwxr-xr-x 1 root root 2142 Jan 27 01:04 killpvhost
    -rwxr-xr-x 1 root root 814 Jan 27 01:04 killspamkeys
    -rwxr-xr-x 1 root root 1649 Jan 27 01:04 killsslvhost
    -rwxr-xr-x 1 root root 1733 Jan 27 01:04 killvhost
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,716
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. luissquall

    luissquall Member

    Joined:
    Jun 27, 2014
    Messages:
    8
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    México
    cPanel Access Level:
    Root Administrator
    The documentation is not updated.

    Code:
    /scripts/removeacct --user=myaccount
    fails with this error:

    Code:
    Unknown option: user
    die [removeacct] Invalid username specified: ''.
    exit level [die] [pid=721993] (Invalid username specified: ''.)
    
    However,
    Code:
    /scripts/removeacct myaccount 
    works fine.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,716
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I've opened a case with our documentation team to correct the document. Thank you for reporting this.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,716
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice