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!

How can I suspend an account from shell and prevent reseller from...

Discussion in 'General Discussion' started by emurad, Nov 27, 2011.

  1. emurad

    emurad Member

    Joined:
    Mar 3, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    51
    Hello,

    How can I suspend an account from shell and prevent reseller from unsuspending it through his reseller control panel?

    I'm currently only able to do this through WHM by checking the option, so the question is how can I do it from shell?

    Thanks.
     
  2. milind

    milind Well-Known Member

    Joined:
    Jan 15, 2006
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Nasik (Maharashtra), India
    cPanel Access Level:
    Root Administrator
    Hello emurad,

    You can suspend any account using command "/scripts/suspendacct <username>" and to disable the unsuspending feature for anyone (only root user will able to unsuspend it from shell then) make the .htaccess file (in /home/suspending-user/public_html) immutable using following command

    Code:
    chattr +iau /home/suspending-user/public_html/.htaccess
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. mattmackman

    mattmackman Registered

    Joined:
    Nov 21, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Hello,

    You can do this by executing the given command
    /scripts/suspendacct <username> 1
     
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