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.

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:
    0
    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:
    14,450
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. max_payne

    max_payne Active Member

    Joined:
    Feb 1, 2013
    Messages:
    33
    Likes Received:
    0
    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. luissquall

    luissquall Registered

    Joined:
    Jun 27, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page