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.

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:
    1
    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:
    16
    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
     
  3. mattmackman

    mattmackman Registered

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

    You can do this by executing the given command
    /scripts/suspendacct <username> 1
     
Loading...

Share This Page